API keys
Rotate a key
Replace a secret key with a new one without downtime by overlapping the old and new keys.
Overview
Rotation issues a new gray_sk_… and invalidates the previous secret. Project ID stays the same.
Zero-downtime rotation
- Generate the new secret in Console.
- Deploy the new secret to all servers and workers.
- Verify traffic on the new key.
- Remove the old value from config—the old secret no longer works after rotation.