Skip to content

References: Secrets and Configuration

  1. Environment variable - Wikipedia - Explains how programs read named values from their environment. It is the mechanism behind dotenv files and the platform secret stores in this chapter.

  2. API key - Wikipedia - Describes what API keys are, how services use them and the risks of exposing them. It supports the chapter's sections on hardcoded secrets and key rotation.

  3. Twelve-Factor App methodology - Wikipedia - Summarizes the twelve-factor rules, including keeping configuration in the environment. It explains why secrets don't belong in code.

  4. Securing DevOps - Julien Vehent - Manning, 2018 - Vehent is known for walking one sample app through a full security pipeline, including how secrets reach production. That worked example makes secret handling concrete.

  5. Alice and Bob Learn Application Security - Tanya Janca - Wiley, 2020 - Janca explains security through two characters and plain stories instead of jargon. Her chapters on secure configuration and secrets suit readers without a security background.

  6. Config - The Twelve-Factor App - The original statement of why configuration should live in environment variables. Its test, whether the code could be made public without leaking credentials, is a useful check.

  7. Secrets Management Cheat Sheet - OWASP - Practical guidance on storing, rotating and auditing secrets. It covers the leak paths and rotation steps discussed in this chapter.

  8. Secret scanning - GitHub Docs - Explains how GitHub detects committed secrets and alerts the owner. It shows one automated defense against a secret in git history.

  9. Removing sensitive data from a repository - GitHub Docs - Steps for purging a leaked secret from history, and why you must still rotate it. It backs the chapter's leaked-key advice.

  10. Gitleaks - Gitleaks - An open-source scanner that finds secrets in code and git history. It can run before each commit to stop a key leaving your machine.