Repository navigation
chore(sandbox): allow the docker CLI and Flutter write paths (OD-49) - #77
Merged
Merged
Conversation
Owner decision OD-49: sandbox.excludedCommands ["docker *"] and
sandbox.filesystem.allowWrite ["//opt/flutter/bin/cache", "~/.dart-tool"].
The sandbox policy tests pin both lists exactly instead of forbidding
excludedCommands.
Measured in a cloud session: "docker" alone did not match "docker info"
("docker *" does); Docker started from Node (env:check, Testcontainers,
obs/backup) stays sandboxed; the Flutter paths still fail until the
environment's setup script makes /opt/flutter owned by root and creates
~/.dart-tool. Recorded in open-decisions, cloud-sessions and the WSL2
guide.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ay8hotFSny4hpGJSHNrpQP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ay8hotFSny4hpGJSHNrpQP
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
Owner decision OD-49 (recorded in
docs/open-decisions.md), widening the Claude Code Bash sandbox:.claude/settings.json:sandbox.excludedCommands: ["docker *"]andsandbox.filesystem.allowWrite: ["//opt/flutter/bin/cache", "~/.dart-tool"].scripts/test/sandbox-policy.test.mjs/sandbox-settings.test.mjs:excludedCommandsmoves from forbidden to pinned; both new lists must match exactly, so a later PR still cannot widen them silently.docs/process/cloud-sessions.mdanddocs/process/wsl2-setup.mdupdated to what was measured.Accepted risk: a command Claude types that starts with
dockerruns unsandboxed, with the Docker daemon's root access.Measured in a cloud session (the settings reload live):
"docker"alone did not matchdocker info;"docker *"does (docker info→29.9.2).pnpm env:check, Testcontainers,obs:*,backup:*still hit the sandbox and stay CI-only./opt/flutteris owned bynobody(from the archive) and root has no override inside the sandbox, so Flutter still getsPermission denied. That needschown -R root:root /opt/flutterandmkdir -p /root/.dart-toolin the cloud environment's setup script (owner's environment settings, not this repository).Test plan
node --test scripts/test/sandbox-policy.test.mjs scripts/test/sandbox-settings.test.mjs: 12 pass, 0 faildocker infoin a cloud session after the change: workspnpm verify(fast): format, instructions, lint-root, scripts-test, file-length, drift pass;pub-getfails on/opt/flutterownership (documented above), sotypecheck+lint+testwas skipped. CIverify (full)is the gate.Generated by Claude Code