maxdraco

Key rotation

Replacing a password, key or token with a new one and retiring the old one.

Concept Identity and access Cryptography

Key rotation means swapping a secret, such as a password, an API key or an access token, for a fresh one and switching the old one off. It is done on a schedule, so no single secret stays in use for too long, and straight away whenever a secret may have leaked. Rotation is what actually ends a leak: deleting the copy that escaped does not, because whoever saw the old secret can keep using it until it stops working.

See also

  • Secrets manager (vault) A service that stores passwords, keys and tokens in one protected place and hands them out only to programs and people allowed to have them.
  • API key A secret string a program sends to prove which account it is calling an API as.
  • Access token A secret string a program presents to a service to prove it is allowed to act, often for a limited time.
  • Allowlist A list of the things that are explicitly permitted; everything not on it is refused.
  • Authentication (and authorisation) Checking who someone is (authentication), then deciding what they are allowed to do (authorisation).
  • Deny by default A security rule where nothing is allowed unless a rule specifically permits it.
  • Headscale Open-source, self-hosted replacement for Tailscale's coordination server.
  • Keychain (macOS) The built-in encrypted store where Apple devices keep passwords, keys and certificates.

Sources

  1. Key rotation (glossary)NISTofficial healthy, checked 2026-11-15 archived copy
  2. SP 800-57 Part 1 Rev. 5: Recommendation for Key ManagementNIST healthy, checked 2026-11-15 archived copy

In security catalogues