Security and data handling
Your model, your Snowflake account, and nothing in between.
Grain has no Grain server. Grain Desktop and the VS Code extension run on each modeler's own computer and connect directly to your Snowflake account. The Snowflake app, coming soon, will run in a container inside your account. None of them sends your models, your data or usage information to us. This page answers the questions your security team will ask.
Grain Desktop and the VS Code extension
On your computers, talking only to your Snowflake account.
Each modeler installs Grain on their own computer. The model is a folder of YAML files there, usually in your Git repository, and Grain connects to Snowflake directly, as the modeler, with their own role.
The model stays with you
The model is an er-model folder on the computer, readable without Grain. Grain Desktop runs Git with the computer's own git, so it goes only to the remote you choose.
One destination: your Snowflake
Grain connects only to your Snowflake account, and only for an action the modeler starts. Cortex requests run there too, under the modeler's role.
Credentials kept by the system
The access token or single sign-on session is encrypted by the operating system (Keychain on macOS, DPAPI on Windows) in Grain Desktop, and kept in VS Code's secret storage in the extension. It is never written into the model folder, so it never reaches Git.
License keys checked offline
The license key is checked on the computer against our signature. Grain never calls home to check it, and nothing about its use is sent to us. The key is kept in the user's home folder, readable only by them.
No telemetry, no silent updates
Grain collects no usage analytics, crash reports or model contents. It doesn't update itself: new versions come from us as installers or a .vsix file, installed when you choose.
Local only
Grain Desktop's window talks only to a local service on the same computer, which refuses requests from any other program. The MCP server for AI agents is a local program that reads the model folder.
The Snowflake app · Coming soon
Everything stays inside your account.
The Snowflake app will be a Snowflake Native App, installed from Snowflake Marketplace. People open Grain from Snowsight and are signed in as their own Snowflake user. The model is stored in a table inside the app. Reading and changing your databases runs as the signed-in user. Nothing is sent to us.
Downloading the model as YAML is the only way model content leaves Snowflake, and only when a person chooses to.
Principles, in every form of Grain
What Grain does, and what it never does.
Nothing runs on its own
Grain touches your databases only for an action someone starts: Read Snowflake, Compare, Deploy, a Cortex request, reading lineage, or deploying tags. Opening a model reads nothing from your databases.
Read before write
Reading the schema is read-only. Deploy shows every statement first, asks you to tick each destructive one, runs them in order and stops at the first failure.
No Grain login
There is no separate Grain account. In the Snowflake app, people open Grain from Snowsight as themselves; in Grain Desktop and VS Code, they sign in to Snowflake with their own token or single sign-on.
You set the outer limit
In the Snowflake app, the app can reach only the databases and warehouse your administrator names with GRANT CALLER. Leave out OBJECT MANAGEMENT and Grain can't deploy anything.
Your role, your permissions
Reading and deploying run as the person using Grain, with their role: in the Snowflake app, through restricted caller's rights. Grain can never do more than that person could do themselves.
No telemetry
Grain collects no usage analytics, crash reports or model contents, on a computer or in Snowflake. We don't know what you model.
Cortex
What the assistant sees.
Cortex requests run in your Snowflake account, under your role, and are billed by Snowflake as part of your normal consumption. Grain sends design metadata only.
| Task | Sent to Cortex | Never sent |
|---|---|---|
| Complete, review, describe an entity | The entity's design, its relationships, your lexicons and house standards, Cortex context and organization profile | Rows from any table |
| Suggest subject areas | Table names, column names and types, comments and declared keys for the schemas you pick | Rows from any table |
| Design from requirements | The description you type | Anything else in your model |
| Import meeting transcript | The transcript you choose, in pieces | The transcript is not stored in the model. Only the summaries and links you adopt are saved. |
Every Cortex result waits for your review. Nothing it proposes is saved until you apply it, and an applied change can be undone in one step.
The Snowflake app · What it may do
Two identities, each with limits you set.
Some work runs as the app itself, and some runs as the person using it. Neither can reach your data beyond what you grant.
| Acting as | Can | Cannot |
|---|---|---|
| The app itself | Use its own model table, warehouse and compute pool, and call Cortex | Read or change any of your databases |
| The app, for a signed-in user | What that user's role can do, and what your GRANT CALLER statements allow | Anything beyond either |
- Privileges the app asks for at install: create its own compute pool (one extra-small node), create its own extra-small warehouse, and a service endpoint so the people you grant can open it.
- Edits are attributed to the Snowflake user who made them.
- Read-only mode is a shared app setting for review periods.
- Upgrades arrive through Snowflake's Native App versioning, and the model table is untouched.
For your review
Questions security teams ask.
Does Grain need network access outside Snowflake?
No. Grain Desktop and the VS Code extension connect only to your Snowflake account, plus the Git remote you choose for the model folder. The Snowflake app will have no external access integration, so its container cannot reach the internet; people reach it through Snowsight, with nothing installed on their machines.
Which Snowflake privileges does it need?
Grain Desktop and the VS Code extension use the modeler's own role, so it needs the privileges for what they do: reading the schemas they model, and creating objects where they deploy. At install, the Snowflake app asks to create its own compute pool and warehouse and to bind a service endpoint. After that, an administrator grants CALLER USAGE and CALLER OBJECT DISCOVERY on each database to read schemas, CALLER OBJECT MANAGEMENT to deploy tables and tags, CALLER USAGE on a warehouse, and the SNOWFLAKE.CORTEX_USER database role for Cortex. Each person still needs their own role's privileges on the objects. Lineage needs Snowflake Enterprise Edition. See the setup script.
Can we keep Grain read-only?
Yes. Give modelers a role that can read but not create objects, or in the Snowflake app don't grant CALLER OBJECT MANAGEMENT, and Grain can read schemas and compare but never deploy. Modelers can still generate DDL and export it as .sql for your own change process.
Can someone deploy by accident?
Deploy shows the full plan first. Each destructive statement needs its own acknowledgement, and nothing runs until you choose Run. For stricter control, have Grain export the script as .sql and run it through your existing change process instead.
Where is the model stored, and in what format?
As plain YAML files in an er-model folder, readable without Grain. In Grain Desktop and the VS Code extension, the folder is on the modeler's computer, usually in your Git repository. In the Snowflake app, the same documents are kept in a table inside the app, and anyone using it can download them as a zip. The model belongs to you.
Has the Snowflake app been reviewed by Snowflake?
Not yet, because it isn't listed yet. Every version of a Native App published on Snowflake Marketplace goes through Snowflake's security review before customers can install it, and the Grain app will too.
What can AI agents connected to Grain reach?
Only the model, and only to read it. Grain's agent tools describe tables, joins, measures and terms, and check SQL; none of them changes the model or connects to Snowflake. When an agent runs a query, it runs with the agent's own Snowflake identity, so your masking policies, row access policies and grants still decide what it sees. In the Snowflake app, agents connect as a signed-in Snowflake user; in Grain Desktop and VS Code, the MCP server is a local program that reads the model folder.
Does the license check send anything to you?
No. Grain Desktop and the VS Code extension check the license key on the computer, against a signature, with no call home. The key says who it is for, the plan and its dates, and is kept in the user's home folder, readable only by them. The Snowflake app will use no key: it will be licensed through Snowflake Marketplace.
Do you have SOC 2, ISO 27001 or a completed security questionnaire?
Grain is in early access and doesn't hold a SOC 2 report or ISO 27001 certification yet. We'll complete your security questionnaire and walk your team through the design: write to sales@grainer.ai. Because Grain never sends your models or data to us, and has no server of ours to hold them, most reviews focus on where it runs, the Snowflake roles it uses, and the grants you make.
Need something for your security review?
We'll walk your team through the permissions, the data flow and the deploy safeguards.