Sandboxed task containers: allowlisted egress for remote MCP servers and package registries #1967

Open
opened 2026-11-13 13:15:18 +00:00 by sam · 0 comments
Owner

Problem

Since #1867 a task container's only peer is the egress relay, which forwards NATS, the State Store and the model proxy. Two things inside the container still dial out directly and now fail:

  • Remote MCP servers (streamable HTTP and SSE) configured for a task, dialled from the container (internal/infrastructure/taskmcp/mcp_providers.go).
  • Gate and command steps that download dependencies (go test, npm install and similar).

Wanted

Send this traffic through the egress proxy on the relay's proxy port (egress.ProxyEnv already describes the environment), with a per-task allowlist: the task's configured remote MCP server hosts, plus package registries the operator allows through the control plane.

Done when

  • A task with a remote MCP server can call it from a sandboxed container.
  • A gate step can fetch modules from an allowed registry, and a host not on the list is refused.
## Problem Since #1867 a task container's only peer is the egress relay, which forwards NATS, the State Store and the model proxy. Two things inside the container still dial out directly and now fail: - Remote MCP servers (streamable HTTP and SSE) configured for a task, dialled from the container (internal/infrastructure/taskmcp/mcp_providers.go). - Gate and command steps that download dependencies (go test, npm install and similar). ## Wanted Send this traffic through the egress proxy on the relay's proxy port (egress.ProxyEnv already describes the environment), with a per-task allowlist: the task's configured remote MCP server hosts, plus package registries the operator allows through the control plane. ## Done when - A task with a remote MCP server can call it from a sandboxed container. - A gate step can fetch modules from an allowed registry, and a host not on the list is refused.
sam added the featurehigh labels 2026-11-13 13:15:26 +00:00
sam added the deferred label 2026-11-15 17:26:09 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1967