Repository navigation
OBJ-98 — Authorization policy in all read/write paths - #39
Merged
objectgyan merged 1 commit intoMay 17, 2026
Conversation
- Add DefaultAuthorizationPolicy with owner + role hierarchy (editor/commenter/viewer) - Update AuthorizationAction enum: rename Write→Edit, add Comment - Wire IAuthorizationPolicy.AuthorizeAsync into all document read/write endpoints - Keep AllowAllAuthorizationPolicy for test override compatibility - Add 16-case persona × action integration test matrix (AuthzPolicyMatrixTests) - Add scripts/validate-obj-98.ps1 + validation artifacts
OBJ-98 M9b.3 — Authorization policy callback in all read/write paths
Milestone: M9 · Wave: 3 SummaryImplement Acceptance
Validation
Branch / PRBranch from |
objectgyan
added a commit
that referenced
this pull request
May 17, 2026
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.
Summary
DefaultAuthorizationPolicywith tenant check + owner/share-role hierarchy (editor → commenter → viewer)AuthorizationActionenum:Writerenamed toEdit,CommentaddedIAuthorizationPolicy.AuthorizeAsyncinto all document read/write endpoints (GET/PUT/DELETE docs, versions, diff, restore, comments, replies, comment resolve, WS, PDF export, shares list)AllowAllAuthorizationPolicyin Infrastructure for test override compatibility (existing tests unchanged){ code: "forbidden" }JSON bodyTest plan
AuthzPolicyMatrixTests.csscripts/validate-obj-98.ps1exits 0 — live API + DB assertions passvalidation/obj-98-api.txt— 12-case matrix verifiedvalidation/obj-98-db.txt— DB unchanged after blocked write