How to Configure Windsurf Snowflake Approval
You set up windsurf snowflake approval by requiring user permission before the agent runs commands. You also limit the database role that the agent uses in your local shell. Many teams start by storing static database keys inside local shell files. When an AI coding agent reads those files, broad role permissions put production tables at risk. How windsurf snowflake approval works in local sessions On June 2, 2026, Cognition renamed Windsurf to Devin Desktop. The IDE keeps the same features a
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 approval by requiring user permission before the agent runs commands. You also limit the database role that the agent uses in your local shell. Many teams start by storing static database keys inside local shell files. When an AI coding agent reads those files, broad role permissions put production tables at risk.
How windsurf snowflake approval works in local sessions
On June 2, 2026, Cognition renamed Windsurf to Devin Desktop. The IDE keeps the same features and agent workflow under the new name. Its coding agent can run terminal commands on its own with user permission. It uses a dedicated terminal session on your workstation to do this work. The agent runs zsh on macOS and bash on Linux during each task. Because this terminal loads your shell profile, local aliases and variables are ready to use. The legacy Cascade agent can also talk to Model Context Protocol servers you set up.
When an engineer asks the agent to query Snowflake, the workflow starts in the IDE. The agent drafts a terminal command or tool call to run the SQL statement. If you require user permission in the IDE, the agent pauses and waits. The developer reviews the prompt in the editor window and clicks approve. Once approved, the command runs inside the local shell using the developer's active credentials. Those credentials map to a specific Snowflake role with defined warehouse and table permissions.
Where local prompts fall short for data teams
Local IDE prompts help a single developer spot obvious mistakes before a command runs. Native Snowflake roles also control which schemas a logged-in user can read or change. Together, these native controls decide who can log in and which objects they see. Still, a local click from the developer running the agent is not a peer review. Developers move fast and often approve long terminal commands without reading every SQL clause.
Also, the agent loads the developer's shell variables as soon as the terminal starts. If those variables hold a high-privilege Snowflake role, every approved command inherits that power. Native role checks happen when the session starts, not per query intent in flight. A valid role can still run a bad delete statement or pull sensitive customer rows. Local editor checks do not create a central team log of who approved a query. They also do not mask sensitive fields like emails, phone numbers, or card numbers. When a query returns raw data, the local terminal prints those values into the agent context.
Approval Chains & Escalation + Snowflake Access Control: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Why peer review and field masking matter for AI agents
AI coding agents generate and run many queries in a short amount of time. One broad select statement can pull thousands of customer national IDs into a prompt window. Data masking solves this by rewriting matched fields in query results before the agent reads them. Instead of relying only on the person typing the prompt, teams need external peer review. Routing risky SQL commands to a team channel lets a second person check the query. That reviewer can inspect the exact statement and approve or reject it before execution. This separates the developer asking the agent for help from the person granting production changes.
Govern statements and responses across databases and APIs
Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev sits inline in the protocol beside each supported service as an open-source proxy, a sidecar for your database or API. For every query or command an AI agent or engineer runs against production, hoop.dev decides to pass, mask, block, or hold it for human approval.
First, hoop.dev guardrails block banned queries before they run or hold risky ones for review, and hoop.dev data masking rewrites matched sensitive values in responses in memory. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.
Frequently asked questions
Did Windsurf change its name to Devin Desktop?
Yes, Cognition announced on June 2, 2026, that Windsurf became Devin Desktop. The product keeps the same IDE features, terminal runner, and agent workflow.
How does the agent pick up local Snowflake credentials?
The agent runs commands in a dedicated zsh or bash terminal that loads your shell profile. Any database keys or variables stored in that shell profile become available to the agent.
Can local IDE prompts replace team approval for production Snowflake queries?
No, local IDE prompts only ask the developer who is already running the agent. True change control requires a separate reviewer to check risky queries and mask sensitive results.
Related guides
In this post