Skip to content

Commit

Permalink
snowflake ingestion key-pair auth.mdx (#2402)
Browse files Browse the repository at this point in the history
  • Loading branch information
lior-statsig authored Dec 10, 2024
1 parent b61a707 commit 0049c74
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/data-warehouse-ingestion/snowflake.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ To set up connection with Snowflake, Statsig needs the following
- Database Name
- Schema Name
- Admin User Name
- Admin User Password
- If authenticating via login credentials:
- Admin User Password
- If authenticating via key-pair authentication:
- Private Key
- Private Key Passphrase (Optional)

<b>
Admin user name and password will be used by Statsig to create a user with restricted access to query from your data warehouse. If you don't want to use this, skip ahead [here](/data-warehouse-ingestion/snowflake#custom-user-privileges)
Expand Down Expand Up @@ -45,6 +49,13 @@ For each data type, provide the database/schema of the table(s) you will be inge

![Frame 7](https://user-images.githubusercontent.com/108023879/187517225-017b4626-eaea-443b-a042-59fd474ae657.png)

### Key-Pair Authentication

To set up key-pair authentication, first follow the [snowflake documentation](https://docs.snowflake.com/en/user-guide/key-pair-auth) to generate the private and public keys, and then set the public key on the service user.

The private key can then be provided here
![image](https://github.com/user-attachments/assets/8bb56be6-1aca-4d8a-98de-6b82d251d59b)

### Custom User Privileges

To create a custom user with specific privileges instead of using an admin user, run the following code in your Snowflake worksheet that has sysadmin and securityadmin roles.
Expand Down

0 comments on commit 0049c74

Please sign in to comment.