Together sandbox: run the egress Guardian on the controller host (one sandbox per run)

Đang mở
#1 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
24/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.py on the controller host (installed by setup with 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.

Ngôn ngữ chính
JavaScript
Star
75
Fork
9
Merge trung bình
2 giờ 16 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của togethercomputer/hurdle

Tất cả issue của togethercomputer/hurdle

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.