Module 77: Encryption and Secrets

Lesson 5 of 5 · 15–25 minutes

Rotation

🏠The everyday picture

When an employee leaves, or a key goes missing, a careful office changes the locks. A very careful office also changes them on a schedule, so a copy made long ago no longer works.

📘What it really is

🖱️Try it

Rotate your CRM's database password on staging without downtime: create the new password, update the env file or secret, redeploy, confirm, then remove the old one. Time it, and write the runbook in your operations guide. Add the last-rotated date to your key and secret inventory.

✅Quick check

In what order do you rotate a secret without downtime?

Show the answer

Create the new one, switch the app to it, confirm it works, then revoke the old one.

Why are short-lived credentials attractive?

Show the answer

They expire on their own, so a leaked one is useful only briefly, and there's less to rotate by hand.

← PreviousSecrets
ProLearners Assist