Skip to content

security/release: 0.7.1 add-ons and stdio MCP sandbox guard - #722

Merged
BaaRai merged 5 commits into
mainfrom
release/0.7.1-addons
Nov 30, 2026
Merged

BaaRai merged 5 commits into
mainfrom
release/0.7.1-addons

Conversation

@BaaRai

@BaaRai BaaRai commented Nov 30, 2026

Copy link
Copy Markdown
Owner

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

  • The panel no longer starts stdio MCP servers in ARTEX_SANDBOX=required. discoverAndCacheMCP now refuses a stdio transport 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 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

  • fix(docker): give the agent executor a passwd entry #708, panel executor passwd entry by @jedrzejsieracki: the panel image now defines 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.worker already had exec (10001:10001, /home/exec, /bin/bash), so the worker is unchanged; the add-on commit restores that and the changelog says so.
  • Report file permissions observed by startup isolation probes #700, isolation probe diagnostics by @jamesKhor: the self-test opens each protected target under the probe identity with O_RDONLY|O_NONBLOCK|O_NOCTTY, reports the opened descriptor mode, uid and gid, and fails on unexpected errors such as symlink loops.

Changelog

  • Corrects the sandbox entry: stdio MCP servers are not started on the panel in required mode, not run in the worker.
  • Adds the stdio MCP guard.
  • Adds a grouped "Other changes since 0.6.0" section with the notable security, interception, workspace, traffic, data and install changes from the v0.6.0 window.

Tests

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.

Jędrzej Sieracki and others added 5 commits November 30, 2026 21:13
…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.
@BaaRai
BaaRai merged commit 86a5eb9 into main Nov 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants