# Snowflake

> Snowflake: what the collector reads, how to connect it, its permissions, its certification by Atlantic Agentic Labs and its security posture.

Built, not certified Built and tested against recorded and synthetic responses (version 0.1.0, 21 November 2026). Not yet run against the vendor's sandbox or a client environment.

Reads the Snowflake tables and views you name, in place, over the Snowflake SQL API with a read-only service user, so agents can answer from a register or a ledger without it being copied to a vendor. Every statement it sends is a SELECT (or the `SHOW GRANTS` that checks its own role), built by the collector.

Built against the Snowflake SQL API v2 with key-pair JWT authentication.

## At a glance

| Collector                   | Snowflake, version `0.1.0`                                                                                               |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| Reads                       | Snowflake: Snowflake SQL API ([the vendor's documentation](https://docs.snowflake.com/en/developer-guide/sql-api/index)) |
| Family                      | Data                                                                                                                     |
| Kind                        | Database                                                                                                                 |
| Ways to connect             | Key pair                                                                                                                 |
| Scopes                      | - Read: `USAGE on the warehouse`, `database and schemas`, `SELECT on the named tables and views`                         |
| Read only                   | Yes, except: \[object Object]                                                                                            |
| Vendor's API can move money | No                                                                                                                       |
| Personal data               | Content, Contact, Identity, Financial, Employment                                                                        |
| Hosts it may contact        | `*.snowflakecomputing.com`                                                                                               |
| Vendor API versions         | Snowflake SQL API v2 (/api/v2/statements), key-pair JWT authentication                                                   |
| Lowest engine version       | `0.47.1`                                                                                                                 |

## What it reads

- The tables and views you name (`DATABASE.SCHEMA.NAME`), with the key column, optionally an `updated` column, a `title` column and the `columns` to read (every column otherwise). A whole account is never the default.
- With an `updated` column, a pull reads rows whose time is later than the cursor less `margin_minutes` (five by default), ordered by it. The time is compared as epoch milliseconds, so a TIMESTAMP_NTZ, TIMESTAMP_LTZ or TIMESTAMP_TZ column is handled the same way. Without an `updated` column, the table is read whole on every pull and an unchanged row costs nothing to rewrite; say so to the client before naming a large table.
- A large result is read partition by partition; a statement still running is polled until it ends or `timeout_s` (300 seconds by default) passes.
- Deletions: every six hours the keys are listed (`SELECT <key>` only) and a row that has gone is withdrawn. A table Snowflake refuses to list (it has gone, or the role can no longer see it) keeps its rows until it can be listed again. A table taken out of the configuration has its rows withdrawn.
- Text is kept to `max_chars` (100,000) and then marked truncated; a BINARY value is named by its size and never written to the corpus; DATE and TIMESTAMP values are written as ISO 8601.

## How to connect

1. In Snowflake, create a role that holds `USAGE` on one warehouse, the database and the schemas, and `SELECT` on the named tables and views, and nothing else. Create a service user (`TYPE = SERVICE`) with that role as its default, `DEFAULT_SECONDARY_ROLES = ()`, no password, and the public half of an RSA key pair set as `RSA_PUBLIC_KEY`.
2. In LightHouse, open **Connectors**, choose **Snowflake**, and give the credential: the account identifier (`myorg-myaccount`, or an account locator with its region, `xy12345.eu-west-1`), the user, the private key (an unencrypted PKCS#8 PEM), and optionally the role and the warehouse. They are sealed in your browser to your deployment’s key and kept in your own secrets store; LightHouse never opens them.
3. In code, set `SNOWFLAKE_CREDENTIAL` to the credential’s JSON fields (`account`, `user`, `private_key`, `role`, `warehouse`) and add a `kind: snowflake` source card with `tables`, `label` and `requires`. `margin_minutes`, `max_chars` and `timeout_s` change the defaults.

## Permissions

`USAGE` on the warehouse, database and schemas and `SELECT` on the named objects, and nothing else; read and write is not offered. Read-only is held three ways:

- Before anything is read, the session’s role and its active secondary roles are listed and each role’s grants are read with `SHOW GRANTS TO ROLE`, following the roles it inherits. A system role (ACCOUNTADMIN, SYSADMIN, SECURITYADMIN, USERADMIN, ORGADMIN), or any privilege beyond SELECT, USAGE, REFERENCES, MONITOR and READ, refuses the pull, and the health check reports the connection as able to write, naming what it found.
- Submitting a statement is a `POST /api/v2/statements`, the one POST the manifest lists. Every statement is built by the collector from checked identifiers; configuration names tables and never carries SQL. In the code, every statement goes through one function that refuses anything but a SELECT, a `SHOW GRANTS` or a DESCRIBE, and any `;`.
- Results are read with `GET` only.

The read-only test proves it on every change: it drives the real HTTP client through a recorder over a role check, a first pull and a reconciling pull, and finds only that POST, every statement a SELECT or `SHOW GRANTS`, and GETs, all to the account’s host.

## Limits

- The host is made from the account identifier (`<account>.snowflakecomputing.com`, lower case, `_` as `-`) and must be a Snowflake host; anything else is refused, and a redirect to another host is refused.
- Every identifier (database, schema, table, column, role) is checked against Snowflake’s unquoted-identifier shape, upper-cased and quoted; a value is only ever a binding. A name that needs quoting (mixed case, spaces) is not supported.
- A table is `DATABASE.SCHEMA.NAME`, named once; a row with a null key is skipped.
- Comparing the `updated` column as epoch milliseconds means Snowflake cannot prune micro-partitions on that comparison; on a very large table, read a view that holds the recent rows.
- An encrypted private key is not supported; keep the unencrypted key in the secrets store, which encrypts it.
- Up to twenty roles are followed when the grants are checked.

## Data handling

- The columns you name are copied into the deployment’s corpus under the source’s `label`; whatever the tables hold (names, contact details, financial or employment records) is copied, so name the columns, not the table, where a table holds more than the question needs.
- The private key stays in your secret store and is never written to logs, run notes or the corpus; only a signed token of under an hour is sent, and only to the account’s host.
- Nothing leaves the deployment: only counts reach LightHouse.

## Troubleshooting

| What you see                                                      | What it means                                                                           | What to do                                                                                               |
| ----------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| `name the tables to sync; a whole account is never the default`   | `tables` is empty                                                                       | Name the tables                                                                                          |
| `not a Snowflake identifier`                                      | A database, schema, table, column or role name is not a plain identifier                | Use the plain name; no quotes, spaces or punctuation                                                     |
| `table is DATABASE.SCHEMA.NAME`                                   | A table was named without its database or schema                                        | Write `DATABASE.SCHEMA.NAME`                                                                             |
| `account is your Snowflake account identifier`                    | The account in the credential is not an account identifier                              | Use `myorg-myaccount` or the account locator with its region                                             |
| `the Snowflake role can change the account`                       | The role is a system role, or it or a role it inherits holds a privilege beyond reading | Give the collector a role with `USAGE` and `SELECT` only; set `DEFAULT_SECONDARY_ROLES = ()` on the user |
| `the Snowflake private_key is not an unencrypted PEM private key` | The key is encrypted or not a PEM                                                       | Paste the unencrypted PKCS#8 PEM                                                                         |
| `HTTP 401`                                                        | The public key on the user does not match, or the user or account is wrong              | Set `RSA_PUBLIC_KEY` on the user again                                                                   |
| `still running after ... seconds`                                 | The warehouse is busy or suspended for longer than `timeout_s`                          | Raise `timeout_s` or size the warehouse                                                                  |
| `only SELECT, SHOW GRANTS and DESCRIBE are ever sent`             | A statement that is not a read was about to be sent                                     | Report it; nothing was sent                                                                              |

## Certification

Each entry is a run by Atlantic Agentic Labs, newest first. Only a run against the vendor’s sandbox or a client environment certifies a collector; a certification lasts six months, or less if the vendor publishes an API version the collector does not list. See [How collectors are certified](/collectors/certification/).

| Date             | Collector | Engine   | Vendor API                                                             | Method                              | Expires        |
| ---------------- | --------- | -------- | ---------------------------------------------------------------------- | ----------------------------------- | -------------- |
| 21 November 2026 | `0.1.0`   | `0.47.1` | Snowflake SQL API v2 (/api/v2/statements), key-pair JWT authentication | Fixtures only: built, not certified | Not applicable |

## Security posture

From the collector’s last scan on the default branch. What each line means, and what blocks a release: [Security posture](/collectors/security/).

| Last scanned               | 25 November 2026                                                                                                                                                                                                      |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Critical findings          | 0                                                                                                                                                                                                                     |
| High findings              | 0                                                                                                                                                                                                                     |
| Medium findings            | 0                                                                                                                                                                                                                     |
| Low findings               | 0                                                                                                                                                                                                                     |
| Info findings              | 0                                                                                                                                                                                                                     |
| Release blocked            | No                                                                                                                                                                                                                    |
| Network allow-list check   | Pass                                                                                                                                                                                                                  |
| Read-only behavioural test | Pass                                                                                                                                                                                                                  |
| SBOM (CycloneDX)           | Produced                                                                                                                                                                                                              |
| Dependency licences        | Pass                                                                                                                                                                                                                  |
| Scanners                   | bandit 1.9.4, semgrep 1.181.1, pip-audit 2.10.1, osv-scanner 2.7.0, cyclonedx-py 7.5.0, pip-licenses 5.5.5, gitleaks repository job aal-secrets, hosts_check tools/hosts_check.py, read-only test pytest -m read_only |

Source: https://docs.atlanticagenticlabs.com/collectors/catalogue/snowflake/
