Traffic capture evidence missing in SANDBOX=required (recording proxy on panel loopback, unreachable from workers)

Open
#919 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, go
Domain
devtools, security

Research direction

Start with cmd/artex/main.go and sandbox.FilterPanelEnv, the two locations named in the issue, and trace how sandbox mode configures the recording proxy and worker environment. The issue leaves the intended direction open: document the limitation, make the proxy reachable with its CA available to workers, or remove the dangling CA setting. Confirm the chosen behavior in the docs or sandbox environment and describe the resulting capture support clearly.

Written by the indexing model from the issue text.

Description

Summary

Bound HTTP traffic capture (the recording proxy evidence) does not reach the agent when SANDBOX=required. Findings in sandbox mode fall back to command-output evidence only. This looks like a deliberate MVP scope boundary rather than an outright bug, but it isn't documented and is easy to misread as "capture is broken / misconfigured" (we spent a while there). Filing so it's explicit, plus one concrete dangling-config observation.

Why it happens

The recording MITM proxy binds the panel loopback:

cmd/artex/main.go
proxy = flag.String("proxy", "127.0.0.1:8788", "traffic recording proxy address (empty to disable)")

In SANDBOX=required, worker commands run in isolated per-task containers. 127.0.0.1:8788 inside a worker is the worker's own loopback, not the panel's, so worker-side curl/python/etc. traffic never transits the recording proxy. Panel-side fetches (e.g. the agent's WebFetch) go through it and are recorded; worker-side tool traffic is not. Net effect: in sandbox mode, HTTP evidence bound to a finding is thin/absent, and only command output backs the finding.

With SANDBOX=off the worker shares the panel's network namespace and capture works as expected.

Concrete side observation (possible small bug)

sandbox.FilterPanelEnv strips the proxy vars (HTTP_PROXY/HTTPS_PROXY/ALL_PROXY/NO_PROXY) from the env handed to workers, but the CA-bundle env (CURL_CA_BUNDLE, set to the panel-side mitmproxy CA path) is left pointing at a path that doesn't exist / isn't readable inside the worker. It's harmless once the proxy itself is unreachable, but it's a dangling value that can confuse debugging (tools complain about a missing CA bundle rather than about the proxy).

Ask

  1. Is capture-in-sandbox intended to be out of scope for now? If so, a line in the docs / a startup log when SANDBOX=required + recording proxy is enabled would save others the detour.
  2. Would you be open to either (a) making the recording proxy reachable from workers (e.g. bind on the worker-net gateway and inject HTTP(S)_PROXY + the CA into the worker), or (b) dropping the dangling CURL_CA_BUNDLE in the sandbox env path? Happy to send a PR for whichever direction you prefer.

Observed on a current main checkout; proxy flag and FilterPanelEnv behaviour above are from current main.

Dominant language
Go
Stars
18.7k
Forks
7k
Avg merge
10h 57m
Merged PRs (30d)
494

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BaaRai/ARTEX

All issues in BaaRai/ARTEX

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.