Expand description
Shared secret vault helpers used by the CLI and task execution
Structs§
- Secret
Config - Vault
Meta - Metadata stored inside a vault directory that describes how the vault should be accessed.
Written by
mk secrets vault init --gpg-key-idso subsequent commands (store, show, export, …) pick up the GPG key automatically without flags.
Functions§
- encrypt_
with_ gpg - Encrypt
plaintextusing the systemgpgbinary for the given key ID or fingerprint. The output is ASCII-armored PGP data suitable for storing as adata.ascvault file. - list_
secret_ paths - load_
secret_ env - load_
secret_ value - load_
secret_ values - read_
vault_ gpg_ key_ id - Read the GPG key ID stored in a vault’s metadata file, if present.
Returns
Nonewhen the file does not exist or cannot be parsed. - write_
vault_ meta - Write (or overwrite) the vault’s metadata file with the supplied GPG key ID.