Skip to content

Snowflake 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). 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 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), 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

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:

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.

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 pages for setup and troubleshooting.