API key rotation for small teams

Every small team has a folder of keys older than the company's last two hires: the Stripe secret that predates the rebrand, the AWS access key in someone's .env from the prototype, a SendGrid key with full send rights that three people know by heart, a GitHub token with repo scope that outlived the contractor who made it. Nobody rotated them because nobody has ever shown them what rotation looks like when it doesn't break production.

This is the deferred-maintenance problem, not a knowledge problem. Password managers pushed password rotation into routine; API keys never got the same machinery, so they quietly become permanent. Meanwhile the blast radius grows: a key made for a weekend script now powers your invoicing. A key like that, leaked, doesn't just embarrass you — it mines crypto in your cloud account or emails your entire customer list. The fix is a boring quarterly ritual with a strict sequence: create the new key before you kill the old one, always. Sixty minutes, once a quarter, and the day a key leaks becomes an inconvenience instead of an incident. This pairs with the key-leak response runbook the same way backups pair with restore tests.

1. Build the key inventory (25 minutes, once)

Rotation starts the same way every good control does: you cannot rotate what you cannot list. One sitting, then it's a living document:

2. Decide per key: rotate, shrink, or retire

Not every key deserves rotation. The quarterly decision for each key is one of three moves:

3. The no-downtime rotation sequence (the part nobody teaches)

Rotations break production in exactly one way: the old key dies while something still uses it. The sequence below makes that impossible, and it's the whole ritual in miniature:

The order is the safety property: create → deploy → verify → revoke. At every moment before the last step, both keys are live, so a missed consumer costs nothing but a log line.

4. The platforms that quietly hold half your keys

Small teams rotate the keys in their password manager and forget that the deploy platform is made of keys too:

5. Kill the shared key while you're in there

The rotation session is the cheapest moment the team will ever have to fix key architecture, not just key age:

6. Third-party and vendor keys: the keys you don't control

Half the credentials in a small company's blast radius belong to other people's systems, and they rotate on their own schedule, not yours:

7. The rotation log (turns a ritual into a control)

One file, appended every quarter. This is the document that makes the whole thing auditable — by you, by a customer's security reviewer, by the annual review:

8. Make it a calendar event, not a memory test

The ritual only survives if the calendar carries it:

9. Common failure modes (learned the hard way by someone, somewhere)

10. Close the loop: the quarterly pass, the runbook, and the audit trail