Platform

Platform overview How it works Authorization testing Evidence & reports Private scanning Integrations

Solutions

Security agencies Product teams Regulated industries Partner programme

Learn

Blog Knowledge hub Compare

Resources

Pricing Documentation FAQ Security & data What we haven’t proved

Company

About Contact Careers Sign in to the platform Start a $199 pilot

Home / Knowledge hub / Key rotation

Knowledge hub

Key rotation

Replacing a credential on a schedule so a leaked one has a short life.

What it means

Key rotation replaces credentials, API keys, signing keys and certificates on a schedule rather than leaving them in place for years. Nobody has to prove the old value leaked. The point is that if it ever did, its usefulness has an end date.

Done properly it is dull. You issue a new value, run both for a short overlap, let systems pick up the new one, withdraw the old one, and nothing falls over.

Why it matters

Credentials escape in ways you never learn about. A laptop, a log file, a screenshot in a support ticket, a contractor's machine, a repository that sat public for an afternoon. Rotation is the one control that does not depend on knowing any of that happened. It is also your first move after finding a hardcoded secret.

Google's key management documentation recommends automatic rotation on a regular schedule and gives 90 days as an example period. OWASP adds the part teams skip: build and test the rotation process before you need it, so you can move quickly during an incident.

How it shows up

Rotation itself rarely breaks. The forgotten copy breaks. A value pasted into a scheduled job, a partner integration set up three years ago, a mobile app that needs resubmitting to the store. Something fails at an awkward hour, the change gets rolled back, and nobody tries again.

Two habits cover most of it. Support an overlap so old and new both work for a defined window, and rehearse somewhere safe while it is not urgent. Nobody rotates a key well for the first time during an incident, which is the only moment it truly matters.

Questions people ask

Key rotation, answered

How often should we rotate keys?

It depends on what the key protects and how widely it travels. Annual rotation is the floor many compliance regimes ask for, and 90 days appears often in cloud provider guidance.

Pick a period you can actually meet without drama. A schedule you keep beats an ambitious one you abandon after the first outage.

Is rotation pointless if nothing leaked?

No, because you do not get told when something leaks. Rotation limits the life of an exposure you never detected, which is the common case rather than the rare one.

It also proves the process works, which matters enormously on the day you have to rotate in a hurry.

Is rotating production keys risky?

It carries real risk, and that risk drops sharply with an overlap period where both values work. Rotating without one turns a routine change into a cutover.

The bigger danger is never rotating at all, because then the emergency rotation is also your first attempt.

Does rotating fix a leak that already happened?

It stops the credential working, which ends the access. It does nothing about what happened while the old value was valid.

Rotate first, then work out what that key could reach and whether anything used it. Those two steps run in that order for a reason.

Do we have to re-encrypt old data when we rotate?

Usually not immediately. Most systems keep old key versions so existing data stays readable, and re-encrypt gradually or on next write.

If somebody compromised the old key rather than simply ageing it out, re-encrypting becomes urgent. Whoever holds that key still reads anything it protects.

Could you rotate it tomorrow?

Rotation stays your process, not ours. What we can show you is where the application itself hands out a credential, with the request that revealed it. Start with a pilot on one application.

Or start with a $199 pilot on one application: thirty days, success criteria agreed before day one, credited against the annual if you convert.