AI Tools Developer Tools

Amazon Bedrock AgentCore Gateway: One Front Door for Governed AI Agents

Amazon Bedrock AgentCore Gateway centralizes agent access, redeems Okta grants and applies Cedar policies, replacing per-server checks across many tools.

Illustration of AI agents passing through a single governed gateway, representing Amazon Bedrock AgentCore access control
AI-generated editorial illustration.

What happens when a company runs hundreds of AI agents that each need to reach thousands of tools, and every one of them acts on behalf of a real employee? Amazon Bedrock AgentCore, an AWS platform for building and running agents, offers a component called Gateway that acts as one controlled entry point between agents and their tools. AWS describes how to use it with Okta’s identity system in the second part of a two-part series.

What does Amazon Bedrock AgentCore Gateway actually do?

Gateway sits between an agent and the tools it calls. Instead of each agent knowing the address of every tool server and calling it directly, agents connect to a single Gateway endpoint, and the Gateway keeps the list of available tools, which AWS calls targets. Those tools are exposed through Model Context Protocol (MCP), a common standard that lets agents discover and call tools in a uniform way.

AWS’s post builds on a Part 1 setup: one agent running on AgentCore’s runtime, two MCP servers, and Okta Cross App Access (XAA) deciding which agent may act for which user. In that setup, an identity capability inside AgentCore redeemed a signed grant from Okta, called an ID-JAG, so the agent could prove it was authorized to act for a specific person.

Why does the Part 1 design stop scaling?

AWS identifies three problems that are harmless with one agent and two tools but become heavy work at enterprise size.

  • Wiring. In Part 1 the agent holds the address of each tool server. With many agents and many servers, that becomes a matrix where every new tool touches every agent that needs it.
  • Credentials. The agent’s role held the permission to exchange tokens and read the provider’s secret. Every agent acting for users therefore had a credential path to every resource it might reach.
  • Rules. Each tool server carried its own copy of the same group check. AWS says copies of one rule across thousands of servers drift apart and cannot be audited or changed in one place.

Part 2 answers each in turn: agents reach one Gateway endpoint, the Gateway redeems the grant so the agent’s role holds no token-exchange or secret permissions, and one default-deny policy set is evaluated at the Gateway before any tool runs.

How does a request travel through the new design?

AWS lays out the path in numbered steps. A user signs in, and a backend service exchanges the user’s identity token for an ID-JAG issued to the task agent. That agent, called agent A, receives the ID-JAG and forwards it to its Gateway as the bearer token of its tool session. The Gateway’s inbound check accepts only ID-JAGs issued to that specific agent, through a setting that pins the allowed client.

Before the Gateway calls any tool, a policy engine inside AgentCore evaluates Cedar policies for each tool listing and each tool call. Cedar is a policy language for writing rules such as which agent may call which tool with which delegated scope. When Cedar permits the call, the Gateway asks AgentCore Identity to redeem the ID-JAG for that target at Okta’s custom authorization server. AWS states that a call Cedar denies never causes the ID-JAG to be redeemed.

The tool server still checks the user’s groups and scope, as in Part 1, and records each decision as a trace entry. Every hop emits OpenTelemetry spans, a standard format for tracing requests, to AgentCore Observability, collected by Amazon CloudWatch. Okta streams its own System Log into CloudWatch through Amazon EventBridge, so one place holds both sides of each decision.

What does the setup look like in practice?

AWS shows the Gateway’s inbound authorizer as a short configuration. Its issuer is Okta’s organization authorization server, its audience is the custom authorization server protecting the tools, and its allowed-clients list names the one agent whose grants it will accept. Each MCP server then becomes a Gateway target whose outbound authorization uses a token-exchange grant through the credential provider created in Part 1, with scopes that must equal the ID-JAG’s scopes.

AWS also adds a second agent, agent B, a reporting agent running on Amazon Elastic Kubernetes Service (Amazon EKS). It has its own Okta identity and its own Gateway, and AWS uses it to show that the front door does not depend on where an agent runs.

How does this compare with other ways to give agents access?

The post contrasts two patterns. XAA lets Okta, as the identity provider, decide centrally which agent may act for which user, with no per-user consent step at each application. AWS also compares XAA with per-user OAuth consent, the familiar approach where each user approves access application by application, for applications that cannot accept Okta’s grant. The excerpt provided does not include that comparison’s details, so how the two differ in effort or coverage is not covered here.

Centralizing tool access behind a gateway is a general pattern, and AWS’s contribution is tying it to Okta-issued grants and Cedar rules so that policy lives in one default-deny set rather than inside each server.

A realistic workflow from sign-in to audit

Consider an employee who asks the task agent to update an item in a task manager. The employee signs in through Okta, and the backend obtains an ID-JAG for agent A. Agent A presents it to the Gateway, which first checks that the grant was issued to agent A. Cedar then decides whether agent A, with the scope Okta delegated, may call that tool at all. If so, the Gateway has AgentCore Identity redeem the grant for the task manager target, and the MCP server checks the user’s groups before acting. Afterward, a reviewer can read the Gateway’s trace, the server’s authorization check span and Okta’s System Log side by side in CloudWatch.

Cost, access and where the sample stops

AWS estimates the additions take about 90 minutes on top of the Part 1 solution. The EKS control plane costs $0.10 per hour, plus nodes and the Amazon EKS Auto Mode management fee, and the AgentCore features charge for what is used. Prerequisites include eksctl, kubectl and Docker, Okta Log Streaming, and IAM permissions for Gateways, policy engines, EKS clusters, CloudWatch log groups and EventBridge rules.

The base is an AWS sample repository for an Okta XAA delegation chain, and AWS says the snippets in the post show the pattern conceptually rather than a complete, deployable solution. In practice, the code is sample code for non-production use, and AWS tells readers to work with security and legal teams to meet their organization’s requirements before deploying. Anyone evaluating the design should read the current AgentCore and Okta documentation, since this is a single-vendor walkthrough and AWS’s post includes no independent testing, scale figures or performance data.

Sources