How to Configure Windsurf Snowflake Read Only Permissions
You set up windsurf snowflake read only permissions by creating a custom database role. Then you grant select rights to that role and assign it to the agent user. Teams often give coding agents broad developer roles to move fast during setup. That broad role lets an autonomous agent drop tables or change live data by mistake. How windsurf snowflake read only permissions work in practice Cognition renamed Windsurf to Devin Desktop in June 2026. The product keeps the same editor and features un
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
You set up windsurf snowflake read only permissions by creating a custom database role. Then you grant select rights to that role and assign it to the agent user. Teams often give coding agents broad developer roles to move fast during setup. That broad role lets an autonomous agent drop tables or change live data by mistake.
How windsurf snowflake read only permissions work in practice
Cognition renamed Windsurf to Devin Desktop in June 2026. The product keeps the same editor and features under the new name. Its Cascade agent can run terminal commands on its own after you approve them. The agent runs inside a dedicated shell that loads your local shell profile. This means the agent can read your local keys and shell variables.
The agent also talks to external tools through Model Context Protocol servers. Whether the agent uses a shell tool or an MCP server, it needs a database user. You control what the agent can do by locking down that database user role.
First, an admin creates a dedicated role and user for the coding agent. Next, the admin grants usage rights on a small warehouse, specific databases, and schemas. Finally, the admin grants select privileges on the needed tables and views. You must also grant select rights on future tables if schemas change often. When the agent logs in with this role, the data warehouse rejects any write statement.
What native roles solve and what they leave open
A native read-only role stops the agent from running insert, update, delete, or drop commands. It enforces a hard boundary at the database engine level. Even if a prompt tricks the agent, the warehouse blocks every schema change. It also lets you put the agent on a tiny warehouse to cap compute spend.
Still, a database role only decides who can log in and which tables they can read. It does not inspect what individual queries do in flight. A read-only role still lets the agent pull thousands of rows of customer data. If a table holds emails, phone numbers, card numbers, or national IDs, the query returns them. That raw data flows straight into the agent context window and out to the model provider.
Read-Only Root Filesystem + Snowflake Access Control: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Local shell variables also create a key management problem for engineering teams. Because the agent terminal loads your shell profile, any local key sits in plain text. Developers often share these static keys or leave them on laptops for months. Native database roles cannot redact sensitive columns per query or remove static keys from laptops.
Why static database roles fall short for AI agents
Human engineers usually query a few rows at a time to check a schema. Coding agents work at machine speed and often dump entire tables to understand context. A static select grant treats a safe five-row lookup the same as a full table dump.
Teams also struggle to audit which prompt triggered a specific warehouse query. When ten developers share one read-only agent role, every query looks identical in the warehouse log. You can see the SQL text, but you lose the developer identity behind the session. Securing agent workflows requires inspecting queries in flight and masking sensitive fields like emails or card numbers in results.
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
Did Windsurf change its name to Devin Desktop?
Yes, Cognition renamed Windsurf to Devin Desktop in June 2026. It keeps the same editor features, terminal execution, and Cascade agent capabilities.
Can a read-only database role hide customer emails from the AI agent?
No, a standard select grant returns all columns in the table by default. Without dynamic data masking, queries still return raw emails, phone numbers, and card numbers to the agent.
How does the Cascade agent read local database credentials?
The agent runs commands in a dedicated shell that loads your local shell profile. Any database keys stored in your shell profile are available to the agent.
Related guides
In this post