29 lines
2.7 KiB
Markdown
29 lines
2.7 KiB
Markdown
# 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
|
|
1. Verify PR #198 merged into `main`, confirm CI and smoke tests pass and document any known limitations.
|
|
2. Capture the exact `main` merge commit SHA; create annotated, protected tag `baseline/api-security-ranks-198` pointing to that SHA.
|
|
3. Create protected recovery branch `recovery/api-security-ranks-198` at the same SHA. Never rewrite or force-push this branch.
|
|
4. Produce a full Git mirror bundle (`git bundle create dunerealms-api-security-ranks-198.bundle --all`) from a fully fetched repository clone, and verify with `git bundle verify` and a test clone.
|
|
5. 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.
|
|
6. 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.
|
|
7. Record recovery instructions and the tag/branch/bundle/checksum locations in an operator-only runbook; do not commit backup credentials or database exports.
|
|
8. Protect `main` and the baseline references; future feature branches start from the latest approved `main` descendant of this baseline. Never reset `main` to 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