Documentation
¶
Index ¶
- Constants
- func DecryptSecretsFile(data []byte, key []byte) (map[string]string, error)
- func EncryptSecretsFile(entries map[string]string, key []byte) ([]byte, error)
- func EnvKey(ref string) string
- func MergeEncryptedSecretsFile(existing []byte, key []byte, updates map[string]string) ([]byte, error)
- func ParseSecretsMasterKey(raw string) ([]byte, error)
- func SecretFromContext(ctx context.Context, ref string) (capscredentials.Secret, bool)
- func WithSecrets(ctx context.Context, secrets map[string]string) context.Context
Constants ¶
View Source
const SecretsMasterKeyEnv = "AGENTKIT_SECRETS_KEY"
SecretsMasterKeyEnv is the environment / credentials.config.env key for the AES-256 key used to encrypt secrets.enc.json. It is not subject to Prefix.
Variables ¶
This section is empty.
Functions ¶
func DecryptSecretsFile ¶ added in v0.3.4
DecryptSecretsFile parses and decrypts all entries in data.
func EncryptSecretsFile ¶ added in v0.3.4
EncryptSecretsFile serializes entries to encrypted JSON.
func MergeEncryptedSecretsFile ¶ added in v0.3.4
func MergeEncryptedSecretsFile(existing []byte, key []byte, updates map[string]string) ([]byte, error)
MergeEncryptedSecretsFile decrypts existing (if any), applies updates, and re-encrypts.
func ParseSecretsMasterKey ¶ added in v0.3.4
ParseSecretsMasterKey decodes a 32-byte key from base64 (preferred) or hex.
func SecretFromContext ¶
SecretFromContext returns a secret when ctx carries an override for ref.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.