Interview Prep/DevSecOps/Secrets Management and Identity

How does secret rotation work and why is it hard?

IntermediateConceptSecrets Management and Identity
Answer

Rotation replaces a credential with a new one on a schedule or after exposure. It is hard because every consumer must pick up the new value without downtime. Secrets Manager's approach is a four-step Lambda (createSecret, setSecret, testSecret, finishSecret) with AWSPENDING and AWSCURRENT stage labels, and alternating-user rotation to avoid a window where neither works.

Applications must re-read secrets (or restart) rather than cache them forever.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Secrets Management and Identity