Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snowflake ingestion key-pair auth.mdx #2402

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading