What is credential rotation?

Credential rotation is replacing a password, API key, certificate or token with a new one and revoking the old one, so any copy of the old credential stops working.

When to rotate

  • After exposure: a key pasted into a public repository, a shared channel or the wrong email
  • When people leave: contractors, employees or vendors who knew a shared credential
  • After an incident: any credential that might have been on an affected system
  • On a schedule for machine credentials such as API keys and certificates, where your policy calls for it

For human passwords, current guidance such as NIST SP 800-63B recommends against forced periodic changes and in favour of changing passwords when there is a reason to.

Why deleting the message is not enough

Removing a leaked key from a chat or repository hides it from new readers, but anyone who already copied it still has a working credential. Rotation is the step that actually closes the door.

Rotating without breaking things

  1. Create the new credential while the old one still works.
  2. Update every system that uses it.
  3. Confirm the new one works everywhere.
  4. Revoke the old one.

Giving each person, vendor or system its own key makes this much easier, because you only have to update one place.

Sharing the new credential

The new key should not travel the same way the old one leaked. Send it as a one-time secret, so the message that carried it is useless afterwards.

Konfidant shares passwords, keys and files through one-time links, encrypted on your device and deleted after the first view.

Try it free