Repository navigation
fix: preserve authorization identity in access planning - #373
Open
SharonStrats wants to merge 3 commits into
Open
SharonStrats wants to merge 3 commits into
SharonStrats wants to merge 3 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Authorization ID filters are not consistently applied during inherited ACL materialization, scope expansion, and access swaps, causing unselected rules for the same subject to be revoked or rewritten.
3 open issues
What changed in this PR
This PR adds authorization-ID selection to container access planning, aiming to target individual rules rather than all rules for a subject.
Changes:
- Add optional
authorizationIdsto container access changes. - Filter initial authorization matches by selected IDs.
- Bump the package version to
6.2.2-3.
| File | Description |
|---|---|
| src/types.ts | Adds the authorization-ID selection field. |
| src/acl/aclLogic.ts | Filters initial matches by authorization ID. |
| package.json | Updates the package version. |
| package-lock.json | Synchronizes package version metadata. |
Review effort: Balanced
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
SharonStrats
force-pushed
the
fix/preserve-authorization-identity
branch
from
December 4, 2026 20:11
b993e2a to
93f5388
Compare
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved ACL defects can drop distinct authorization grants during scope changes and produce invalid SPARQL DELETE templates when revoking rules with blank-node conditions.
2 open issues
3 resolved since last review
Review effort: Balanced
Comment on lines
+827
to
+829
| const hasBlankNodeObjects = context.dataset.some(statement => | ||
| statement.subject.value === authorization.id && statement.object.termType === 'BlankNode') | ||
| if (hasRemainingTargets || !hasBlankNodeObjects) { |
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
Preserve authorization identity when changing container access, so editing one grant does not accidentally change other grants for the same subject.
Changes
Allow container access changes to target specific authorization IDs.
Respect those IDs when materializing inherited ACLs, expanding scopes, and swapping folder and contents access.
Preserve unselected grants and their conditions.
Avoid duplicate scope targets when merging or narrowing selected grants.
Remove orphaned authorizations when their final target is revoked.