Using Key Pair Authentication
Last updated
Last updated
To connect Snowflake to Select Star, you will need:
Admin access to your Snowflake instance via the ACCOUNT_ADMIN
role.
Complete the following steps to enable metadata, lineage, and popularity for your Snowflake data in Select Star.
Go to Data Sources in Select Star
Navigate to Settings > Data.
Click + Add to create a new data source.
Select Snowflake as the Source Type
In the Source Type dropdown, choose Snowflake.
Choose Key Pair Authentication
Select Key Pair as the authentication method.
Copy the Public Key
Select Star generates a pair of keys: a public key and a private key.
The public key will be displayed on the screen along with a copy button. Use this button to copy the public key.
This public key is required for creating a user in Snowflake.
Leave the form open, as you’ll return to it to complete the connection details after creating the Snowflake user.
Use the ACCOUNT_ADMIN
role and run the following SQL in your Snowflake instance. Replace <PUBLIC_KEY>
with the copied public key from Select Star.
These are the minimum permissions required for Select Star to collect basic metadata and query history. Query history is also used to generate lineage.
This step is required if you wish to enable Select Star's Preview Feature, and to see additional metadata including Primary Keys (PK) and Foreign Keys (FK) of your tables.
Using the ACCOUNT_ADMIN
role, execute the following SQL:
If you're granting these permissions after your Snowflake metadata has been synced, you will need to re-sync your metadata. To do this,
Go to Settings > Data
Click on Sync metadata on your Snowflake Data source.
Complete the Setup in Select Star Once the role has been created in Snowflake, return to Select Star to complete the setup.
Fill in the Connection Details Provide the following information:
Display Name:
Default is Snowflake
. You can customize it if desired.
Account:
Your Snowflake account name (the part before .snowflakecomputing.com
in your Snowflake URL).
Username:
The name of the service account user you created earlier. In the example above, it is selectstar
Authentication:
You already selected Key Pair authentication.
Role:
The role you granted the service account user. In the example above, it is selectstar_role
.
Warehouse:
The name of the data warehouse you've given us access to. In the example above it is MED
.
Test the Connection and Proceed
Once all fields are filled, click Next to proceed.
After you fill in the information, you'll be asked to select the databases you'd like to load into Select Star.
Select Star will not read queries or metadata or generate lineage for databases, schemas, or tables that are not loaded. Please load all data for which you expect to see lineage.
You can change the databases and schemas you have loaded if needed.
Select the database and click Next.
For each database you selected, you'll be able to select the schemas.
Your metadata should start loading automatically. Please allow 24-48 hours to completely generate popularity and lineage.
When the sync is complete, you'll be able to explore Snowflake in Select Star. See the link below for more information on Snowflake in Select Star.
Note: To change an existing data source's configuration, go to Settings > Admin > Data Sources and click Configure on your Snowflake data source. Click Back to get to the credential screen to update credentials.