Pcornel
Automation · Secrets & Credentials

Rotation

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

Back to the Topic

Answer

Rotation replaces a credential generation while preserving required service continuity and proving that every intended consumer uses the new generation and the previous generation is revoked or expired.

Remember

  • New secret issued ≠ rotation complete.
  • Consumer restarted ≠ consumer loaded new credential.
  • Old secret deleted from vault ≠ old secret invalid at target.
  • Overlap window ≠ indefinite dual validity.

First checks

  • Rotation jobs and last rotation dates — freshness
  • vault read database/creds/<role> — dynamic credentials
  • Consumer update after rotation — continuity

Verify in this order

schedule → rotate → update consumers → revoke old

Where it usually breaks

Rotation evidence proves cutover and revocation only for enumerated consumers and target systems; unknown secret copies can remain a residual risk.

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

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

Confirmation

Confirm action

Continue?