You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/09/26 17:23:05 UTC

[PR] fix(setup): let the sandbox run Docker Desktop's CLI by default [magpie]

potiuk opened a new pull request, #1404:
URL: https://github.com/apache/magpie/pull/1404

   ## Summary
   
   - The default sandbox denies all of `~/` and never re-allowed Docker Desktop's CLI paths, so on macOS `docker`, `docker compose` and `docker buildx` failed with `operation not permitted` before ever reaching the container gateway. #1184 documented `~/.docker/bin/` and `~/.docker/cli-plugins/` as a manual `allowRead` opt-in; this makes them the default, so the gateway works out of the box for Docker Desktop users.
   - Credentials stay protected: everything else under `~/.docker` (`config.json`, `contexts/`) is still denied to the sandbox, `Read(~/.docker/**)` still denies it to the agent's file tools, and `sandbox-lint` still rejects `~/.docker` itself in `allowRead`.
   - `.typos.toml` now ignores the generated `FRAMEWORK_FINGERPRINT` digest, like the existing `surface_hash` rule. Changing `.claude/settings.json` regenerates it, and the new value (`83afe25…`) contains a hex run typos reads as a misspelling, so this PR could not pass `prek` without it.
   
   ## Type of change
   
   - [x] Python package (`tools/*/` with `pyproject.toml`)
   - [x] Cross-cutting (RFC, AGENTS.md, sandbox, privacy-LLM)
   - [x] Documentation (`docs/`, `README.md`, `CONTRIBUTING.md`)
   - [x] CI / dev loop (`prek`, workflows, validators)
   
   ## Test plan
   
   - [x] `prek run` on every changed file passes (including `typos`, `lychee`, `check-placeholders`)
   - [x] For Python packages touched: `uv run --project tools/sandbox-lint pytest tools/sandbox-lint/tests` passes
   - [x] New `test_baseline_allows_docker_desktop_cli_without_credentials` fails with the `allowRead` change reverted and passes with it
   - [x] Other: on macOS with Docker Desktop, adding the two paths to a sandboxed Claude Code session makes `docker compose version` and `docker buildx version` run inside the sandbox; `~/.docker/config.json` stays unreadable (the CLI warns `operation not permitted` on it, as intended)
   
   ## RFC-AI-0004 compliance
   
   - [x] **Sandbox** — widens `allowRead` by two exact, credential-free directories of CLI binaries; no new network reach, credential paths remain denied and lint-guarded
   
   ## Linked issues
   
   Refs #1184
   
   ## Notes for reviewers (optional)
   
   This reverses the opt-in choice in #1184: the paths hold only binaries (`~/.docker/bin/docker` is a symlink into `/Applications/Docker.app`), so allowing them by default costs no isolation, while leaving them out silently broke the container-gateway workflow for every Docker Desktop user. With `docker` installed via Homebrew they are harmless no-ops. `isolated_fingerprint.py` changes because `.claude/settings.json` is a fingerprinted secure-setup file.
   
   ---
   Generated-by: Claude Code (Opus 5)
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(setup): let the sandbox run Docker Desktop's CLI by default [magpie]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #1404:
URL: https://github.com/apache/magpie/pull/1404


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org