# Snowflake Snowflake Authentication

Source: https://userguide.qualytics.io/source-datastore/datastore/jdbc/snowflake/authentication/

Qualytics signs in to Snowflake as a Snowflake user. Every query runs with that user's role, so Snowflake uses the role's privileges to decide what Qualytics may read or write (see [Permissions](https://userguide.qualytics.io/source-datastore/datastore/jdbc/snowflake/permissions/)). The **Type** field in the **Authentication** section of the connection form selects how the user signs in, and **Basic** is the default.

## Basic

With **Basic** (`BASIC` in the API), Qualytics signs in with the user's **User** and **Password**. Snowflake is phasing this out for service users; see [Authentication Changes in Snowflake](https://userguide.qualytics.io/source-datastore/datastore/jdbc/snowflake/authentication/#authentication-changes-in-snowflake) below.

## Keypair

With **Keypair** (`KEYPAIR` in the API), Qualytics signs in with a private key instead of a password. Register the public key on the Snowflake user (see the [Snowflake Key-Pair Authentication Guide](https://docs.snowflake.com/en/user-guide/key-pair-auth)), then fill in:

| Field | Description |
| --- | --- |
| **User** | The Snowflake user the key pair is registered to. |
| **Private Key** | The private key file for that user, uploaded rather than pasted: an RSA key in PEM format, either PKCS#8 or PKCS#1, encrypted or not. DER files are not accepted. |
| **Private Key Password** | The passphrase that protects the private key. Leave it empty if the key is not encrypted, or if the key is a `${key}` reference from a secrets manager. |

This is the recommended option for new connections, and it suits a Snowflake user of type `SERVICE`.

## Authentication Changes in Snowflake

Snowflake has announced a migration plan to phase out **Basic authentication** (username and password) for service accounts in favor of **Key-Pair authentication**. While basic authentication is still supported, organizations should begin planning their migration to ensure uninterrupted service.

### User Type Classification

Snowflake differentiates between user types based on their intended purpose:

| User Type | Purpose | Current Authentication Support |
| --- | --- | --- |
| **Human users** (`TYPE=PERSON`) | Interactive users accessing Snowflake | Basic authentication supported |
| **Service users** (`TYPE=SERVICE`) | Applications and services (like Qualytics) | Key-Pair authentication recommended |
| **Legacy service** (`TYPE=LEGACY_SERVICE`) | Temporary transition type | Basic authentication (being phased out) |

### Migration Timeline

Snowflake's migration plan includes:

1. **Current Phase**: Basic authentication still supported for service accounts
2. **Transition Phase**: `LEGACY_SERVICE` user type available for organizations needing additional migration time
3. **Future Phase**: Basic authentication will be fully deprecated for service users

### Recommended Actions

To prepare for this transition:

- **New connections**: Use Key-Pair authentication when creating new Snowflake datastores
- **Existing connections**: Plan migration from Basic to Key-Pair authentication
- **Service accounts**: Ensure proper user type classification (`TYPE=SERVICE`)

### Additional Resources

For detailed information on the migration plan and implementation:

- [Snowflake Security MFA Rollout (User Types & Deprecation)](https://docs.snowflake.com/en/user-guide/security-mfa-rollout)
- [Snowflake Key-Pair Authentication Guide](https://docs.snowflake.com/en/user-guide/key-pair-auth)

> **Info: Migration Recommendation**
>
> Use Key-Pair authentication for Snowflake connections. Review the linked Snowflake authentication requirements when migrating from Basic authentication.

## Identifying Qualytics in Snowflake

Qualytics tags every Snowflake JDBC connection with `application=Qualytics`. The tag appears in Snowflake's `QUERY_HISTORY`, `LOGIN_HISTORY`, and Snowsight monitoring under the **Client Application** column, making it easy to filter and analyze Qualytics activity in your account. No configuration is required on your side.

> **Tip: Credentials from a secrets manager**
>
> Any credential field, including the **Private Key** file, can take its value from HashiCorp Vault or another secrets manager instead of being typed in or uploaded: turn on **Secrets Management** on the connection and write `${key}` in the field. See the [HashiCorp Vault](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/) pages for setup and troubleshooting.

*Last updated: November 16, 2026.*
