Key rotation
Rotate keys on a schedule and immediately whenever an exposure is suspected.
A safe rotation looks like:
- Mint a new key in the same environment (same
sk_test_orsk_live_prefix). - Deploy the new key to your services.
- Verify traffic is using the new key in the dashboard's Key usage view.
- Revoke the old key.