How can you prove to an auditor that your service accounts accessing BigQuery are following NIST guidelines?
Most organizations treat non‑human identities like any other credential: they store a long‑lived service‑account key in a repository, a CI pipeline pulls the key, and the job connects directly to BigQuery. The connection bypasses any central enforcement point, and the only trace left is the occasional Cloud‑audit log entry that shows a project‑level API call. Teams lack per‑query visibility, lack a record of which automated process issued the request, and lack a way to mask or redact sensitive result fields before they land in downstream storage.
This reality violates several NIST SP 800‑53 controls. AC‑2 requires account management and periodic review; AU‑6 demands audit review, analysis, and reporting; and SC‑7 calls for boundary protection and monitoring. When a machine identity queries data without a gatekeeper, the organization cannot demonstrate that it enforces least‑privilege, that it reviews each access, or that it protects data in transit and at rest from accidental exposure.
Moving to a token‑based model for non‑human identities is a step forward. By federating service accounts to an OIDC provider, each automated workload receives a short‑lived token that encodes its group membership and intended purpose. You can scope the token to a specific BigQuery dataset, and the token expires after a few minutes. However, the request still travels straight from the workload to BigQuery. The data path remains open, meaning teams still lack a place to enforce query‑level policies, lack a central log of every statement, and lack inline masking of personally identifiable information. Consequently, the organization cannot provide an auditor with concrete evidence that it reviews, approves, and records each machine‑initiated query.
hoop.dev sits in the data path as an identity‑aware proxy for BigQuery. It receives the OIDC token, validates the identity, and then forwards the request to BigQuery on behalf of the workload. Because the gateway is the only point where traffic to the database passes, hoop.dev can apply just‑in‑time approvals, block disallowed statements, mask sensitive result columns, and record the full session for replay.
Why nist compliance matters for machine identities
NIST standards explicitly require auditability and least‑privilege enforcement for all identities, human or not. Control AC‑2 requires organizations to uniquely identify each account and review its permissions regularly. Control AU‑6 expects organizations to log, retain, and analyze every security‑relevant event. Control SC‑7 mandates that the organization monitor and control communications at the boundary of its information system. When non‑human identities bypass a boundary, none of these controls can be satisfied.
Setup: defining who can start a request
You register service accounts with an OIDC provider, and you grant each account a minimal set of scopes that map to a specific BigQuery dataset. The identity provider supplies a signed token that hoop.dev can verify. This step decides who may initiate a connection, but it does not enforce what the connection can do once it reaches BigQuery.
