Documentation ¶
Index ¶
Constants ¶
const ( K8s = "k8s_secrets" File = "file" ConjurMapKey = "conjur-map" DefaultRetryCountLimit = 5 DefaultRetryIntervalSec = 1 MinRetryValue = 0 MinRefreshInterval = time.Second DefaultRefreshIntervalStr = "5m" DefaultSanitizeEnabled = true )
Constants for Secrets Provider operation modes, and Defaults for some SP settings
const ( TYPESTRING annotationType = iota TYPEINT TYPEBOOL )
Represents each annotation input value type, used during input value validation
const ( AuthnIdentityKey = "conjur.org/authn-identity" JwtTokenPath = "conjur.org/jwt-token-path" ContainerModeKey = "conjur.org/container-mode" SecretsDestinationKey = "conjur.org/secrets-destination" // SecretsRefreshIntervalKey is the Annotation key for setting the interval // for retrieving Conjur secrets and updating Kubernetes Secrets or // application secret files if necessary. SecretsRefreshIntervalKey = "conjur.org/secrets-refresh-interval" // SecretsRefreshEnabledKey is the Annotation key for enabling the refresh SecretsRefreshEnabledKey = "conjur.org/secrets-refresh-enabled" // RemoveDeletedSecretsKey is the annotaion key for enabling removing deleted secrets RemoveDeletedSecretsKey = "conjur.org/remove-deleted-secrets-enabled" )
Variables ¶
var DefaultRefreshInterval, _ = time.ParseDuration(DefaultRefreshIntervalStr)
Functions ¶
func GatherSecretsProviderSettings ¶
GatherSecretsProviderSettings returns a string-to-string map of all provided environment variables and parsed, valid annotations that are concerned with Secrets Provider Config.
func ValidateAnnotations ¶
ValidateAnnotations confirms that the provided annotations are properly formated, have the proper value type, and if the annotation in question had a defined set of accepted values, the provided value is confirmed. Function returns a list of Error logs, and a list of Info logs.
func ValidateSecretsProviderSettings ¶
ValidateSecretsProviderSettings confirms that the provided environment variable and annotation settings yield a valid Secrets Provider configuration. Returns a list of Error logs, and a list of Info logs.