bedrock_agentcore_search succeeds even with default-deny in effect

オープン
#2,539 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
security

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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)

主要言語
TypeScript
スター
339
フォーク
129
平均マージ
19時間 21分
マージ済み PR(30日)
125

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/agentcore-cli のほかの issue

aws/agentcore-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。