
Snowflake
Outline
Introduction
This document provides the step-by-step procedure to configure Snowflake in SAFE.
SAFE integrates with Snowflake, and fetches the security misconfiguration of the Sentry account in SAFE.
Prerequisites
-
Access required in SAFE:
- SAFE Admin Access
-
Access required in Snowflake:
- Snowflake Admin Account
-
Required User Inputs:
- API Instance URL
- Client ID
- Client Secret
- Refresh Token
- Asset Name in SAFE (optional)
-
Scope:
- Manage Grants
- Import Share
Generate Connection Details
-
How to generate Client ID and Client Secret:
- Login to the Snowflake dashboard as an Admin.
-
Click on the Settings option from the left panel.
-
From the Develop drop-down, click the Build App option, available at the top-right of the screen.
-
-
Click the Server-to-Server OAuth App type.
-
-
Enter the name of your app. For example, SAFE Integration.
-
- Click Create. The system creates the App.
- Go to the App details page and click the App credentials option.
- Here, the system displays the Account ID, Client ID, and Client Secret.
-
Copy and save these credentials to use while configuring Zoom in SAFE.
-
-
In the API Scopes section, select the permissions:
- read:all or read:resources
- create:reports
- update:reports
- Click Add Service Account to generate and display the Client ID and Client Secret. Copy and save the values as these will no longer be visible after you leave the page.
-
-
How to get a Site ID:
- Run the following curl command to get the site-id.
- Copy and save the site-id to be used for onboarding Tableau in SAFE:
- Replace the personalAccessTokenName and personAccessTokenSecret using the above captured Token Name and Token Secret.
- Log in to your Tableau account as Admin.
-
In the exhibit provided, find the contentUrl highlighted. Copy and save this contentUrl to use it while generating site-id.
-
In the exhibit provided, find the URL highlighted. Copy and save this URL to use it while generating site-id.
-
-
- Use the above captured contentUrl to generate the site-id in below curl request.
curl --location 'https://tableau-server-name.online.tableau.com/api/3.21/auth/signin' \
--header 'Accept: application/json' \
--header 'Content-Type: application/xml' \
--data '<tsRequest> <credentials personalAccessTokenName="<PAT name>" personalAccessTokenSecret="<PAT secret>"> <site contentUrl="<content_url>"/> </credentials> </tsRequest>'
-
The system displays the Site ID. Copy and save the Site ID to use it while configuring Tableau in SAFE.
Configure Snowflake in SAFE
- Log in to your SAFE account as Admin.
- Click on the Integrations option from the left navigation.
-
Scroll to find the Snowflake integration card or search for Snowflake in the search bar.
- Hover over the Snowflake integration card and click on the Configure button.
-
Enter the following configuration values:
- API Instance URL
- Client ID
- Client Secret
- Refresh Token
- Asset Name in SAFE (optional): Provide a unique identifier which can uniquely identify the asset.
- Enter the Auto Sync Frequency.
- Click on the Test Connection button.
-
Once the connection is successful, click on the Save button.
-
Once the configuration is saved successfully, click on the Sync Now button to trigger an on-demand sync.
- Upon a successful sync, the system pulls the Snowflake assets and their findings into SAFE. You can track the status of the sync in the History table.
View Results
Navigate to the integration dashboard parameters view to inspect ingested telemetry:
-
Finding View: This tab displays all the findings details pulled from Snowflake.
-
Asset View: This tab displays all the assets pulled from Snowflake.
To check sync status and errors for this integration, see Integration History.
Did this article help?
Let us know by leaving a star rating at the top of this article.
