Repository navigation
Preserve independent container permissions and ACL conditions - #368
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
ACL planning conflates contents-only and folder grants, potentially granting unintended descendant Write access while omitting folder access, and splitting grants with blank-node conditions causes serialization failures before PATCH.
2 open issues
What changed in this PR
This PR separates folder and contents permissions for the same agent in the access-control logic, aiming to preserve unrelated grants when one scope changes.
Changes:
- Include contents-only rules when discovering direct container permissions.
- Add folder-only revocation and share scope-aware authorization splitting.
- Test preservation of other subjects and scopes, plus inherited contents revocation.
| File | Description |
|---|---|
test/resourceLogic.test.ts |
Adds the folder-only revocation mock. |
test/aclLogic.test.ts |
Tests scope separation, discovery, and permission preservation. |
src/types.ts |
Exposes planRevokeContainer in the ACL interface. |
src/acl/aclLogic.ts |
Expands container discovery and implements scope-aware grant and revoke handling. |
Review effort: Balanced
8f45691 to
bae22e2
Compare
Prompt: various prompts around handling the acl for container access so that we can effectively handle all options for container access folder and contents, folder only, and contents only. Co-authored-by: GPT-5.6 Luna <gpt-5.6-luna@openai.com>
bae22e2 to
377c6a1
Compare
Prompt: multiple prompts to help address the PR feedback in the best way Co-authored-by: Claude Opus 5.5 <claude-5.5-opus@openai.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
ACL updates still mishandle scope transitions and multi-target revocations, potentially retaining stale grants or removing unrelated access, while the protected-control guard can reject valid partial updates.
4 open issues
2 resolved since last review
Review effort: Balanced
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
535248a to
ca97c3b
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Splitting shared authorizations with blank-node metadata produces deletes that the dependency’s serializers reject, causing grant application to fail before the patch is sent.
1 open issue
4 resolved since last review
Review effort: Balanced
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>


Handle folder-only, contents-only, and combined container access without changing unrelated permissions.
ACL conditions
Existing ACL conditions are preserved when changing a subject’s role or container scope. If an authorization is shared by multiple subjects, the planner can split it so the selected subject’s access changes without changing the others’ permissions or conditions.
Named and blank-node conditions are supported. When a blank-node condition cannot be uniquely identified for a patch, its condition data is copied for the changed subject while the original remains available to other subjects. Supported inherited conditions are also preserved when materializing a local ACL; unsupported condition types or properties cause an explicit error on that path.
SolidOS does not currently provide condition editing. This change preserves existing condition data; the pod server remains responsible for evaluating and enforcing it. Separate applicable grants may still provide access.
Added extensive unit tests and e2e tests.