Repository navigation
fix(config): ignore permission grants from untrusted project settings - #3415
Open
Yeachan-Heo wants to merge 3 commits into
Open
Yeachan-Heo wants to merge 3 commits into
Yeachan-Heo wants to merge 3 commits into
Conversation
Strip permissions.allow and permissions.defaultMode from project-local config files (.claw.json, .claw/settings.json) to prevent privilege escalation. Keep restrictive permissions (deny, ask) from project files. Add test verifying that project-granted permissions do not reach runtime. Document untrusted project settings behavior in USAGE.md. Fixes #3414
Contributor
Author
|
Ready; held for owner sign-off on the policy (see #3414) |
added 2 commits
November 29, 2026 03:06
…ject settings A project .claw.json could still set "permissionMode": "danger-full-access", which permission_mode() reads before permissions.defaultMode.
Project-scope permissionMode is now ignored, so the prompt rendering fixtures use .claw/settings.local.json.
Contributor
Author
|
Monitor fix-forward on top of eef0938:
All 7 checks pass at cf4cc72. Still held for owner sign-off on the policy (#3414), since teams that commit shared |
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.
Fixes #3414
This PR strips permissions.allow and permissions.defaultMode from project-local settings files (.claw.json, .claw/settings.json) to prevent privilege escalation through shared repository configuration.
Changes:
Note: DO NOT MERGE - this changes behavior for teams that commit shared allow rules, so it needs owner sign-off on the policy (see #3414).