vetted-ops: commands outside the sandbox reuse a uv cache the sandbox can write

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

Maintainer thường phản hồi trong vòng 1 ngày

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
15/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
security, tooling

Hướng nghiên cứu

Read the known-residual note in #2133 and the SessionStart hook that provisions vetted-ops, then trace how vetted-op invokes uv and where the sandbox can reach ~/.cache/uv. The work is to choose between a hash-pinned offline environment and a separate UV_CACHE_DIR, then settle per-harness placement and an upgrade path with no window where neither environment is usable; done means the design is agreed and the outside-sandbox commands no longer reuse a sandbox-writable cache.

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

Mô tả

family:tools substrate:sandbox

Follow-up to the "Known residual" in #2133.

vetted-op and the tools it starts (the tracker backends, and since #2133 the Vulnogram client) run through uv, which resolves and reuses environments from ~/.cache/uv.
The agent sandbox can write to ~/.cache/uv, while these commands run outside the sandbox.
So the content of an environment that runs outside the sandbox can be influenced from inside it, which is the boundary vetted-ops otherwise holds: a fixed argv, the shipped client only, an allowlisted environment.

This is framework-wide, not specific to any one operation, so it needs its own design rather than a per-tool patch.
Options raised so far:

  • a hash-pinned environment installed by the SessionStart hook into a directory the sandbox cannot write, and run with --offline --no-sync;
  • a separate UV_CACHE_DIR for the commands that run outside the sandbox, placed where the sandbox denies writes.

Open questions: where such a directory lives on each supported harness, and how an upgrade replaces it without a window where neither the old nor the new environment is usable.

Ngôn ngữ chính
Python
Star
152
Fork
133
Merge trung bình
12 giờ 39 phút
Pull request đã merge (30 ngày)
384

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 apache/magpie

Tất cả issue của apache/magpie

Issue tương tự

Thêm issue về Python

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.