Documentation
¶
Overview ¶
Package azkv provides an Azure Key Vault secrets provider for configurer.
The provider authenticates with Azure's default credential chain. A vault URL can be supplied with the AZURE_KEY_VAULT_URL environment variable or through the CLI. When no secret names are configured, the provider lists the vault and loads every secret.
JSON-object secret values are exported as individual environment variables. Plain values use the Azure secret name as their environment key, with dashes converted to underscores. Writing performs the reverse conversion because Azure Key Vault secret names support dashes but not underscores.
Index ¶
Constants ¶
const Name = "azkv"
Name of the provider.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New creates an Azure Key Vault provider using Azure's default credential chain.
The AZURE_KEY_VAULT_URL environment variable can be used by CLI callers to configure the vault URL. When SecretNames is empty, Load lists and retrieves every secret in the vault.
func NewWithConfig ¶
func NewWithConfig( override, rawValue bool, config *Config, credential azcore.TokenCredential, clientOptions *azsecrets.ClientOptions, ) (provider.IProvider, error)
NewWithConfig creates an Azure Key Vault provider with a supplied credential and Azure client options.