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.
More on Secrets Management and Identity
Why is hard-coding secrets or putting them in environment variables a problem?BeginnerWhat does HashiCorp Vault provide?BeginnerExplain Vault's seal/unseal process.IntermediateWhat are Vault dynamic secrets and why are they better than static ones?IntermediateHow do Kubernetes workloads authenticate to Vault?AdvancedWhat is AWS Secrets Manager and how does it compare with SSM Parameter Store?Beginner