Home icon

Secure multi-tenant RAG with Amazon Bedrock and Verified Permissions

Architecture Blog



This article demonstrates a defense-in-depth authorization pattern for secure multi-tenant RAG applications using Amazon Bedrock Knowledge Bases and Amazon Verified Permissions to enforce document-level access control across departments within a single tenant.

  • Use a single Amazon Bedrock Knowledge Base with metadata filtering to isolate documents by department, reducing infrastructure costs versus per-department instances.
  • Implement two independent authorization layers: Layer 1 (API-level via Lambda Authorizer) and Layer 2 (document-level via middleware Lambda) both evaluating Cedar policies.
  • Externalize authorization logic into Cedar policies managed by Amazon Verified Permissions, enabling runtime policy updates without code redeployment.
  • Tag documents with department metadata during ingestion using an event-driven pipeline with S3 sidecars and scheduled Amazon Bedrock ingestion jobs.
  • Apply metadata filters at retrieval time to exclude unauthorized documents before the foundation model processes them.
  • Add Guardrails for Amazon Bedrock as an output safety layer to validate response grounding and content filtering.
  • Deny by default: both authorization layers fail closed if Verified Permissions is unavailable, preventing unauthorized access.

This pattern enables organizations to serve multiple departments from a single RAG application with granular, auditable access control while maintaining logical document isolation and cost efficiency within a single tenant boundary.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Dec 16
2024
Multi-tenant RAG with Amazon Bedrock Knowledge Bases
Jul 23
2025
Multi-tenant RAG implementation with Amazon Bedrock and Amazon OpenSearch Service for SaaS using JWT
May 21
2026
Building multi-tenant agents with Amazon Bedrock AgentCore
Apr 7
2025
Multi-tenancy in RAG applications in a single Amazon Bedrock knowledge base with metadata filtering

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.