Amazon Bedrock AgentCore Runtime now offers guidance for securely exposing agents to web or mobile clients, with AWS recommending a dedicated access layer that authenticates and authorizes each request before traffic reaches the isolated runtime (AWS Security Blog).
Each agent session launches in its own microVM, providing a sandboxed CPU, memory, and filesystem that prevents cross‑tenant data leakage and preserves context while the agent reasons internally.
To keep user identity tied to downstream data access, the blog stresses propagating the caller’s credentials rather than using a static credential that would grant all components broad permissions, a practice that violates the principle of least privilege.
One recommended architecture uses an OpenID Connect federation—such as Amazon Cognito or Okta—to issue short‑lived tokens that the ingress gateway validates, then forwards a scoped token to the runtime for each hop (OpenID Foundation - Helping people assert their identity wherever they choose).
The second architecture adds a deterministic, Cedar‑based AgentCore Policy layer between the gateway and the tools, allowing fine‑grained allow/deny decisions at the tool level, something IAM cannot achieve alone (GitHub).
For example, a sample onboarding repository shows a markdown_to_email tool that should be usable only by managers; the policy can block developers from invoking that tool even though they can call the gateway API.
AWS notes that long‑running, unattended agent tasks can outlive the original OAuth token, so the access layer must either refresh tokens securely or avoid storing long‑lived credentials inside the runtime, preserving the zero‑trust model.
Developers are advised to choose the architecture that matches their risk profile: a simple OIDC‑only flow for straightforward use cases, or the combined OIDC plus AgentCore Policy approach when tool‑level permissions are required.
The guidance does not disclose any specific performance metrics or known vulnerabilities, and AWS leaves the implementation details of token refresh mechanisms to the customer’s security team.
The two architectures reflect AWS's shift toward zero‑trust per‑request validation for AI agents. By separating authentication (OIDC) from tool‑level authorization (Cedar policies), organizations can enforce least‑privilege across each execution hop, reducing the attack surface that static credentials historically expose. This layered approach should mitigate recent incidents where agents escaped sandbox constraints by leveraging overly broad credentials.
Spotted an error? See our corrections policy or email editorial@lordofclaude.com.





Discussion & Comments (0)
Join the conversation