Build1 distinct publisher3 min readUpdated
A new Bedrock AgentCore pattern from AWS treats the agent as an orchestrator with no say over access, pushing per-user enforcement down to DynamoDB, Knowledge Bases and Salesforce.
The Engineer · Build desk

Compiled by The EngineerSomething wrong?How this is made
Amazon Web Services has published a reference pattern for propagating user authorization context through AI agents built on Amazon Bedrock AgentCore, with the stated goal that access control is enforced by infrastructure and downstream services rather than by agent code [1]. The premise is unglamorous and correct: an agent that has no awareness of who is asking can return data the user should not see [2].
The worked example is a CRM chat application where Sales and Finance employees use the same interface and the same agent but need isolated data [3]. Sales gets contracts, pricing strategies and pipeline data; Finance gets invoices, payment records and financial reports [4]. The agent reaches three places: customer records in DynamoDB partitioned by department, department-specific documents in Bedrock Knowledge Bases backed by S3, and external CRM data in Salesforce [5]. AWS is explicit about the threat model. Enforcement has to sit outside the agent so that a prompt injection or an application bug cannot reach unauthorized data [6].
The mechanics are where the claim gets tested. A user authenticates against an Amazon Cognito user pool acting as the identity provider [7], and a pre token generation Lambda trigger (V2) enriches the JWT with a custom claim and AWS session tag metadata [8]. AgentCore Runtime validates the inbound JWT and, via AgentCore Identity, issues a workload access token binding user and agent identity before invoking the agent [9]. From there each data source is handled differently: Knowledge Bases are queried using the agent's own IAM role with metadata filtering, DynamoDB with user-scoped session-tagged credentials [10], and Salesforce through an on-behalf-of token exchange (RFC 8693) using credentials pulled from AWS Secrets Manager, after which Salesforce applies its own sharing rules [11][12]. Three sources, three distinct enforcement mechanisms [13].
That asymmetry matters. The DynamoDB and Salesforce paths carry a user-bound credential, so a compromised agent is constrained by the token it holds. The Knowledge Bases path uses the agent's role plus a metadata filter, which means the boundary is a query parameter rather than a credential [14]. It is still outside the agent's reasoning loop, but it is a weaker form of the same idea, and worth understanding before you copy the diagram.
Two principles carry the design: the agent orchestrates tool calls but does not control access to data, and the agent stores no credentials to data stores, receiving temporary user-bound tokens per request instead [15][16]. AWS maps the approach to AGENTSEC03 in its Well-Architected Agentic AI Lens [17]. The department scoping is illustrative; AWS says the pattern generalizes to any custom claim, including role, business unit, region or project [18]. Cognito is the example IdP, with Entra ID and Okta named as alternatives [19].
Worth watching: whether the pre token generation trigger becomes the de facto policy surface for these deployments, since a custom claim minted at login is now the thing every downstream filter trusts [8]. Also watch how far the RFC 8693 exchange travels beyond Salesforce, which has mature sharing rules to fall back on [11][12]. AWS says per-source deep dives follow in the same post [20]; the DynamoDB session tag details are where this pattern will either hold up or get fiddly.
Follow any of these and your For You feed starts watching them — no settings page required.
Ranked by verification strength, evidence, and original report placement.
AWS published a post describing patterns for propagating user authorization context through AI agents built on Amazon Bedrock AgentCore so that access control is enforced by infrastructure and downstream services, not by agent code, without writing authorization logic in the agent itself.
A key risk in agent deployments is that the agent has no awareness of who is asking, so it might return data the user should not see.
The example use case is a CRM chat application in which Sales and Finance employees use the same chat interface and the same agent but each department needs isolated access to its own data.
Sales needs access to customer contracts, pricing strategies and sales pipeline data; Finance needs access to customer invoices, payment records and financial reports.
The agent accesses three types of data sources: customer records in Amazon DynamoDB partitioned by department, department-specific documents in Amazon Bedrock Knowledge Bases stored in Amazon S3, and external CRM data in Salesforce.
AWS states enforcement must happen outside the agent so that even if the agent is compromised through prompt injection or application bugs, it cannot access unauthorized data.
Evidence-backed comparisons of source perspectives and observed adoption signals. Read the methodology
Which Builder, Operator, and Investor concerns the observed source mix emphasized—not a truth score.
Evidence, demonstrated adoption, hype gap, incentives, and confidence are assessed independently, each on its own current evidence. How these are measured.
Detailed first-party architecture, no independent verification
The single source is unusually specific for a vendor blog: named services, an end-to-end seven-step data flow, standards references (RFC 8693, STS session tags via the aws.amazon.com/tags claim), a pre token generation Lambda handler and an explicit Well-Architected best-practice mapping. But everything rests on one first-party post describing the vendor's own demonstration; there is no third-party review, security testing, benchmark or failure-mode analysis, so evidence sits mid-range rather than high.
No adoption signal beyond the vendor demonstration
The cluster contains only AWS's own guidance and demonstration architecture. There are no customer deployments, usage disclosures, download or invocation figures, pricing or licensing changes, and no third-party implementation reports, so real-world uptake of the pattern cannot be measured from the supplied material.
Security guarantee stated more uniformly than the architecture delivers
The post's headline assurance - that enforcement outside the agent means a prompt-injected or buggy agent cannot access unauthorized data - is stated as a single guarantee, but the architecture actually composes three mechanisms of differing strength, and the Knowledge Bases retrieval path is scoped by a query-side metadata filter executed under the agent's own IAM role rather than by a user-bound credential. That is a meaningful gap between the framing and the mechanism, so the story reads modestly overstated; it is not large, because the concrete steps and standards are disclosed rather than hidden.
Vendor guidance requiring the vendor's own stack
The post is published by AWS on its own security blog, and the pattern is realised through AWS-billable or AWS-managed components throughout: Bedrock AgentCore Runtime and Identity, Cognito user pools, Lambda, DynamoDB, Bedrock Knowledge Bases on S3, Secrets Manager, IAM and STS. Alignment is validated against AWS's own Well-Architected Agentic AI Lens. The incentive to present the AWS-native path as the enforcement answer is therefore strong, even though the technical disclosure is candid and non-AWS IdPs are acknowledged.
Facts reliable, significance unproven
Confidence in what was said is high, because the sole source is primary vendor documentation quoted directly and internally consistent. Confidence in the story's broader significance is limited: one publisher, no corroboration, no adoption or performance data, and no independent assessment of whether the composed enforcement mechanisms hold under attack. The net is moderate.
build
Axonius runs one agent per tenant on AgentCore, and tracks model cost the same way1 distinct publisher
build
Basic Auth becomes a gateway problem: AgentCore's Lambda interceptor keeps the password away from the model1 distinct publisher
leadership
CrowdStrike buys SGNL, and standing privilege becomes a line item you have to defend1 distinct publisher
build
Two Actions, One Loose Policy: The Bedrock Wildcards That Widen A Least-Privilege Grant1 distinct publisher
Distinct publishers with included, body-backed reporting in this cluster.
1 article · August 19, 2026