Together sandbox: run the egress Guardian on the controller host (one sandbox per run)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 24/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- javascript, node.js, python
- Domain
- infrastructure, networking, security
Research direction
Start by tracing the Together API sandbox setup, controller relay, and workload bridge (reverse-client); the issue names no file paths or tests. Check how generic_guardian.py and the existing capture journal are started, then map the proposed host proxy, WebSocket egress, and token allowlist onto those entry points. Done means Together runs use one sandbox per run, capture and observed journals retain their stated behavior, and E2B remains unchanged.
Written by the indexing model from the issue text.
Description
Problem
Together API runs allocate two VMs per cell: a Guardian VM (mitmdump + generic_guardian.py + WS bridge server) and the workload VM. The controller relay already sits in the middle of every captured flow, so the Guardian VM adds cost, startup latency and a second resource to dispose.
Proposal
- Run mitmdump +
generic_guardian.pyon the controller host (installed bysetupwith pinned uv / Python / hash-locked mitmproxy). - Workload bridge (
reverse-client) routes all egress over the reverse WebSocket on port 18083; the host relay pipes each flow into the local proxy. - Intercept every host: capture hosts keep the existing journal (substitution, blocking, exchange facts); other hosts are streamed and recorded in a metadata-only observed journal.
- Port 18083 inbound allowlist requires the sandbox token in addition to the per-cell token.
- Bake the workload Node bridge runtime into the snapshot.
- E2B is unchanged.
Future
When Together sandboxes support outbound rules, deny all egress so the only path out is the inbound WebSocket.
- Dominant language
- JavaScript
- Stars
- 75
- Forks
- 9
- Avg merge
- 2h 16m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
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 togethercomputer/hurdle
-
Difficulty 5/5 Over a week Newbie friendliness 32/100
All issues in togethercomputer/hurdle
Similar issues
-
security-advisory
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MinBZK/regelrecht#2173 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
bug repro-ready
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
mksglu/context-mode#1454 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
microlinkhq/metascraper#905 ·
Maintainers usually reply within 1 day