Secrets management covers how API keys, tokens, and passwords are stored, delivered, rotated, and revoked. Coding agents read files, environment variables, and shell history, so assume any secret on a developer laptop or CI runner is reachable by the agent and by anything that hijacks it.
Read in this order
- OfficialSecrets Management Cheat Sheet (OWASP)Start here: a checklist covering storage, rotation, auditing, and common mistakes.
- OfficialSettings files and precedence, including sensitive file exclusions (Claude Code Docs)Shows how to keep sensitive files out of a coding agent's reach.
- OfficialWhat is Vault? (HashiCorp)A tour of what a dedicated secrets manager does for you.