keystore

Prerequisites

Set environment variables

export AZURE_ENVIRONMENT=xxxxxx
export AZURE_CLIENT_ID=xxxxxx
export AZURE_CLIENT_SECRET=xxxxxx
export AZURE_TENANT_ID=xxxxxx
export KVAULT=xxxxxx

Sample

client, err := client.NewKeyvaultClient()
if err != nil {
    panic(err)
}
key := "test-only-pwd"
val, err := client.GetValue(key)
if err != nil {
    panic(err)
}
fmt.Println(val)

GitHub

View Github