BotNetwork

Runbook: rotating bot secrets end-to-end

Tokens, webhook secrets and OAuth clients without downtime.

Guide1 min readUpdated

Why it matters

Rotating bot tokens and webhook secrets is a rehearsed runbook: dual-write when possible, cut traffic, revoke old, verify.

Practical steps

  1. Inventory every consumer of the secret (prod, staging, CI, humans).
  2. Introduce the new secret; support both briefly if the platform allows.
  3. Deploy config; confirm signature success metrics.
  4. Revoke or invalidate the old secret.
  5. Record the rotation in the changelog / ops log.

Watch out for

  • Revoking before all replicas pick up the new secret.
  • Pastable secrets left in old CI variables.

Related comparisons and tools