This is a detailed technical blog post, written for engineers and security teams. For a shorter version aimed at security and engineering leaders, see the short version.
Amazon Bedrock AgentCore reached general availability in October 2025, and the agent harness followed in June 2026. AWS has reported that tasks performed by agents on AgentCore grew fifteenfold in six months, naming Nasdaq, Visa and Experian among customers running them in production (Forbes, June 2026).
In an AgentCore deployment, a key component is the AgentCore Gateway. Every tool the agent reaches — a Lambda, an internal API, a vector store — is reached through the gateway. One component sees every action an agent attempts, before it happens. That makes it the natural place to decide whether the action should happen at all.
Authorization Already Built into AgentCore
AWS ships a substantial amount of authorization into AgentCore already.
The gateway authenticates callers with a JWT authorizer before anything else runs. Policy in Amazon Bedrock AgentCore went to preview in December 2025 and general availability in March 2026: policies are authored in Cedar — or in natural language that compiles to Cedar — attached to a gateway, and evaluated on every tool call. In August 2026 AWS open-sourced Dogwood, which extends Cedar with temporal conditions so a policy can refer to earlier events in a session. This allows policy rules such as: "require an approval before a sale", "cap a running total", or "stop using one tool after another has been used".
For an AWS-only business whose decisions fit permit-or-deny, what AWS ships is probably enough. However, those controls cannot allow you to achieve the following:
- A policy that is not tied to one platform. Cedar and Dogwood are AWS's languages, evaluated by AWS's service. If your agents run only on AgentCore, that is fine. Most estates are less tidy: agents on another cloud, MCP servers on your own infrastructure, an agent framework enforcing client-side — and, more to the point, the applications, APIs and databases that were already under access control before any agent existed. A rule such as "salary data is visible only to HR above level 3" should not be written once for the data warehouse, again in Cedar for the agent, and a third time somewhere else. One policy, evaluated wherever the request happens to arrive, is the difference between governing an estate and maintaining copies of a rule.
- Decisions that return a condition rather than a verdict. Permit and deny answer "may this tool be called". They do not answer "which of the four thousand documents behind this search may this person see". That question needs an answer shaped like a filter rather than a verdict, and for any agent that does retrieval it is where most of the risk sits.
Deployment Components: Yours and Ours
In what follows we will demonstrate how Axiomatics addresses authorization in Amazon Bedrock AgentCore, and it is paramount to make a distinction between deployment components that belong to you and those introduced by Axiomatics.
What you already have:
- The agent. In this demo it runs on AgentCore Runtime and is built with Strands, but the runtime and framework are yours to choose — nothing below depends on either.
- The gateway, exposing your tools to the agent over MCP and authenticating whoever calls it.
- The tool targets behind that gateway: Lambda functions, internal APIs, whatever the agent is meant to be able to do.
- A retrieval target and its vector store, if the agent does retrieval. The documents carry metadata — a department, a sensitivity level — and that metadata is what document-level authorization decides on.
- An identity provider, issuing the tokens the gateway validates, and a directory that knows things about your people.
What we add. Two components. The Axiomatics policy engine, which makes decisions, and an interceptor Lambda, which the gateway calls before forwarding a request and which turns each request into a question the engine can answer. If you do not yet have a gateway, our deployment can create one; if you do, it attaches to what you run.
What changes in the agent. Nothing — no SDK, library, prompt change or redeploy. Enforcement sits in the path the request already takes, which is why an agent someone else built can be governed without touching it.
The Interception Point: The Gateway
AgentCore lets you attach an interceptor to a gateway: a Lambda the gateway invokes before it calls the target. Four properties of the mechanism shape how an enforcement point is built on it:
- Interceptors are Lambda functions. That is the extension point AgentCore offers, so the enforcement point is serverless.
- One REQUEST and one RESPONSE interceptor per gateway. No per-tool routing, so you branch inside the single function — we branch on the kind of thing being reached.
- The request arrives already parsed. Method, tool name and tool arguments come through as structured fields, so there is no JSON-RPC parsing to do.
- Refusal is part of the contract. The interceptor may return a response instead of a request, and the gateway sends it straight back without ever calling the target.
What arrives:
{ "interceptorInputVersion": "1.0",
"mcp": {
"gatewayRequest": {
"headers": { "Authorization": "<bearer>" },
"body": { "jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": { "name": "send_email", "arguments": { "to": "..." } } }
} } }
On a permit, the request goes back unchanged:
{ "interceptorOutputVersion": "1.0",
"mcp": { "transformedGatewayRequest": { "body": { ... } } } }
On a deny, a JSON-RPC error at HTTP 200 — so the agent reads a clean tool error rather than a transport failure, and can tell the user their request was refused:
{ "interceptorOutputVersion": "1.0",
"mcp": { "transformedGatewayResponse": {
"statusCode": 200,
"body": { "jsonrpc": "2.0", "id": 1,
"error": { "code": -32001, "message": "Denied by policy" } } } } }
Identity: From Token to Decision
The gateway validates the caller's token before the interceptor runs, using its JWT authorizer — configured with an issuer's discovery URL and the client IDs you allow. Any OIDC provider works: Entra ID, Okta, Auth0, Cognito, or Keycloak.
Because the gateway has already authenticated the token, the interceptor decodes it without re-verifying and takes one thing from it: who is calling. Everything the policy actually decides on — clearance, department, level — is resolved at decision time by an Axiomatics attribute connector, our policy information point mechanism, which reads from LDAP, SQL, a REST endpoint or a JSON source.
That split is deliberate and load-bearing. The agent tells us who the user is; it never tells us what they are entitled to. A token cannot overclaim a clearance it was not issued. If you change someone's department in the directory, the next tool call is decided against the new one — no need to reissue a token.
Permit and Deny
The first stage is the one people expect. In this demo: get_weather is open to everyone; send_email, delete_file and execute_sql require high clearance. The same tool therefore gives different answers to different people, which is what IAM cannot express — IAM governs which service may call which service, not which employee is behind the request.
RAG: A decision That Returns a Filter
In some cases, returning permit and deny is not enough anymore. Retrieval-augmented generation (RAG) is the clearest example: the agent has a search_docs tool that queries a vector store of company documents and feeds what comes back to the model. Anyone may call that tool — the question is which documents it should return for the person asking. Answering with permit or deny would mean either allowing the search across everything or blocking it entirely, when the correct answer is to narrow the search to the subset this user is allowed to read.
So the interceptor asks two questions on one tool call.
Stage one is an ordinary decision: may this user call search_docs at all? Permit.
Stage two is a reverse query. The interceptor asks the policy engine about a document without saying which document — the document's department and level are left unbound. The engine returns the condition on those attributes under which reading is permitted, as a Boolean Expression Tree. For a finance user at level 3 that condition could be simplified:
(doc.department == "finance" || doc.department == "public") && doc.level <= 3
The interceptor converts this tree into a neutral form and renders it to whichever vector store is behind the retrieval tool, then injects it into the tool call's arguments. The retrieval target runs its normal query with that filter applied.
What each stage produces:
The same exchange as messages, which makes the ordering explicit — one tool call from the agent, two decisions inside one interceptor invocation, both resolved before the retrieval target is ever reached:
This has two consequences worth drawing out:
- A document the user may not read is never retrieved, rather than retrieved and then discarded. The constraint reaches the store, so the filtering happens where the data is.
- And the policy is store-agnostic. Only the rendered dialect differs; switching stores is a configuration change at the interceptor, not a policy rewrite.
That second point is easier to see than to describe. The same condition, for the same finance user at level 3, rendered for Amazon S3 Vectors:
{
"$and": [
{
"$or": [
{ "department": { "$eq": "finance" } },
{ "department": { "$eq": "public" } }
]
},
{
"level": { "$lte": 3 }
}
]
}
and rendered as a Bedrock Knowledge Base RetrievalFilter:
{
"andAll": [
{
"orAll": [
{ "equals": { "key": "department", "value": "finance" } },
{ "equals": { "key": "department", "value": "public" } }
]
},
{
"lessThanOrEquals": { "key": "level", "value": 3 }
}
]
}
Two dialects, one policy, and neither filter written by hand.
The Policy
The policy expressing the above use case can be written compactly in the abbreviated language for authorization (ALFA), our policy language.
namespace agentcore {
/*
Entry point with two distinct policies
*/
policyset Access {
apply firstApplicable
ToolCall
DocumentRead
}
/*
Stage 1 — which tool calls are allowed.
*/
policy ToolCall {
target clause resourcekind == "tool"
apply firstApplicable
rule permitDiscovery { // listing the tools is harmless
target clause mcpmethod == "tools/list"
permit
}
rule denySensitiveToLowClearance {
deny
condition (toolname == "send_email" || toolname == "delete_file"
|| toolname == "execute_sql")
&& not(clearance == "high")
}
rule permitTheRest { permit }
}
/*
Stage 2 — which documents are readable. This policy is never asked a
yes/no question; the reverse query returns its permit CONDITION.
*/
policy DocumentRead {
target clause resourcekind == "document"
apply firstApplicable
rule permitReadable {
permit
condition (docdepartment == userdepartment || docdepartment == "public")
&& doclevel <= userlevel
}
}
}
Around forty lines, and no AWS concept appears anywhere in the policy. There is no gateway, no Lambda, no MCP, no vector store — only users, tools and documents. The policy author does not need to know much about the underlying systems to author policies.
Possible Additions
AgentCore also supports a RESPONSE interceptor, invoked after the target returns, and for MCP targets its payload includes the original request — so the caller's identity is still available. That opens two further enforcement points using the same policy engine:
- Tool visibility. Filtering the tools/list response per user, so a tool someone may not call is never advertised to the model. A hidden tool cannot be argued into being used.
- Post-invocation filtering. Dropping records or masking fields in a tool's result before the model sees them.
Deploying It
The integration is packaged for whichever deployment route suits your account.
AWS Serverless Application Repository for the quickest path to a working interceptor.
Published container images. Axiomatics publishes the policy engine and the interceptor as images; you copy them into your own ECR, which Lambda requires anyway. No local build and no distribution to manage.
Terraform. A module that wires both into your account and either creates an AgentCore gateway or attaches the interceptor to the one you already run.
You bring your policy and your attribute connectors; the images are the engine. The interceptor ships in two behaviourally identical implementations — Python and Java — interchangeable at the Lambda ARN, you choose.
The Same Policy Elsewhere
Because the policy names users, tools and documents rather than AWS services, the same artifact governs other places an agent runs: an agent platform on another cloud, an MCP server on your own on-prem infrastructure, or enforcement client-side inside an agent framework. The enforcement point changes; the policy does not. That is the argument for keeping the decision outside the platform even when the platform offers its own.
Closing
AgentCore gives you a gateway that every tool call passes through, an authenticated caller, and a native way to refuse an action before it reaches its target. What it leaves you to decide is what should be allowed — for which person, over which data, in an estate that probably is not only AWS.
The integration described here is available for deployment into your own AWS account. If you are defining authorization requirements for agents on AgentCore — or reconciling them with the policies already governing your applications and data — we are happy to review the architecture with your team.



