Fine-grained access control for Amazon Bedrock managed Knowledge Base tools
AWS shows how to scope agent searches over Amazon Bedrock managed Knowledge Bases to the data the actual user may see. The core example is a shared internal assistant across departments or SaaS tenants, where an agent writing its own queries could otherwise…
Why it matters
Cross-user data leakage in agentic RAG is a real risk, and this guide shows an implementation pattern.
What happened
1 min readAWS shows how to scope agent searches over Amazon Bedrock managed Knowledge Bases to the data the actual user may see. The core example is a shared internal assistant across departments or SaaS tenants, where an agent writing its own queries could otherwise surface another group's documents.
Our analysis
The problem is important: when the agent writes its own queries, access control has to be enforced in the tool layer based on user identity, not in the prompt. The solution is AWS-specific, but the principle (identity-based metadata filtering at retrieval time) transfers. Worth reading for multi-tenant SaaS teams.