Documentation ¶
Index ¶
Constants ¶
View Source
const ( Name = secrets.TypeVault DefaultBackendPath = "secret/" VaultBackendPathKey = "VAULT_BACKEND_PATH" VaultBackendKey = "VAULT_BACKEND" AuthMethodKubernetes = "kubernetes" // AuthMethod is a vault authentication method used. // https://www.vaultproject.io/docs/auth#auth-methods AuthMethod = "VAULT_AUTH_METHOD" // AuthMountPath defines a custom auth mount path. AuthMountPath = "VAULT_AUTH_MOUNT_PATH" // AuthKubernetesRole is the role to authenticate against on Vault AuthKubernetesRole = "VAULT_AUTH_KUBERNETES_ROLE" // AuthKubernetesTokenPath is the file path to a custom JWT token to use for authentication. // If omitted, the default service account token path is used. AuthKubernetesTokenPath = "VAULT_AUTH_KUBERNETES_TOKEN_PATH" // AuthKubernetesMountPath AuthKubernetesMountPath = "kubernetes" )
Variables ¶
View Source
var ( ErrVaultTokenNotSet = errors.New("VAULT_TOKEN not set.") ErrVaultAddressNotSet = errors.New("VAULT_ADDR not set.") ErrInvalidVaultToken = errors.New("VAULT_TOKEN is invalid") ErrInvalidSkipVerify = errors.New("VAULT_SKIP_VERIFY is invalid") ErrInvalidVaultAddress = errors.New("VAULT_ADDRESS is invalid. " + "Should be of the form http(s)://<ip>:<port>") ErrAuthMethodUnknown = fmt.Errorf("unknown auth method") ErrKubernetesRole = fmt.Errorf("%s not set", AuthKubernetesRole) )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.