2.7 KiB
2.7 KiB
PR #198 — Canonical DuneRealms API/Security/Ranks Baseline
Baseline gate (not active yet)
The canonical baseline is the merge commit on main of PR #198, API - Security - Ranks, only after full tests and production verification. Do not tag the unmerged PR head or substitute an older bank/permissions branch. Record the exact merge SHA, release date, test report and approved migration mode in the release record.
Post-merge backup procedure
- Verify PR #198 merged into
main, confirm CI and smoke tests pass and document any known limitations. - Capture the exact
mainmerge commit SHA; create annotated, protected tagbaseline/api-security-ranks-198pointing to that SHA. - Create protected recovery branch
recovery/api-security-ranks-198at the same SHA. Never rewrite or force-push this branch. - Produce a full Git mirror bundle (
git bundle create dunerealms-api-security-ranks-198.bundle --all) from a fully fetched repository clone, and verify withgit bundle verifyand a test clone. - Store the verified bundle outside the production host, with a SHA-256 checksum, encrypted access controls and a recorded retention policy. Keep a second independent copy.
- Back up the production SQL database separately with a consistent transaction snapshot and encrypted storage; validate a restore on an isolated database. Git backups do not contain database data, secrets, or live inventories.
- Record recovery instructions and the tag/branch/bundle/checksum locations in an operator-only runbook; do not commit backup credentials or database exports.
- Protect
mainand the baseline references; future feature branches start from the latest approvedmaindescendant of this baseline. Never resetmainto the baseline as part of routine development.
Guardrails
- Merging PR #198 does not automatically activate shadow staff hierarchy migration. Owner must explicitly approve the account mappings and authorization activation.
- Archive obsolete PRs and branches only after confirming that unique work is preserved and the baseline backup is verified.
- If tests, database restore or bundle verification fail, keep PR #198 unmerged or postpone the baseline declaration until corrected.
- Never delete
main, the baseline tag, recovery branch, or historical backups during cleanup.
Completion checklist
- PR #198 merged and exact SHA recorded
- Full CI and live API smoke tests passed
- Protected tag and recovery branch created at merge SHA
- Git bundle verified and stored in two independent locations
- SQL backup restored successfully in isolated environment
- Recovery runbook and checksums recorded
- Baseline formally approved for future development

Staff