VaultPropertySource

September 1, 2026 ยท View on GitHub

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