For the complete documentation index, see llms.txt. This page is also available as Markdown.

Snowflake Integration setup

Getting Started

Requirements:

  • RSA Public Key (at the bottom of this page)

  • Account ID

  • Integration User name

  • Integration User role

Steps to obtain the necessary fields to configure snowflake

  1. Login to your Snowflake account

  2. Create a user by going to Settings > Users & Roles and click on Create User. You should be presented with the following:

    Fill in the details, and make a note of the User Name:

  3. Now go into Worksheets, create a new Worksheet, and execute the following SQL commands one by one.

    • First we will create a role for this user to grant it the necessary permissions:

      CREATE ROLE BALKANID_ROLE;
      GRANT MANAGE GRANTS ON ACCOUNT TO ROLE BALKANID_ROLE;
    • In order to avail credential discovery, you need to grant these permissions as well:

      GRANT USAGE ON WAREHOUSE COMPUTE_WH TO ROLE BALKANID_ROLE;
      GRANT IMPORTED PRIVILEGES ON DATABASE SNOWFLAKE TO ROLE BALKANID_ROLE;
      GRANT ROLE ACCOUNTADMIN TO ROLE BALKANID_ROLE;

      Note: Replace COMPUTE_WH with the name of the warehouse that will be used by the integration user.

    • Then we assign it to our user:

      GRANT ROLE BALKANID_ROLE TO USER BALKAN_ID;
  4. Copy the BalkanID RSA public key found in the Snowflake Public Key section at the bottom of this page and run the following command on your Snowflake worksheet or shell: ALTER USER BALKAN_ID SET RSA_PUBLIC_KEY='{PUBLIC_KEY}'

  5. Acquire your account identifier by following the instructions given here:

    Account Identifiers | Snowflake Documentation

Configure Snowflake in your BalkanID tenant

  1. Login to the BalkanID application and switch to the tenant you would like to add your integration to.

  2. Head to Integrations > Add Integration, select Snowflake.

  3. Set up the Primary Application owner and the Description, if any. Now, under Direct Configuration, fill the fields with the values that were noted prior.

    1. Account ID will be your account identifier

    2. Username will be the username of the user you created for the integration (BALKAN_ID)

    3. Role will be the name of the role which has been granted the MANAGE GRANTS permission and has been granted to the integration user.

    4. Warehouse will be the name of the warehouse that the integration user is configured to use for running discovery queries (for example, COMPUTE_WH

  4. Once you filled in the information, click Next to install the application. Your integration is now configured and you will see the status of the integration displayed alongside other integrations on the Integrations page. Integrations are synced daily. When data is available, the integration Status column will read Connected and the integration Message will read Data available.

Snowflake Public Key

Open

Last updated

Was this helpful?