Why it matters
Revoke first rotate second then audit sends.
Practical steps
- Threat-model sec incident secrets: spoofed webhooks, leaked tokens, and confused-deputy admin actions.
- Implement revoke first rotate second then audit sends with constant-time compares where secrets are involved.
- Never log raw tokens, signing secrets, or full payment payloads.
- Add unit tests that prove forgeries fail closed for sec incident secrets.
- Document rotation and incident steps for sec incident secrets in the security runbook.
Watch out for
- Copy-pasting outdated snippets for sec incident secrets without re-reading current official docs.
- Shipping sec incident secrets to production without a staging rehearsal and a documented rollback.