← Blog

Data agents must carry the user’s identity into the lakehouse

AWS shows how Trusted Identity Propagation lets Bedrock agents query Lake Formation data under the end user’s grants — so CloudTrail records the person, not a shared service role.

Data EngineeringAI SecurityLakehouse

Most “data agents” still query the lakehouse as a privileged service account. That design quietly bypasses the access model security teams already built.

AWS published a reference pattern for identity-aware AI data agents: propagate each user’s identity through Amazon Bedrock AgentCore via Trusted Identity Propagation, then perform a server-side token exchange so Lake Formation evaluates the real user’s grants. Application code makes no authorization decisions; existing Lake Formation policies apply without rewrite; and CloudTrail records the actual person who accessed the data. The agent becomes an OAuth client on the path — not a substitute identity that collapses every query into one over-privileged role.

What data and security leaders should require of any NL-to-SQL or lakehouse agent:

  • Propagate end-user identity to the catalog and query engine on every hop
  • Keep authorization in the lakehouse control plane — not duplicated in agent prompts
  • Demand audit evidence that names the human behind each agent query

If the agent can see more than the user is allowed to see, you do not have a governed data assistant. You have an accidental privilege-escalation product.