Documentation ¶
Index ¶
- Constants
- func NewAppGroupCommand() *cobra.Command
- func NewAzureCommand(appType string) *cobra.Command
- func NewConnectGroupCommand() *cobra.Command
- func NewEnvCommand(appType string) *cobra.Command
- func NewSecretsGroupCommand() *cobra.Command
- func NewVaultCommand(appType string) *cobra.Command
- type AzureConfiguration
- type KeyVault
- type Provider
- type Secret
Constants ¶
const ( // SecretPreFix for looking up env vars SecretPreFix = "SECRET_" // ConnectWorkerSecretPrefix prefix for connect worker secrets ConnectWorkerSecretPrefix = "WORKER_CONNECT_SECRET_" // EnvVaultRole is the environment var holding the vault role EnvVaultRole = "VAULT_ROLE" // EnvAzureClientID is the environment var holding the azure client id EnvAzureClientID = "AZURE_CLIENT_ID" // EnvAzureClientSecret is the environment var holding the azure client secret EnvAzureClientSecret = "AZURE_CLIENT_SECRET" // EnvAzureClientTenantID is the environment var holding the azure tenant id EnvAzureClientTenantID = "AZURE_TENANT_ID" // EnvAzureKeyVaultName is the environment var holding the azure key vault name EnvAzureKeyVaultName = "AZURE_KEY_VAULT" // EnvAzureKeyVaultDNS is the environment var holding the azure key dns EnvAzureKeyVaultDNS = "AZURE_KEY_VAULT_DNS" )
Variables ¶
This section is empty.
Functions ¶
func NewAppGroupCommand ¶
NewAppGroupCommand creates `secrets app` command
func NewAzureCommand ¶
NewAzureCommand get secrets for azure by app type
func NewConnectGroupCommand ¶
NewConnectGroupCommand creates `secrets connect` command
func NewEnvCommand ¶
NewEnvCommand secrets from environment variables
func NewSecretsGroupCommand ¶
NewSecretsGroupCommand creates `secrets` command
func NewVaultCommand ¶
NewVaultCommand creates `secrets connect vault` command
Types ¶
type AzureConfiguration ¶
type AzureConfiguration struct { ClientID string ClientSecret string TenantID string KeyVaultName string }
AzureConfiguration holds azure configuration details
type KeyVault ¶
type KeyVault struct {
// contains filtered or unexported fields
}
KeyVault holds the information for a keyvault instance
type Secret ¶
Secret holds the mapping of the env var to the secret key
func AzureKeyVaultHandler ¶
func AzureKeyVaultHandler(vaultURL, file string, config AzureConfiguration) ([]Secret, error)
AzureKeyVaultHandler retrieves secret key values from Azure KeyVault based on environment variables
func EnvSecretHandler ¶
EnvSecretHandler retrieves secret key values from environment variables
func VaultConnectExternalHandler ¶
VaultConnectExternalHandler retrieves secret key values from Vault based on environment variables