AI Cloud Architect

Multi-tenant LLM analytics with row-level security: How we built a secure agent on AWS

AWSHow-to by Anuranjan Mondal, Mohan Kunamneni, Praneeth Alluri and Zubeen SahajwaniAWS Artificial Intelligence Blog

In this post, we show you how PAR built a production-ready multi-tenant LLM analytics system that enforces row-level security through a three-layer architecture: cryptographic request signing with AWS SigV4, semantic validation on Amazon Bedrock, and programmatic data isolation via Split-Plane SQL. We demonstrate how each layer operates independently to reduce the risk of cross-tenant data exposure, even when the LLM itself is compromised or manipulated.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

PAR describes a three-layer design (SigV4-signed requests, semantic validation on Bedrock, and pre-filtered SQL CTEs) that limits a text-to-SQL agent's data access to each user's authorized rows.

Who it is for

Teams building multi-tenant LLM analytics or text-to-SQL agents on AWS that must enforce row-level security regardless of model behavior.

Key points

  • Data scoping is done in code before the model is called, so the model only sees a pre-filtered schema.
  • PAR reports over 50,000 queries processed with zero cross-tenant exposure incidents (vendor claim, not independently verified).
  • Model used is Claude Sonnet 4 on Amazon Bedrock; warehouse is Databricks.