Pcornel
Security · Secrets Management

Rotation

Cheat sheet · https://pcornel.dk/topic.php?topic=5066

Back to the Topic

Answer

Secret rotation replaces credentials regularly or after suspected exposure, ideally automatically, with applications fetching the new value from the vault so rotation does not cause outages.

Remember

  • Automate rotation.
  • Update both target and vault.
  • Test applications after rotation.

First checks

  • Rotation schedule per secret type — policy
  • vault lease renew/revoke — dynamic secrets
  • aws secretsmanager describe-secret --secret-id <id> | grep Rotation — rotation enabled

Verify in this order

old secret → new secret issued → apps updated → old revoked

Where it usually breaks

First mismatch in key/secret generation → storage/rotation → trust/certificate validation → protocol negotiation → cryptographic operation → peer/application verification; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5066

Confirmation

Confirm action

Continue?