Awesome Go

go-external-config/vault

CategoryConfiguration
SubcategoryConfiguration
Stars1

Vault property source support for go-external-config

About go-external-config/vault

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

Frequently Asked Questions

What is go-external-config/vault?

go-external-config/vault is a Configuration library for the Go programming language. Vault property source support for go-external-config

How do I install go-external-config/vault?

Install go-external-config/vault with the Go module system using `go get go-external-config/vault`. Check the repository for the current installation instructions.

What category does go-external-config/vault belong to?

go-external-config/vault is listed under Configuration, specifically Configuration.

← Back to Configuration