bedrock_agentcore_search succeeds even with default-deny in effect

Đang mở
#2,539 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
55/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ệ
typescript
Lĩnh vực
security

Hướng nghiên cứu

First confirm the intended behavior with a maintainer, since the issue itself leaves open whether to document the exemption or put the built-in search under the policy engine. Start by locating where x_amz_bedrock_agentcore_search is dispatched and where the policy engine's ENFORCE/default-deny path raises "Tool call not allowed due to policy enforcement"; check whether the search tool is registered as a gateway tool at all. Done means either the tool catalogue is gated by the same default-deny rule with a passing test, or the docs state explicitly that search metadata is exempt. Read the existing policy-enforcement tests to see how denials are asserted.

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

Mô tả

With a policy engine attached in ENFORCE mode and default-deny in effect, x_amz_bedrock_agentcore_search succeeds even though no policy permits it, and returns the full input schemas of every tool on the gateway. Verified in the same session: a target tool absent from every permit is correctly denied with "Tool call not allowed due to policy enforcement [No policy applies to the request (denied by default).]", while the built-in search tool returns results. This may be intended - it is metadata rather than data, and the caller still needs bedrock-agentcore:InvokeGateway - but "default-deny" reads as covering everything on the gateway and it does not cover the tool catalogue. Either document that explicitly or make the built-in policy-governed like any other tool.

version: AgentCoreCLI/0.24.2 (darwin 25.5.0; node/v22.18.0)

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.