← Back to all products

Secrets Rotation Runbook

$29

Zero-downtime rotation runbooks for database passwords, cloud access keys, API keys, JWT signing keys, TLS certs, and OAuth client secrets using the two-secret overlap pattern.

📁 8 files🏷 v1.0.0 (updated 2026-08-02)
JSONMarkdownAWSAzureGCP

📄 Product Preview

Try the interactive reader and demo tools below, or get the full product with all content unlocked.

📖 Interactive Reader (Free Preview) 📦 Download Free Sample

📁 File Structure 8 files

secrets-rotation-runbook/ ├── README.md └── runbooks/ ├── api-key.md ├── cloud-access-key.md ├── database-password.md ├── jwt-signing-key.md ├── oauth-client-secret.md └── tls-certificate.md

📖 Documentation Preview README excerpt

Secrets Rotation Runbook

Step-by-step runbooks for rotating the secrets that actually leak — database

passwords, API keys, cloud access keys, JWT signing keys, TLS certs, and OAuth

client secrets — without downtime. Each runbook uses the two-secret

(dual-key) pattern so you never have a window where the old secret is dead but

the new one isn't live yet.

The core pattern (applies to every secret)

Rotation that causes downtime is rotation nobody does. The fix is overlap:

1. Create the new secret alongside the old one.

2. Publish it to the secret store (both valid now).

3. Deploy consumers to accept BOTH old and new.

4. Cut over producers to emit/use the new secret.

5. Verify nothing uses the old one (logs/metrics).

6. Revoke the old secret.

Never delete before step 5. Never cut over before consumers accept both.

Runbooks included

  • runbooks/database-password.md — rotate a DB user's password with a standby user.
  • runbooks/cloud-access-key.md — rotate AWS/GCP/Azure keys (two-key overlap).
  • runbooks/api-key.md — rotate a third-party or your-own API key.
  • runbooks/jwt-signing-key.md — rotate a JWT/JWKS signing key with kid overlap.
  • runbooks/tls-certificate.md — renew + roll a TLS cert with no handshake gap.
  • runbooks/oauth-client-secret.md — rotate an OAuth client secret.

When to rotate

  • On a schedule (30–90 days for keys, per policy).
  • Immediately on suspected exposure (committed to git, leaked in logs, laptop lost).
  • On employee offboarding for anything they could have seen.

Requirements

None to read. Provider CLIs for the applicable runbook.

License

MIT.

📄 Content Sample guide/01-overview.md

Overview — Secrets Rotation Runbook

Step-by-step runbooks for rotating the secrets that actually leak — database

passwords, API keys, cloud access keys, JWT signing keys, TLS certs, and OAuth

client secrets — without downtime. Each runbook uses the two-secret

(dual-key) pattern so you never have a window where the old secret is dead but

the new one isn't live yet.

The core pattern (applies to every secret)

Rotation that causes downtime is rotation nobody does. The fix is overlap:

1. Create the new secret alongside the old one.

2. Publish it to the secret store (both valid now).

3. Deploy consumers to accept BOTH old and new.

4. Cut over producers to emit/use the new secret.

5. Verify nothing uses the old one (logs/metrics).

6. Revoke the old secret.

Never delete before step 5. Never cut over before consumers accept both.

Runbooks included

  • runbooks/database-password.md — rotate a DB user's password with a standby user.
  • runbooks/cloud-access-key.md — rotate AWS/GCP/Azure keys (two-key overlap).
  • runbooks/api-key.md — rotate a third-party or your-own API key.
  • runbooks/jwt-signing-key.md — rotate a JWT/JWKS signing key with kid overlap.
  • runbooks/tls-certificate.md — renew + roll a TLS cert with no handshake gap.
  • runbooks/oauth-client-secret.md — rotate an OAuth client secret.

When to rotate

  • On a schedule (30–90 days for keys, per policy).
  • Immediately on suspected exposure (committed to git, leaked in logs, laptop lost).
  • On employee offboarding for anything they could have seen.

Requirements

None to read. Provider CLIs for the applicable runbook.

Buy Now — $29 Back to Products