library("lockbox")
# Decrypt any lockbox file (auto-detects format)
secrets_decrypt(
lockbox = "lockbox.yaml",
private = "private.key"
)
# Access individual secrets
secrets_decrypt(
lockbox = "lockbox.yaml",
private = "private.key"
$API_KEY )
Decrypt secrets using automatic format detection
Description
Decrypts a lockbox file and returns the secrets as a named list. Automatically detects whether the file uses SOPS or lockbox format.
Usage
secrets_decrypt(lockbox = NULL, private = NULL)
Arguments
lockbox
|
Character string, path to the encrypted lockbox file |
private
|
Character string, path to private age key file (can be password-protected) |
Value
Named list of decrypted secrets