feat(settings): backport OS sandbox block + security deny hardening - #18
Merged
Conversation
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.
Backports the OS-sandbox + permission hardening that proved out downstream. The framework's
settings.jsonhadpermissions.allow/denybut nosandboxblock and only a minimal deny list.What
sandboxblock — OS sandbox (bubblewrap on Linux/WSL2) confining Bash writes to repo+temp and blocking reads of Windows/mntand credential dirs (~/.ssh,~/.aws,~/.config/gcloud,~/.kube,~/.gnupg,~/.npmrc,~/.docker/config.json).allowUnsandboxedCommands: trueso it degrades gracefully whenbwrapisn't installed.permissions.deny(defense-in-depth, always enforced even when the sandbox is off): privilege escalation (sudo/doas/su),docker, network fetchers (curl/wget/nc/telnet), Windows shells (cmd.exe/powershell/wsl.exe),/mnt, package publishes,gh auth token/gh secret, force-push,rm -rf, and Read denies for.env*+ credential dirs +/etcwrites.Scope
permissions.allowlist is unchanged — projects still add their own build/test prefixes per the file's_README.Note: created via the contents API off current
main; single-file change.🤖 Generated with Claude Code