box: Write the Bedrock policy of each Box gateway for its own runtime's model

Đang mở
#2,920 0 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
62/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
aws, typescript
Lĩnh vực
authorization, cloud

Hướng nghiên cứu

Start with agentcore/box-bedrock-policy.json and find where the Box gateways attach it through additionalPolicies. Copy the per-runtime pattern already used by box-telemetry-policy-<runtime>.json, then generate one box-bedrock-policy-<runtime>.json per boxed runtime and attach each only to that runtime's gateway. Done when each gateway's policy lists only its own runtime's modelId, and a runtime with no scopable modelId widens only its own gateway.

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

Mô tả

Follow-up from #2911.

agentcore/box-bedrock-policy.json is one file that every Box gateway of a project attaches (additionalPolicies). With #2911 it allows only the models in the boxed runtimes' modelId, but it holds the models of all boxed runtimes, so each Box gateway can call the model of every other boxed runtime in the project. And one runtime without a scopable modelId puts every gateway back on the every-model policy.

Proposal: write one file per runtime, agentcore/box-bedrock-policy-<runtime>.json, as the telemetry policy already does (box-telemetry-policy-<runtime>.json), and attach each to its own runtime's Box gateway only. A runtime without a scopable modelId then widens only its own gateway.

Ngôn ngữ chính
TypeScript
Star
339
Fork
129
Merge trung bình
19 giờ 21 phút
Pull request đã merge (30 ngày)
125

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 aws/agentcore-cli

Tất cả issue của aws/agentcore-cli

Issue tương tự

Thêm issue về TypeScript

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.