Skip to main content

Snowflake Integration Guide

Intended audience: Customer DBAs/cloud administrators, platform administrators, implementation consultants Scope: Integration logic and configuration essentials for Snowflake as an Analytics data source Positioning: This document only covers the "data source integration" scenario and does not involve Knowledge vector storage connections


Scope and Version Boundaries

What is supported:

  • The platform connects to Snowflake to browse/sync table structures, preview data, and support analytical reporting.
  • Supports both password authentication and RSA key-pair authentication.
  • Supports specifying key connection parameters such as Warehouse, Role, and Schema in the data source configuration.

What is not supported:

  • This document does not cover the configuration and operations of Snowflake as a Knowledge vector store.
  • This document does not include advanced integration instructions for Snowflake external OAuth/SSO.
  • The platform is not responsible for Snowflake account provisioning, or the creation and authorization of Warehouse/Role; these must be completed by the Snowflake administrator.

Roles and Responsibilities

RoleResponsibilities
** Snowflake account administrator/DBA**Create/specify Warehouse, Database, and Schema; create integration users and roles and grant permissions (USAGE/SELECT, etc.); if using key-pair authentication, generate an RSA key pair and bind the public key to the Snowflake user.
Platform administratorCreate the Snowflake data source on the platform side, enter connection information, test the connection, and sync metadata.
Implementation consultantPrepare connection information and keys, verify test connection, object discovery, and data preview results, and complete acceptance.

Prerequisites Checklist

CategoryPrerequisites
PermissionsThe user must have USAGE on the target Warehouse; USAGE on the target Database/Schema; and SELECT on the tables/views to be synced
AccountSnowflake username + password, or Snowflake username + RSA key-pair
NetworkThe platform can access the regional endpoint corresponding to the Snowflake Account (note the difference between .com and .cn regional suffixes)
Resource preparationAccount identifier, Database, Warehouse, Role, Schema (default is PUBLIC)
⚠️ Must confirm with DBARole permission granularity (whether to use ACCOUNTADMIN or a custom Role), Network Policy/IP allowlist, key rotation policy

Key Points for Platform-Side Entry

Snowflake Analytics Data Source

Field NameRequiredDescription
HostSnowflake Account identifier, for example xx20138.cn-northwest-1.aws
DatabaseDatabase name (case-sensitive)
UsernameSnowflake username
WarehouseWarehouse name
RoleRole name, which determines the accessible data scope
SchemaOptionalSpecify the Schema to access; if left blank, the default permission scope is used
Authentication MethodOptionalPassword Authentication (default) or Key-Pair Authentication
PasswordRequired for password authenticationSnowflake user password, stored with platform-side RSA encryption
Private Key DataRequired for key-pair authenticationRSA private key (PEM format), Base64-encoded and stored encrypted
Private Key PasswordOptionalRequired if the private key is protected with a passphrase

Entry and authorization process:

  1. Enter connection information on the data source configuration page (Host, Database, Warehouse, Role, User, Schema).
  2. Fill in the password or private key related fields according to the authentication method.
  3. Click "Test Connection" to verify availability.
  4. After the test passes, click "Save" to complete data source creation.

Detailed Operation Guide

Go to the data source creation page

  1. Go to the Data > Data Sources page.
  2. Click New Data Source.
  3. Select Snowflake as the data source type.

Fill in the basic connection information

Fill in the following information in the form:

  • Host: Snowflake Account identifier (for example xxx.snowflakecomputing.com)
  • Database: Target database name (case-sensitive)
  • Warehouse: Name of the warehouse used to execute queries
  • Role: Role that determines the accessible object scope
  • User: Snowflake username
  • Schema: Optional; if left blank, the default permission scope applies

Fill in authentication information

Fill in according to the selected authentication method:

  • Password Authentication: Enter the user password
  • Key-Pair Authentication: Enter Private Key Data (PEM, Base64) and the optional Private Key Password

Verify the connection

  1. Confirm that all required fields have been filled in.
  2. Click Test Connection.
  3. If the test passes, click Save to complete data source creation.


Common Issues and Troubleshooting Paths

Issue CategorySymptomPossible CauseTroubleshooting Suggestion
Authentication failureAuthentication failure is reported during test connectionIncorrect password; for key-pair authentication, the public key is not correctly bound to the user, or the private key format is incorrect (PEM required, convert to PKCS8 if necessary)Verify username/password; confirm that ALTER USER ... SET RSA_PUBLIC_KEY has been executed on the Snowflake side and matches the private key
Host not foundReports Host not foundIncorrect Account identifier, or regional suffix mismatch (.com/.cn)Verify the full Account identifier of the Snowflake account
Connection timeoutTest connection times out after a long period of no responseNetwork policy restrictions, or the Warehouse is suspended and starts slowlyCheck the Network Policy/IP allowlist; confirm that the Warehouse can auto-resume normally
SSL errorReports SSL/TLS-related exceptionsNetwork proxy/certificate interception causes handshake failureCheck whether there is any TLS interception device on the network egress
Insufficient permissionsTest connection succeeds but syncing table structures/data preview failsThe user lacks SELECT permission on the target Schema/tableAsk the DBA to grant SELECT on the corresponding tables/views