← Back to the blog

Blog

LLM analytics needs hard data boundaries

AWS and PAR Technology describe a production architecture for multi-tenant LLM analytics. The text-to-SQL agent itself is the less interesting part. What counts is a clear security boundary: the model may formulate queries, but tenant isolation must not be its responsibility.

This matters for enterprises because natural-language self-service analytics reaches sensitive data very quickly. “What were sales last week?” can refer to a single store, a brand or the whole group, depending on the user’s role. If the agent is merely prompted to respect that boundary, governance turns probabilistic.

What AWS and PAR show

AWS describes a three-layer setup at PAR: requests are cryptographically signed with AWS SigV4, semantic validation runs on Amazon Bedrock, and data isolation is enforced programmatically through Split-Plane SQL. Each of these layers is supposed to stop a generated query from reading another tenant’s data on its own.

This is the core of it. The LLM does not act as the policy engine. AWS points out explicitly that a model can apply a filter correctly ten thousand times and still omit or misinterpret it on the next run. In multi-tenant systems that process business or customer data, that kind of non-determinism does not qualify as a control boundary.

Why this matters in DACH projects

Among the OWASP Gen AI Top 10 are Prompt Injection, Sensitive Information Disclosure, Improper Output Handling and Excessive Agency. As soon as an agent generates database queries, executes tools or passes results on without robust validation, these risks become very concrete.

So for CIOs and CFOs, the demo is beside the point. The question that matters is the architecture: where is binding data authorization actually enforced? In the database, in a gateway, in a policy layer or only in the prompt? Amazon Redshift documents row-level security as a database mechanism that makes rows visible according to policies. For AI analytics, hard boundaries of this kind are more reliable than instructions given to a model.

What to do now

A broad data catalog is the wrong starting point for natural-language analytics. Begin with a bounded dataset, define roles, tenant IDs, allowed metrics and test cases for boundary violations. Only after that should an LLM be allowed to generate SQL.

A useful guiding question: “Can the agent generate a wrong query without seeing wrong data?” If the answer is no, the security architecture is not done yet.

← Back to the blog