A key’s day

Part 1, Code · Step 15: Rotate

Replace a key without breaking anything

Swap in a new key. Diego, the owner, creates a new key, sk_live_example_replaced, and gives it only what billing needs. Then Fatima updates the app, and Diego shuts off the old key. This is the step that removes the risk.

Why it matters. Every step before this found the problem. This step removes it.

See it in the lesson Part 1 recap

This really happened: Cloudflare, 2023

After the Okta breach, Cloudflare rotated thousands of credentials but skipped one service token and three accounts it believed were unused. Attackers used them to reach its wiki and Jira.

Why rotation is a pain for teams

Sources

Keep going

More topics