API Key and Client-Credential Rotation Failures
Credentials expire or are revoked while consumers still rely on them, with no safe overlapping transition window.
Failure explanation
Credential lifecycle operations break consumers because rotation, overlap, expiration, or revocation behavior is unclear or inconsistent. A new key may be activated before consumers can deploy it, an old key may be revoked too early, or cached credentials may continue being used after expiration. Successful authentication with one static key does not test lifecycle safety.
Example
A partner receives a replacement API key but needs a scheduled deployment window to update production. The provider revokes the old key immediately, so the partner’s nightly integration fails before the new key is deployed.
How to test
- Test old and new credentials during the documented overlap period.
- Verify expiration, revocation, invalid credentials, and cache refresh.
- Test concurrent consumers and staged rollout.
- Ensure secret values are never exposed in logs or retrieval APIs.
Expected behavior
The credential lifecycle provides a documented and safe rotation path, with clear activation, overlap, expiration, and revocation semantics.
Runnable examples
Each example includes a broken server, a fixed server, an OpenAPI spec, and a clrsig scenario that detects the failure.