Traffic capture evidence missing in SANDBOX=required (recording proxy on panel loopback, unreachable from workers)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
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
- 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. - 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 danglingCURL_CA_BUNDLEin 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from BaaRai/ARTEX
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
BaaRai/ARTEX#981 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BaaRai/ARTEX#980 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
BaaRai/ARTEX#812 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
question
Difficulty 4/5 1-2 days Newbie friendliness 35/100
BaaRai/ARTEX#983 · 4 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
bug P2
Difficulty 3/5 1-2 days Newbie friendliness 20/100
BaaRai/ARTEX#977 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
agent:ready
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
turbot/flowpipe#1162 · 1 comment ·
Maintainers usually reply within 1 day
-
LifetimeRemaining divides by zero when expireAfter is 0s, producing NaN disruption costsPossibly taken @weirong-ui claimed this today. Openkind/bug needs-priority needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kubernetes-sigs/karpenter#3728 · 1 comment ·
Maintainers usually reply within 1 day
-
compaction: redundant exclusion checks after inRangePossibly taken @moodbased claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day