Skip to main content

Snowflake Key Pair Authentication

Coalesce supports Snowflake’s key pair authentication for connecting Development Workspaces and Environments to Snowflake instances. Both encrypted and un-encrypted private keys are supported. Encrypted keys have a corresponding passphrase that is required to use them, while un-encrypted keys can be used directly. While keys are allowed to be encrypted with an empty passphrase by Snowflake, this is not supported in Coalesce and will result in an error.

Before you begin, go through Snowflake’s key pair authentication steps to generate your keys and assign the public key to your Snowflake user.

  1. Navigate to Build Settings> Environments/Development Workspaces.
  2. Select Edit on the environment/workspace that you wish to connect to Snowflake using Key Pair Auth.
  3. In Edit Environment/Workspace > User Credentials, select Authentication Type as Key Pair .
  4. Enter your Snowflake Username , Private Key, Private Key Passphrase (if applicable), Role and Warehouse into their respective fields and Save. Click Test Connection to ensure this works as expected.
Adding Your Private Key

When entering your private key, make sure it's formatted properly. It must include the full private key including the lines BEGIN ENCRYPTED PRIVATE KEY and END ENCRYPTED PRIVATE KEY.

-----BEGIN ENCRYPTED PRIVATE KEY-----
...
-----END ENCRYPTED PRIVATE KEY-----
Coalesce Key Pair Configuration Screen