OWASP / OWASP/OpenCRE

Continuity runbook: Rollback production

Open
#1,063 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

existing-maintainers-only
Dominant language
Python
Stars
180
Forks
137
Avg merge
3d 23h
Merged PRs (30d)
21

Description

Task

A second maintainer can roll back a Heroku release on opencreorg when a deploy is bad, without confusing slug rollback with database rollback.

Success criteria

  • Runbook docs/continuity/runbooks/rollback-production.md (skill continuity-rollback-production)
  • Operator lists heroku releases and only rolls back after a human types the exact vNNNN
  • Stops if the bad release may have migrated Postgres (Alembic); documents that slug rollback does not undo the DB
  • Knows ALEMBIC_GUARDRAIL_FAIL on release: means stop rolling back blindly

Context

  • Prod deploy force-pushes to the Heroku git remote (.github/workflows/deploy.yml)
  • Procfile release: runs scripts/check_alembic_revision_guardrail.py

Constraints

  • existing maintainers only
  • Agent must not heroku rollback unprompted
  • No config dumps

Agent prompt

See Agent prompt in docs/continuity/runbooks/rollback-production.md.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with docs/continuity/runbooks/rollback-production.md, then read .github/workflows/deploy.yml, Procfile, and scripts/check_alembic_revision_guardrail.py. Confirm the runbook covers exact-release confirmation, the distinction between slug and Postgres rollback, and the ALEMBIC_GUARDRAIL_FAIL stop condition without permitting unprompted rollback or config dumps.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github-actions, postgresql, python
Domain
cloud, databases, devops, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.