Secure AI agents with Policy in Amazon Bedrock AgentCore
AWS•How-to••by Bharathi Srinivasan, Anil Nadiminti and Pushpinder Dua•AWS Artificial Intelligence Blog
In this post, you will understand how Policy in Amazon Bedrock AgentCore creates a deterministic enforcement layer that operates independently of the agent’s own reasoning. You will learn how to turn natural language descriptions of your business rules into Cedar policies, then use those policies to enforce fine-grained, identity-aware controls so that agents only access the tools and data that their users are authorized to use. You will also see how to apply Policy through AgentCore Gateway…
AgentCore Policy enforces Cedar rules at the gateway on every agent-to-tool call, so an agent cannot reach tools or data its user is not authorized for, regardless of its reasoning.
Who it is for
Architects in regulated industries such as healthcare who run agents on AgentCore Gateway and need auditable access controls on tools.
Key points
Policies can be written in Cedar directly, built with a form, or generated from plain English and checked against the gateway schema.
Rollout can start in LOG_ONLY mode before switching the policy engine to enforce mode.
The default is deny: a request with no matching permit is blocked, and forbid rules override permit.
AI:Shows how to govern AI agent access to user-owned apps by pairing Okta Cross App Access with AgentCore Identity, so Okta decides which agent may act for which user and AgentCore carries out that decision.
AI:AgentCore Gateway gets temporal policies that allow or deny agent tool calls based on the session's prior tool-call history, enforced outside the agent's code.