SEC-H09: rollback/forward-fix decision tree for four incident types (#445) #976
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!976
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-445-rollback-decision-tree"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds
docs/runbooks/rollback-decision.md— an operator rollback vs forward-fix decision tree covering frontend-only, indexer, contract, and chain dependency incident types (SEC-H09, #445).Each type documents symptoms, decision criteria (rollback vs hotfix vs pause), rollback paths with commands, limitations, and recovery verification. Cross-links from
launch-checklist.mdrollback section,wasm-admin-migration.md,emergency-commands.md, incident template, andsecurity-model.md. Doc drift guards:make check-rollback-decision-docs,make verify-issue-445. Agent playbook:skills/AGENTS_ROLLBACK_DECISION.md.Acceptance checklist
make verify-issue-445grep -c '### Decision criteria' docs/runbooks/rollback-decision.md(≥4 sections) +make verify-issue-445launch-checklist.mdrollback sectiongrep rollback-decision docs/runbooks/launch-checklist.md+make verify-issue-445Verification checklist (third parties)
Manual review:
docs/runbooks/rollback-decision.md— confirm mermaid top-level tree and four numbered sections.docs/runbooks/launch-checklist.md§ Rollback / incident — confirm link to rollback runbook.docs/runbooks/wasm-admin-migration.md§ Rollback vs forward-fix — confirm contract cross-link.docs/runbooks/emergency-commands.mdRelated + Incident workflow — confirm rollback runbook link.docs/templates/incident-dex-indexer.mdMitigation — confirm rollback bullet.skills/AGENTS_ROLLBACK_DECISION.md— agent playbook present.Related: #445 (issue stays open until merge).
Security review — MR !976
Commit reviewed:
d5a509b73c66a7ca367808ddfe0a983b9fd40042Scope: SEC-H09 rollback/forward-fix decision tree —
docs/runbooks/rollback-decision.md, cross-links in runbooks/templates/security-model, agent skillskills/AGENTS_ROLLBACK_DECISION.md, doc drift guards (scripts/check_rollback_decision_docs.py,scripts/qa/verify-issue-445.sh), Makefile targets.Method: Full MR diff review; traced attacker-controlled input to sinks in added/modified code; compared new scripts to existing doc-invariant patterns; checked for secret leakage, injection, authz bypass, SSRF/XSS/deserialization, and unsafe operator guidance.
Outcome:
FINDINGS: 0medium+Inline threads: none (no medium+ findings)
Summary
This MR is documentation and CI doc-drift tooling only — no changes to frontend, indexer, CosmWasm contracts, or deployment/runtime code. Added Python/bash scripts read fixed repo paths with string-marker checks; they accept no external or attacker-controlled input and introduce no injection or deserialization surface.
The runbook reinforces sound incident controls already present elsewhere: pause/blacklist before off-chain rollback when funds are at risk, production secrets outside the repo, Postgres snapshot before
down.sql, LCD/RPC failover with block-height/hash verification before unpause (SEC-G07), and explicit migrate-back limitations. No credentials, mnemonics, or live endpoints were added.Prior security-review comments: none on this MR; nothing to re-report.
Security review: no medium+ findings on this diff.
mentioned in issue #443
mentioned in issue #445
added 6 commits
main9313da2f- Merge origin/main into issue-445-rollback-decision-tree.Compare with previous version
Resolved merge conflicts with
main(merge commit9313da2f).Files:
Makefile— combinedcheck-rollback-decision-docs/verify-issue-445(SEC-H09) withcheck-wasm-migration-rollback-docs,check-test-evidence-gate-docs, andverify-issue-443/verify-issue-444from main.docs/runbooks/launch-checklist.md— kept SEC-H09 rollback decision tree bullets alongside SEC-H05 wasm migration rollback cross-links.docs/runbooks/wasm-admin-migration.md— kept SEC-H09 forward-fix decision section above the SEC-H05 rollback/limitations detail from #443.Sanity checks:
make check-rollback-decision-docs,make verify-issue-445, andmake verify-issue-443all pass.mentioned in commit
6d945d81a8Security review — MR !976 (re-run)
Commit reviewed:
9313da2fb45d92a400c170de52c937961ef49082(includes merge oforigin/maininto issue branch; prior review atd5a509b73c66a7ca367808ddfe0a983b9fd40042)Scope: SEC-H09 rollback/forward-fix decision tree —
docs/runbooks/rollback-decision.md, cross-links in runbooks/templates/security-model, agent skillskills/AGENTS_ROLLBACK_DECISION.md, doc drift guards (scripts/check_rollback_decision_docs.py,scripts/qa/verify-issue-445.sh), Makefile targets.Method: Full MR diff review at current head; traced attacker-controlled input to sinks in added/modified code; compared new scripts to existing doc-invariant patterns; checked for secret leakage, injection, authz bypass, SSRF/XSS/deserialization, and unsafe operator guidance. Re-read prior security-review note on this MR (3507505327).
Outcome:
FINDINGS: 0medium+Inline threads: none (no medium+ findings)
Summary
Security review: no medium+ findings on this diff.
This MR is documentation and CI doc-drift guards only — no runtime changes to frontend, indexer, or CosmWasm contracts. Added Python/bash verification scripts read fixed repo paths and marker strings; they accept no external input and introduce no injection or deserialization surface. The runbook operator commands follow existing
emergency-commands.md/wasm-admin-migration.mdpatterns (governance-gated pause/migrate, placeholder env vars, explicit limitations on migrate-back, LCD failover verification, and “never reuse dev.env.local”). Merge-conflict resolution inlaunch-checklist.mdandwasm-admin-migration.mdadds cross-links only; no new executable logic.Prior finding threads: none to re-report.