Repository navigation
test(backend): route persona authz matrix and read-only restore drill - #1575
Merged
mimijuwonlo-commits merged 1 commit intoOct 22, 2026
Conversation
Authorization matrix: - Add collaboration.authz-matrix.test.ts: every persona (anonymous, malformed, owner, admin, editor, viewer, unrelated) against every collaboration resource route through the real router, plus public routes and boundaries (body-spoofed roles, cross-project access, fail-closed resolver, roleless collaborator, owner listed as viewer, whitespace and lower-cased headers, post-transfer revocation, denied cancel is a no-op). - No guards changed; route-level coverage only. Restore drill: - Add src/scripts/restore-drill.ts: --capture records per-table row counts, order-independent SHA-256 row checksums and exact BigInt financial totals (no row contents or wallet addresses); --validate diffs a restored DB against it and runs the existing runDatabaseConsistencyAudit on the restore. Read-only; validation requires RESTORE_DRILL_TARGET=restore. - Add restore-drill.test.ts for success, failure and boundary cases. - npm scripts restore-drill:capture / restore-drill:validate. Docs: authorization-coverage-tests.md persona matrix, postgres-backup-restore runbook section 3.5, CHANGELOG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@sammy123-bot Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Authorization matrix:
Restore drill:
Docs: authorization-coverage-tests.md persona matrix, postgres-backup-restore runbook section 3.5, CHANGELOG.
Summary
Closes #1455
closes #1470
closes #1482
closes #1480
Changes
Testing
PR Checklist
.env.exampleif neededDeploy Impact
Risk level
Contract changes
Database migrations
Environment variables
.env.exampleRollback plan
See release readiness checklist for
the full pre-deploy gate.