Polski

Cybersecurity

Secrets management

Passwords, keys and tokens outside the code: environment variables, secret managers, rotation and leaks.

Article

Secrets management in practice – environment variables, AWS Secrets Manager and Parameter Store, Vault, rotation, Git leaks and CI/CD

A .env.production file in a public repository for 20 minutes was enough for someone to start crypto miners in the pierogi shop's AWS account. We build proper secrets management – what counts as a secret, where environment variables stop being enough, AWS Secrets Manager vs Parameter Store, cached and rotation-aware reads in Node.js, CDK with database password rotation, dynamic secrets in Vault, gitleaks in pre-commit and CI, and OIDC instead of keys in the pipeline.

Related articles

Around the topic

In this group: Cybersecurity