Manage Snowflake Data Sources
This section describes ALTR’s capabilities for managing Snowflake data sources. ALTR must be connected to a data source in order to enforce data access governance and advanced data protection on sensitive data.
ALTR’s Service User and Role
Section titled “ALTR’s Service User and Role”When an ALTR account is created by Snowflake Partner Connect, Snowflake automatically creates the PC_ALTR_USER, PC_ALTR_ROLE, and PC_ALTR_WAREHOUSE objects and shares their information with ALTR. During onboarding, ALTR users privilege PC_ALTR_ROLE with the necessary grants for the service user to provide ALTR with access to the data sources.
If an ALTR account is not created by Snowflake Partner Connect or if for some reason a customer wishes not to use PC_ALTR_USER, the service user, role, and warehouse must be manually created in Snowflake. The service user must be specified when connecting Snowflake data sources to ALTR. When creating a custom service user, make sure that it has the appropriate Snowflake privileges. Refer to Required Snowflake Objects for more information.
Update Snowflake Service User Password
Section titled “Update Snowflake Service User Password”If you change the password for your service user, ALTR will be unable to connect to Snowflake. Although existing data access governance and security policies will continue to function, ALTR will be unable to define new policies and may not be able to generate accurate query audit logs. Do not change the service user password without updating it in ALTR.
Connect Snowflake Data Sources
Section titled “Connect Snowflake Data Sources”In order to connect a data source to ALTR, you must have access to a service user that has the appropriate privileges to access the database and enforce security policies. ALTR strongly recommends running the stored procedure to update the service user’s grants before connecting a new data source.
Before you can connect tags and columns to ALTR so policy can be applied, connect your data source.
To connect a Snowflake data source:
- Select Data Configuration > Data Sources in the navigation menu.
- Click Add Data Source.
- For the Snowflake connection type, click Select.
- Enter a Display Name. This is a user-friendly name to identify the data source.
- Select a Service User. If your ALTR account was created from Snowflake Partner Connect, select PC_ALTR_USER.
- Enter your Database Name exactly as it appears in Snowflake.
- (Optional) Click Advanced Settings to set advanced settings for this data source. ALTR does not recommend users change any of these settings without consulting ALTR Support.
- Max Data Connection — This field is not used. The default value is 5.
- Warehouse — If present, ALTR will attempt to use this warehouse when connecting to Snowflake. If this value is not supplied, ALTR will use the Service User’s default warehouse.
- Role — This is the Snowflake role. If present, ALTR will attempt to use this role when connecting to Snowflake. If this value is not supplied, ALTR will use the Service User’s default role.
- Click Next.
- Click Connect Data Source.
Check Snowflake Connections
Section titled “Check Snowflake Connections”Check the data source connection if you suspect there’s an issue with the connection, such as if you received errors or the data source has changed.
To check the data source connection:
- Select Data Configuration > Data Sources in the navigation menu.
- Click the data source that you want to test the connection.
- Click the Connection Details tab.
- Click Check Connection.
Remove Snowflake Data Sources
Section titled “Remove Snowflake Data Sources”Remove a Snowflake data source from ALTR if your service user is having problems or some other issue has occurred with the data source.
To remove a data source:
- Select Data Configuration > Data Sources in the navigation menu.
- Select the data source you wish to disconnect.
- Click Remove Data Source. The process to remove a data source can take up to several minutes to complete.
Force Remove Data Source
Section titled “Force Remove Data Source”Force remove a data source if you are unable to remove a data source as expected. This action ignores any errors encountered during the removal process. Use great caution with this feature because it cannot be undone.
To force remove a data source:
- Ensure all columns have been disconnected from ALTR.
- Ensure there are no active row policies on the data source.
- Select the data source you wish to remove.
- Click Remove Data Source.
- Click the Trouble Removing? link; a modal displays to confirm.
- Click Force Remove Data Source button; a modal displays to confirm.
- Click Yes, Force Remove Data Source.
- Review your source system and clear out any remnants, which could limit storage or pose security risks from ongoing API call requests.