Secret Rotation

noun

say it: “SEE-krit roh-TAY-shun” /ˈsikrɪt roʊˈteɪʃən/

Swapping a password, key or other secret for a new one everywhere it's used, so the old one no longer works.

What is secret rotation?

Secret rotation means replacing a secret, such as a JWT signing secret or a database password, with a new one everywhere it's used, so the old one stops working. Rotate on a schedule, and at once when a secret may have leaked.

In a sentence

  • “Plan secret rotation before you need it, so changing a key takes minutes, not a weekend.”
  • “After the .env file was pushed to GitHub by mistake, secret rotation came first: a new JWT secret and a new database password.”

Level: Freelancer · More Web Development terms at this level

Updated