secretsmgr handbook
Editor sign-in

Versions, and how a secret changes without breaking anything

Changing a credential is never instantaneous: for a moment, the old one is still in use somewhere while the new one is being written down. A system that treats the change as instantaneous breaks something at 3 a.m. So secrets here keep a version history and move through defined states.

StateMeaningCan consumers use it?
pendingWritten, not yet publishedNo
currentThe one you get by defaultYes
previousJust replaced, inside its grace periodYes, deliberately
retiredGrace expiredOnly if asked for by version number
upstream-revokedThe credential no longer works anywhereNo, kept for the record

During the grace period (24 hours by default) both the current and previous values are readable, so a service that cached the old one keeps running while everything catches up.