Secrets & keys
A leaked key is the fastest way to lose money or data — anyone who finds it can act as you.
- No live API keys hard-coded in your filesCritical
Stripe, OpenAI, Anthropic, AWS, GitHub, Google, Slack tokens and private keys belong in environment variables read only on the server — never pasted into code.
- No real .env file committed to the repositoryCritical
Environment files hold your passwords and keys. Once committed they stay in the repo's history even after you delete them. Keep a .env.example with placeholder values instead.