Skip to main content

Key rotation

Rotate keys on a schedule and immediately whenever an exposure is suspected.

A safe rotation looks like:

  1. Mint a new key in the same environment (same sk_test_ or sk_live_ prefix).
  2. Deploy the new key to your services.
  3. Verify traffic is using the new key in the dashboard's Key usage view.
  4. Revoke the old key.