How can you prove that an AI coding agent respects GDPR when it runs queries against BigQuery?
Many organizations hand a service‑account key to an autonomous code‑generation model and let it connect directly to the data warehouse. The agent receives the credential, opens a persistent connection, and issues SELECT statements without any human oversight. Because the key never expires and is stored in the agent’s runtime, a compromised model can exfiltrate personal data for weeks before anyone notices. There is often no log of which rows were read, no record of who (or what) initiated the request, and no way to redact sensitive fields before they leave the warehouse. In short, the current workflow gives the AI full, standing access to personal data and provides auditors with nothing to examine.
GDPR requires that data controllers demonstrate accountability, limit processing to the minimum necessary, and retain evidence of who accessed personal data and why. The missing piece in the scenario above is a control point that can enforce purpose limitation, record every query, and mask identifiers in real time. Even if you introduce a policy that says “AI agents may only read anonymized columns,” the request still travels straight to BigQuery, bypasses any gate, and produces no audit trail. The policy alone does not stop the agent from reading raw data, nor does it give you the logs needed for a data‑protection impact assessment.
Where the control gap appears
The gap exists between identity verification and the actual data plane. Identity providers can assert that a token belongs to an AI service account, and IAM roles can restrict the agent to a specific dataset. Those controls decide who may start a session, but they do not observe or modify the SQL that crosses the wire. Without a data‑path enforcement layer, GDPR‑relevant safeguards such as query‑level audit, inline masking of personal identifiers, and just‑in‑time approval for sensitive tables cannot be guaranteed.
Introducing a data‑path gateway
hoop.dev sits exactly at that missing junction. It is a Layer 7 gateway that proxies the connection between the AI coding agent and BigQuery. The agent authenticates to hoop.dev using OIDC, and hoop.dev validates the token against the organization’s identity provider. After authentication, the request is forwarded to BigQuery through a network‑resident agent that holds the database credentials. Because hoop.dev is the only component that can read or write the SQL payload, it can enforce GDPR controls in real time.
How hoop.dev creates audit evidence for GDPR
When an AI coding agent submits a query, hoop.dev performs three enforcement actions that together satisfy GDPR’s accountability requirement:
