Shipping ItLesson 61 of 74

Module 7 · Security after the short list

Changing a key while everything is using it

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 4 of 9 in this chapter

This chapter’s goalEnforce authorisation per object rather than per page, revoke a session or rotate a key without an outage, and run the first day of a breach or an abuse report with evidence preserved and users told the truth.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
Rotation with an overlap windowCreate the newkeyalongside theold one; bothworkDeploy the newkey everywherethis is whereyou find thefour places itlivesWatch the oldkeylast-usedtimestamps oryour own key-IDlog, until itshows no usageDisable the oldkeynot delete:reversible for aweekDelete itonce nothing hasbrokenFor a period both keys are valid, so the forgotten cron job is discovered safely rather than by anoutage. Watching the old key go quiet is the step that turns rotation from a hope into a fact.
For a period both keys are valid, so the forgotten cron job is discovered safely rather than by an outage. Watching the old key go quiet is the step that turns rotation from a hope into a fact.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

Rotation is a procedure, not a value

Everybody knows keys should be rotated. Far fewer teams have done it, because the naive version (replace the value, restart, hope) takes the site down when something you had forgotten was still using the old one.

The result is that keys quietly become permanent. A credential shared with a contractor in 2023 still works. The database password is in four places, one of which is a cron job nobody has opened. And when a leak forces a rotation, it happens under pressure, badly.

The fix is to make rotation a rehearsed, dull procedure. It has one core idea: for a period, both keys are valid.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Agents and Automation exam.

Stuck on something?Ask Tri, your AI tutor

How to cite: Addaly (2026) ‘Changing a key while everything is using it’, in Shipping It. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/cloud-and-shipping/rotating-a-key-without-downtime (Accessed: 29 November 2026).