Bedrock AgentCore Gateways should require authorization for inbound requests
Checks that an Amazon Bedrock AgentCore gateway authorizes inbound requests with AWS_IAM or CUSTOM_JWT. Without it, anyone who can reach the endpoint can invoke the gateway's tools. AUTHENTICATE_ONLY fails here too: it verifies the caller's signature but authorizes nothing.
- service
- BedrockAgentCore
- severity
- High
- scope
- evaluated in every region
How to fix it
- Can break clients: Callers are checked as soon as the update lands, so a client without SigV4 credentials (AWS_IAM) or without a token the JWT authorizer accepts is refused.
In the console
Bedrock AgentCore → Gateways → the gateway → Inbound authorization
- Inbound Auth configurations
- AWS_IAM, which needs SigV4 and bedrock-agentcore:InvokeGateway, or Use existing identity provider configurations
- Discovery URL
- For JWT, your identity provider's OpenID Connect discovery URL
- Allowed audiences
- For JWT, the aud values the gateway accepts, or set Allowed clients instead
- Allowed clients
- For JWT, the client IDs the gateway accepts
With the AWS CLI
- Overwrites existing settings: The CLI call replaces the gateway's configuration rather than merging it, so read it with get-gateway first and resupply its description, protocol configuration and interceptors.
aws bedrock-agentcore-control update-gateway --gateway-identifier <gateway-id> --name <gateway-name> --role-arn <gateway-role-arn> --protocol-type MCP --authorizer-type AWS_IAM --kms-key-arn <kms-key-arn> --region <region>With Terraform
resource "aws_bedrockagentcore_gateway" "this" {
name = var.gateway_name
role_arn = var.gateway_role_arn
authorizer_type = "AWS_IAM"
}
See which of your accounts this check is failing on.
Book a live scan