Documentation
¶
Overview ¶
Package azure allows to fetch secrets from Azure keyvault service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigFromBackendConfig ¶
func NewConfigFromBackendConfig(sessionConfig SessionBackendConfig) (*autorest.Authorizer, error)
NewConfigFromBackendConfig returns a Authorizer for Azure based on the configuration
Types ¶
type KeyVaultBackend ¶
type KeyVaultBackend struct {
BackendID string
Config KeyVaultBackendConfig
Secret map[string]string
}
KeyVaultBackend is a backend to fetch secrets from Azure
func NewKeyVaultBackend ¶
func NewKeyVaultBackend(backendID string, bc map[string]interface{}) (*KeyVaultBackend, error)
NewKeyVaultBackend returns a new backend for Azure
func (*KeyVaultBackend) GetSecretOutput ¶
func (b *KeyVaultBackend) GetSecretOutput(secretKey string) secret.Output
GetSecretOutput returns a the value for a specific secret
type KeyVaultBackendConfig ¶
type KeyVaultBackendConfig struct {
Session *SessionBackendConfig `mapstructure:"azure_session"`
BackendType string `mapstructure:"backend_type"`
ForceString bool `mapstructure:"force_string"`
KeyVaultURL string `mapstructure:"keyvaulturl"`
SecretID string `mapstructure:"secret_id"`
}
KeyVaultBackendConfig contains the configuration to connect for Azure backend
type SessionBackendConfig ¶
type SessionBackendConfig struct {
TenantID string `mapstructure:"azure_tenant_id"`
ClientID string `mapstructure:"azure_client_id"`
ClientSecret string `mapstructure:"azure_client_secret"`
CertificatePath string `mapstructure:"azure_certificate_path"`
CertificatePassword string `mapstructure:"azure_certificate_password"`
}
SessionBackendConfig is the configuration for a Azure backend
Click to show internal directories.
Click to hide internal directories.