2 min read · Websites and web apps

Ordinary configuration differs from secrets. A value sent to the browser cannot be treated as secret on the server side. Issue least-privilege access, rotate keys and revoke them.
Implementation steps
- Make an inventory of secrets and the owner of each
- Separate permissions and sets of secrets for each environment
- Check code paths, build files and logs that might expose a value
- Rehearse rotating and revoking, and confirm the service still works
Example deliverable
Deliverable: a secrets register that holds only the name, the owner and the review cycle
Benefits
Helps control access to services and respond when a key leaks.
Limits and cautions
An environment variable name does not make the value secure automatically. Check where the value gets bundled.
Starting references
- OWASP — Secrets Management
- The Twelve-Factor App — Config
References
- OWASP — Secrets Management (accessed 2026-11-21)
- The Twelve-Factor App — Config (accessed 2026-11-21)




