Secrets Manager
Use node {baseDir}/secrets-manager.js with the options below. The default store is memory/secrets in the workspace. --dir <directory> or SECRETS_DIR selects a dedicated private directory. POSIX files and directories are owner-only; on Windows use a directory with a restrictive ACL. Never use a shared or synced directory for the master key.
| Options | Effect |
|---|---|
--store <name> --stdin |
Read the exact bytes as UTF-8 from an approved producer or pipe. Never put a literal credential in a command, prompt, or shell history. |
--get <name> |
Check whether a value is available without displaying it. |
--get <name> --raw --confirm-expose |
Write plaintext only to an approved consumer that accepts stdin. Do not capture the output in agent logs. |
--list, --status |
Display store metadata. |
--audit [--expired|--stale] |
Report expiration metadata. --stale shows entries approaching expiration. |
--rotate <name> or --rotate --all |
Replace stored values with random values; this does not rotate the encryption key or update credentials on an external service. Get user approval before replacing values. |
--delete <name> |
Delete an entry. Get user approval first. |
--cleanup-tmp |
Remove recognized legacy injection files recorded in this store. |
The store can use the existing .master-key or the legacy SECRETS_MASTER_KEY environment setting. Prefer the private key file over a broadly inherited environment variable. The programmatic getSecret() returns plaintext to its caller. Version 1.1.20 removes shell-template injection and temp-script creation, enables the directory override and audit filters, and removes secret fragments from ordinary output.
