Skip to content
go-external-configPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VaultPropertySource

Vault provides centralized, well-audited privileged access and secret management for mission-critical data whether you deploy systems on-premises, in the cloud, or in a hybrid environment.

With a modular design based around a growing plugin ecosystem, Vault lets you integrate with your existing systems and customize your application workflow. (more)

cmd/app/main.go

import (
	"github.com/go-external-config/go/env"
	_ "github.com/go-external-config/vault"
)

func main() {
	defer err.Recover()
	fmt.Println(env.Value[string]("${db.pass}"))
	// fmt.Println(env.Value[string]("${vault.path#key}"))
}

config/application.yaml

db:
  pass: vault:path#key
  # pass: vault:mount:path#key

vault:
  addr: http://127.0.0.1:8200
  token: generated
  # mount: secret

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages