How to Configure Windsurf Snowflake Data Masking

Published
Length
3 min read

Luis Felipe Dias

All posts

You set up windsurf snowflake data masking by tying warehouse masking rules to the role your coding agent uses. When the agent runs a query, those rules rewrite emails, phone numbers, and card numbers in the output. Teams often give local agents broad warehouse roles so queries do not fail during tests. When roles are too broad, unmasked rows flow straight into the agent prompt and external model logs. How windsurf snowflake data masking works in practice On June 2, 2026, Cognition renamed Wi

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 data masking by tying warehouse masking rules to the role your coding agent uses. When the agent runs a query, those rules rewrite emails, phone numbers, and card numbers in the output. Teams often give local agents broad warehouse roles so queries do not fail during tests. When roles are too broad, unmasked rows flow straight into the agent prompt and external model logs.

How windsurf snowflake data masking works in practice

On June 2, 2026, Cognition renamed Windsurf to Devin Desktop. The IDE and its features stayed the same. Inside the app, the Cascade agent can run terminal commands on its own with user permission. It uses a dedicated terminal that loads the shell setup on macOS or Linux. Any shell aliases and local variables are ready for the agent to read. The Cascade agent also talks to local MCP servers when the user sets them up.

When a developer asks the agent to check a table, the agent runs a tool or shell command. That command logs in to the Snowflake warehouse using the local role and keys on the laptop. Inside the warehouse, admins attach masking rules to specific columns that hold emails or national IDs. The warehouse checks which role started the session before returning any rows. If the role lacks unmasking rights, the warehouse rewrites matched fields in the results. The agent then reads those masked rows in its terminal output.

What native roles solve and where gaps remain

Native warehouse masking works well when every developer and agent uses a strict, limited role. You can build a dedicated role for the coding agent and attach masking rules to tagged columns. When the agent queries a table, the warehouse rewrites card numbers and phone numbers before sending data back. This stops raw customer values from entering the IDE chat window.

The main gap comes from how the agent runs commands on the developer laptop. Because the agent terminal loads the user shell setup, it inherits the developer keys and active session. Developers often hold high-level roles so they can fix production bugs or build new tables. If the developer role is allowed to read raw values, the agent inherits that exact same power. Native setup decides who logs in at the start of a session. It does not inspect individual statements or ad-hoc queries that the agent writes in flight. You also have to maintain masking rules on every single column across every database by hand. If a new table lacks a tag, the query returns raw emails and card numbers to the agent.

Data Masking (Static) + Snowflake Access Control: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

How to tighten agent roles and local shell state

Start by separating the human role from the role that automated tools use on the machine. Do not store high-level warehouse keys in the default shell startup file. When keys sit in the shell profile, every terminal command the agent runs can use them. Instead, point local MCP tools to a restricted warehouse role built just for code assistance.

Next, audit which tables that restricted role can read across your warehouse. Limit its permissions to schema metadata and safe test datasets whenever you can. On tables where the role needs read permissions, apply column rules for emails, phone numbers, and national IDs. Test the setup by running a query with that role and checking that matched fields are rewritten. Still, managing column rules across many tables takes steady work from your data team.

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

Does the rename to Devin Desktop change how the agent runs database queries?

No, Cognition states that Devin Desktop is the new name for Windsurf with the same IDE and features. The Cascade agent still runs terminal commands with permission and uses configured MCP servers.

Why does my coding agent get unmasked rows when column rules exist?

The agent terminal loads your local shell setup and inherits your active developer credentials. If your personal warehouse role is allowed to read raw columns, the agent gets the same unmasked results.

Which data fields should we mask first for AI coding agents?

Start with columns that store emails, phone numbers, payment card numbers, and national IDs. Rewriting these matched fields in query results keeps sensitive values out of model prompts.

The query runs. The emails stay hidden.