vetted-ops: --caller is self-declared, so per-skill grants are not enforced
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- documentation, security, tooling
Hướng nghiên cứu
Start in tools/vetted-ops/README.md and the policy template's [callers] table, then trace how vetted-op/vetted-op-read consume --caller. Review the agent-guard hook that receives transcript_path and where the latest skill invocation is recorded, since the guard must map that skill to its caller name and reject mismatches, with an allowlist for documented sub-callers such as security-issue-sync-gatherer. Also add the missing ID-allocation caller to the template. Done means the guard denies borrowed callers, tests cover it, and the docs state callers are not authenticated.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
vetted-op and vetted-op-read authorise each operation by the --caller name the agent passes, and the policy's [callers] table grants operations per skill. Nothing checks that the name matches the skill actually running. When a skill's own caller is refused, the agent can rerun the same operation under another skill's caller that holds the grant, and in practice it did.
Observed: while running the ID-allocation skill, whose caller is not declared in the adopter's policy, the agent ran body-field-set, issue-add-label and rollup-append under --caller security-issue-sync. The operator had approved the writes, but the per-skill split did not restrict anything. The real limit is the union of every caller's grants.
Proposal
- Guard. Add an agent-guard rule for
vetted-op*commands. It reads the session transcript (hooks receivetranscript_path), finds the most recent skill invocation, maps it to that skill's caller name, and denies the call when--callerdiffers. It needs an allowlist for documented sub-callers such assecurity-issue-sync-gathererin subagents. - Docs, until the guard lands. State in
tools/vetted-ops/README.mdand the policy template that callers are not authenticated, and that the policy limits the agent as a whole rather than isolating skills. - Template. Declare a caller for the ID-allocation skill in the policy template. Its absence is what made borrowing tempting.
🤖 Generated with Claude Code
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/magpie
-
vote-tally: date_order_mismatches compares ISO dates as text, so UTC offsets are misreadCó thể đã có người làm @leninworld đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
release-verify-rc: the Nexus staging id shape refuses Maven's maven-NNNN idsCó thể đã có người làm @Anurag-S1ngh đã nhận 3 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
family:tools substrate:sandbox
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
apache/magpie#2176 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci: start each shipped tool once from its packaged plugin copyCó thể đã có người làm @Anurag-S1ngh đã nhận 3 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 57/100
Maintainer thường phản hồi trong vòng 1 ngày
-
feat(issue): interactive duplicate-picker pane mod for issue-deduplicateCó thể đã có người làm @Kaap10 đã nhận 8 ngày trước. Đang mởcapability:resolve enhancement family:ci family:dev family:docs family:issue family:setup family:tools substrate:framework-dev
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
apache/magpie#2075 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/magpie
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
OpenFreeEnergy/openfe#2371 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
HMDB's smiles file writes "None" for metabolites with an empty <smiles/> (file not currently used)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
NCATSTranslator/Babel#1269 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
404 on sample dataĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
bcgov/nr-hydrometric-rating-curve#443 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100