Manage Access Audits¶
Privacera supports access audits for the Snowflake connector, allowing you to fetch and manage access audit logs from Snowflake. This feature is valuable for tracking user access and ensuring compliance with data governance policies.
Configure¶
-
Navigate to Settings → Applications in the Self-Managed Portal.
-
From the list of Connected Applications, select Snowflake.
-
Click on the application name or the icon to edit. Then, go to the Access Management tab.
-
Under the BASIC tab, enable the following options to configure access audits:
- Enable access audits: Enable to fetch access audits from the Snowflake connector.
- Enable simple audits: Enables simple access audits queried on database.
- Enable advance audits: Enables advanced access audits queried on database.
-
Under ADVANCED tab, configure the following options:
- Enable column access exception: Enable to display an access denied exception when a user attempts to access specific columns in a table without the necessary permissions.
- Database name where masking function for column access control will be created: Specify the database where the masking function used for column-level access control will be created. This field is required when Enable column access exception is enabled.
-
Click SAVE to apply the changes.
-
SSH to the instance where Privacera Manager is installed.
-
Run the following command to open the
.ymlfile to be edited.If you have multiple connectors, then replace
instance1with the appropriate connector instance name.Bash -
Enable access audits by setting the following properties to
true: -
Add or update the following property to enable column access exception:
YAML -
(Optional) Configure audit sync interval settings:
The following properties are optional and control the frequency of audit data synchronization:
-
CONNECTOR_SNOWFLAKE_AUDIT_SYNC_INTERVAL: Specifies the interval (in seconds) between audit sync operations. Defaults to
14400seconds (4 hours). The default 4-hour audit sync interval is suitable for production environments. -
CONNECTOR_SNOWFLAKE_AUDIT_INITIAL_PULL_MINUTES: Specifies the initial time window (in minutes) for pulling historical audit data when the connector first starts. Defaults to
30minutes.
Production vs Testing
The default 4-hour audit sync interval is recommended for production environments. During testing, validation, or troubleshooting, you may temporarily reduce the audit sync interval to get faster access audit data.
Example configuration for validation use cases (not recommended for production):
-
-
Once the properties are configured, run the following commands to update your Privacera Manager platform instance:
Step 1 - Setup which generates the helm charts. This step usually takes few minutes.
Step 2 - Apply the Privacera Manager helm charts. Step 3 - (Optional) Post-installation step which generates Plugin tar ball, updates Route 53 DNS and so on. This step is not required if you are updating only connector properties.
-
In PrivaceraCloud portal, navigate to Settings -> Applications.
-
On the Connected Applications screen, select Snowflake.
-
Click on the icon or the Account Name to modify the settings.
-
On the Edit Application screen, go to Access Management.
-
Under the BASIC tab, enable the following options to configure access audits:
- Enable access audits: Enable to fetch access audits from the Snowflake connector.
- Enable simple audits: Enables simple access audits queried on database.
- Enable advance audits: Enables advanced access audits queried on database.
- Database name where masking function for column access control will be created: Specify the database where the masking function used for column-level access control will be created. This field is required when Enable column access exception is enabled.
-
Under ADVANCED tab, configure the following options:
- Enable column access exception: Enable to display an access denied exception when a user attempts to access specific columns in a table without the necessary permissions.
- Audit sync interval (optional): Specifies the interval (in seconds) between audit sync operations. Defaults to 14400 seconds (4 hours).
-
Audit initial pull window (optional): Specifies the initial time window (in minutes) for pulling historical audit data when access audits are first enabled. Defaults to 30 minutes.
-
To configure custom audit sync values, scroll to the Custom Properties section and add the following entries:
- In the Add New Custom Properties field, enter:
Testing and Validation Usage
The default audit sync interval is recommended for production environments. For testing, validation, or troubleshooting, the audit sync interval can be temporarily reduced to receive access audit data faster. Shorter intervals increase load on the Snowflake connector and should not be used in production.
-
Click SAVE to apply the changes.
- Prev topic: Advanced Configuration