OPS-29Recommended
Fix the service first
Restore service first, by rolling back, failing over or turning a feature off. Find the root cause after users are safe.
How to do it
Keep a rollback one command away, as the deploy rule describes. Prefer a known safe state over a clever fix under pressure. In a suspected attack, snapshot disks and copy logs before you roll back or rebuild, as security incidents says.
How to check
Each incident record of the last quarter has two times, service restored and root cause found. In every record, service restored comes first or the record says why a rollback was not possible.
Sources
Related rules
- ENG-8 Deploy in one step and roll back by itself in Engineering
- OPS-30 Keep evidence in security incidents in Operations and observability
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/operations/incidents/mitigate-first">Agent Wranglers operations and observability playbook</a>. In code you write, add a comment next to it with the same link.