bedrock_agentcore_search succeeds even with default-deny in effect

Abierto
#2,539 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
security

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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)

Lenguaje dominante
TypeScript
Estrellas
339
Forks
129
Merge medio
19 h 21 min
PR fusionados (30 d)
125

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de aws/agentcore-cli

Todos los issues de aws/agentcore-cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.