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

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cybersecurity & Data Privacy, Cloud Computing & IT Infrastructure · Depth: Advanced, long

Summary

PAR Technology Corporation developed a production-ready multi-tenant LLM analytics system for the restaurant industry, supporting over 300 businesses. This system enables business users to ask natural language questions and receive data-backed answers, addressing the complex challenge of row-level security at scale. Their solution, built on AWS, employs a three-layer architecture: cryptographic request signing with AWS SigV4, semantic validation on Amazon Bedrock, and programmatic data isolation via Split-Plane SQL. This design ensures deterministic data boundaries, preventing cross-tenant data exposure even if the LLM (using Anthropic's Claude Sonnet 4, model ID "anthropic.claude-sonnet-4-20250514-v1:0") is compromised. The architecture has successfully processed over 50,000 queries without incidents, demonstrating robust security for sensitive business data.

Key takeaway

For AI Architects or MLOps Engineers building multi-tenant LLM applications, you must design security controls into the infrastructure, not just rely on model instructions. Implement deterministic, layered security like cryptographic request signing, semantic input validation, and programmatic data isolation using pre-filtered CTEs. This approach ensures robust row-level security, preventing data exposure even if the LLM is manipulated, and is critical for compliance and trust in enterprise environments.

Key insights

Multi-tenant LLM analytics requires deterministic, architectural security layers to enforce row-level data isolation, not relying on LLM behavior.

Principles

Method

Implement a three-layer security architecture: AWS SigV4 for integrity-protected requests, Amazon Bedrock for semantic input validation, and Split-Plane SQL for programmatic data isolation via pre-filtered CTEs.

In practice

Topics

Best for: AI Security Engineer, AI Architect, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.