bedrock_agentcore_search succeeds even with default-deny in effect

Ouverte
#2,539 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
55/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
typescript
Domaine
security

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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)

Langage dominant
TypeScript
Étoiles
339
Forks
129
Merge moyen
19 h 21 min
PR mergées (30 j)
125

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de aws/agentcore-cli

Toutes les issues de aws/agentcore-cli

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.