Key rotation
Replacing a password, key or token with a new one and retiring the old one.
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)
- API key
- Access token
- Allowlist
- Authentication (and authorisation)
- Deny by default
- Headscale
- Keychain (macOS)
Sources
- Key rotation (glossary)NISTofficial healthy, checked 2026-11-15 archived copy
- SP 800-57 Part 1 Rev. 5: Recommendation for Key ManagementNIST healthy, checked 2026-11-15 archived copy
In security catalogues
- IA-5 Authenticator ManagementNIST SP 800-53 healthy, checked 2026-11-15 archived copy