Repository navigation
security/release: 0.7.1 add-ons and stdio MCP sandbox guard - #722
Merged
Merged
Conversation
…nel and worker images Port #708 into the panel Dockerfile and Dockerfile.worker so uid/gid 10001 resolves to artex-exec in both images (fixing tools such as ssh that require a passwd entry for the running UID) and add the 0.7.1 CHANGELOG entry. Co-authored-by: BaaRai <130491490+BaaRai@users.noreply.github.com>
…scriptor metadata Rebase #700 onto P0's isolation changes in server/isolation_unix.go (preserving LockDownKeyDir, keys/ dir checking, and fail-closed EnforceIsolation): probe each protected path directly with O_RDONLY|O_NONBLOCK|O_NOCTTY under the file- tool and Bash identities, report descriptor mode/uid/gid or unexpected open errors, and add the 0.7.1 CHANGELOG entry. Co-authored-by: BaaRai <130491490+BaaRai@users.noreply.github.com>
Dockerfile.worker already creates exec (10001:10001) with HOME=/home/exec; #708's artex-exec rename was unnecessary and would have changed the worker identity name. The panel image keeps the artex-exec entry it needed; the worker is unchanged. The changelog now says so.
…mode In ARTEX_SANDBOX=required the panel must not start agent-controlled local processes. discoverAndCacheMCP now refuses stdio before connectMCP, which covers startup auto-discovery, the operator add/refresh paths and ScopeSentry; the Auto agent's create_mcp and update_mcp reject stdio transports as well. HTTP and SSE MCP clients keep their existing checks. The canary test proves the command is not spawned.
The 0.7.1 release notes now list the security, interception, workspace, traffic and data changes from the v0.6.0 window that were not already detailed in the 0.7.0 or 0.7.1 sections, with their pull request numbers.
This was referenced Nov 30, 2026
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
0.7.1 add-ons on top of #718. The review of the release found one remaining panel-side execution path, fixed here, plus two contributor fixes already prepared for this release.
Security fix
ARTEX_SANDBOX=required.discoverAndCacheMCPnow refuses a stdio transport beforeconnectMCP, which covers startup auto-discovery, the operator add/refresh paths and ScopeSentry. The Auto agent'screate_mcpandupdate_mcpreject stdio as well. HTTP and SSE MCP clients keep their existing checks. A canary test proves the command is not spawned. This was the remaining contradiction with the per-task sandbox: an agent could create a stdio MCP and the next server start would launch it on the panel.Included contributor work
artex-exec(10001:10001,/app/data/exec-home,/usr/sbin/nologin) so programs that look up their own user, such as ssh-based stdio MCP servers, start.Dockerfile.workeralready hadexec(10001:10001,/home/exec,/bin/bash), so the worker is unchanged; the add-on commit restores that and the changelog says so.O_RDONLY|O_NONBLOCK|O_NOCTTY, reports the opened descriptor mode, uid and gid, and fails on unexpected errors such as symlink loops.Changelog
Tests
go build ./...andgo vet ./server.go test ./serveron disposable PostgreSQL 16: 120.7s, PASS.TestSandboxSkipsStdioMCPDiscovery,TestSandboxMCPToolGuardsStdioOnly,TestSandboxCreateMCPRejectsStdio: PASS.git amof the combined add-on patch on top of release: package the sandbox images for the 0.7.1 default #718 and clean-clone verification: PASS.Not included
#701 (prompt-only allow semantics, deferred), #704 (Docker cache, conflicts with the changelog), #719 (out of scope), #720 (CORS proof validation, separate review), dependabot, and all feature PRs.