Why it matters
Record who ran privileged commands with correlation ids.
Practical steps
- Threat-model sec admin audit log: spoofed webhooks, leaked tokens, and confused-deputy admin actions.
- Implement record who ran privileged commands with correlation ids 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 admin audit log.
- Document rotation and incident steps for sec admin audit log in the security runbook.
Watch out for
- Copy-pasting outdated snippets for sec admin audit log without re-reading current official docs.
- Shipping sec admin audit log to production without a staging rehearsal and a documented rollback.