Documentation ¶
Index ¶
Constants ¶
View Source
const SectionKey = "secrets"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type FileEnvSecretManager ¶
type FileEnvSecretManager struct {
// contains filtered or unexported fields
}
FileEnvSecretManager allows retrieving secrets mounted to this process through Env Vars or Files.
func NewFileEnvSecretManager ¶
func NewFileEnvSecretManager(cfg *Config) FileEnvSecretManager
func (FileEnvSecretManager) GetForSecret ¶
func (f FileEnvSecretManager) GetForSecret(ctx context.Context, secret *coreIdl.Secret) (string, error)
GetForSecret retrieves a secret from the environment of the running process. To lookup secret, both secret's key and group must be non-empty. GetForSecret will first lookup env variables using the configured Prefix+SecretGroup+_+SecretKey. If the secret is not found in environment, it'll lookup the secret from files using the configured SecretPath / SecretGroup / SecretKey.
Click to show internal directories.
Click to hide internal directories.