Skip to content

Commit

Permalink
Update snowflake.md (#2383)
Browse files Browse the repository at this point in the history
* Update snowflake.md

Adding guide for setting up key-pair authentication on snowflake

* Add files via upload

* Update snowflake.md
  • Loading branch information
lior-statsig authored Nov 27, 2024
1 parent fb025e7 commit 9db5054
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ To set up Warehouse Native connection with Snowflake, Statsig needs the followin
- Database Name
- Schema Name
- Service User Name
- Service User Password
- If authenticating via login credentials:
- Service User Password
- If authenticating via key-pair authentication:
- Private Key
- Private Key Passphrase (Optional)

The service user needs the following permissions:

Expand Down Expand Up @@ -48,6 +52,13 @@ Provide the Schema and corresponding Database where Statsig will be able to mate

![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/1fa7bda1-5d9c-414b-8e2f-7e36b900acfb)

### Boilerplate Setup SQL

To create a Statsig user with the sufficient privileges, as well as a Statsig staging Schema, run the following code in your Snowflake worksheet that has sysadmin and securityadmin roles.
Expand Down
Binary file added static/img/snowflake_key_authentication.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9db5054

Please sign in to comment.