How to Configure Windsurf Bigquery Read Only Access

Published
Length
3 min read

Luis Felipe Dias

All posts

You set up windsurf bigquery read only access by binding a viewer role to a cloud identity. Then you pass that identity to the IDE agent through your shell or an MCP server. Most teams give the agent their own local cloud login to move fast. When that login has broad permissions, the agent can edit tables or read private rows. How windsurf bigquery read only access works in the IDE On June 2, 2026, Cognition renamed Windsurf to Devin Desktop. The app keeps the same IDE features and uses the C

Auditor Read-Only Access + Customer Support Access to Production: the complete guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free white paper. No spam. Unsubscribe anytime.

You set up windsurf bigquery read only access by binding a viewer role to a cloud identity. Then you pass that identity to the IDE agent through your shell or an MCP server. Most teams give the agent their own local cloud login to move fast. When that login has broad permissions, the agent can edit tables or read private rows.

How windsurf bigquery read only access works in the IDE

On June 2, 2026, Cognition renamed Windsurf to Devin Desktop. The app keeps the same IDE features and uses the Cascade agent. Cascade can run terminal commands on its own when you give it permission. It opens a dedicated shell that uses zsh on macOS or bash on Linux. That shell loads your local profile, aliases, and saved keys.

Because the shell loads your profile, the agent inherits your active cloud login. Cascade also connects to Model Context Protocol servers when you add them to its config. Both paths let the agent send queries straight to your data warehouse. To limit the agent to read operations, you must create a separate cloud service account.

You grant this service account the basic job user and data viewer roles in Google Cloud. The job user role lets the account run query jobs. The data viewer role lets it read table metadata and rows without editing them. You then point the MCP server or shell to this restricted key.

Why you must isolate agent identities from developer logins

Developers often test queries in the terminal using their personal cloud accounts. Those personal accounts usually hold editor or owner roles in staging projects. When Cascade opens its shell, it uses those exact same permissions by default. A bad prompt or a coding mistake can trigger a drop or update query.

Separating the agent identity stops accidental writes right away. You give your engineer one login and the AI agent a strict viewer login. You can also scope the viewer role to single datasets instead of the whole project. This stops the agent from scanning billing tables or internal system logs.

Still, storing a service account key file on a laptop creates a new risk. Any local script or terminal session can read that static key file. Teams must rotate these keys often and check cloud logs for strange query patterns.

Auditor Read-Only Access + Customer Support Access to Production: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

What native viewer roles solve and what they leave open

Native cloud roles do a great job of blocking table changes and deletions. Once you bind a viewer role, the database rejects every insert, update, or drop statement. Your core data schemas and records stay safe from bad agent writes. This setup solves the write side of the problem.

Still, cloud IAM only checks who logs in and which tables they can read. It does not check what individual queries do while they run. A read-only agent can still run a massive select statement across billions of rows. It can also pull raw customer emails, phone numbers, card numbers, or national IDs into the prompt context.

Once those rows return to the IDE, they get sent to the model provider. Native roles cannot rewrite matched fields in results before the agent sees them. They also cannot pause a single high-cost query for a human to review first.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits inline in the protocol beside the service as an open-source proxy, a sidecar for your database or API. On every production query an agent or human runs, hoop.dev decides whether to pass, mask, block, or escalate it for review.

Before a query runs, hoop.dev guardrails check the statement against your rules, an AI Analyzer you configure can score intent or hold risky calls for human approval, and hoop.dev data masking rewrites sensitive fields in responses in memory. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Does Devin Desktop use the same setup as Windsurf for BigQuery?

Yes, Windsurf became Devin Desktop in June 2026 and kept the same IDE and Cascade agent. You restrict database permissions in the exact same way for both names.

Can a BigQuery viewer role stop the agent from reading sensitive columns?

No, a standard dataset viewer role lets the agent read every column in those tables by default. To block specific columns, you must set up policy tags or rewrite matched fields in results.

How does Cascade get permissions to run BigQuery commands?

Cascade loads your zsh or bash profile in its terminal and reads your active cloud login. It can also use keys stored in your local MCP server setup.

Save the open-source gateway.

hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.