On-Demand Sync for PolicySync Connectors¶
By default, PolicySync connectors synchronizes changes to metadata in the data sources at regular intervals. However, if the synchronization interval is not sufficient for your use case, or if you want to avoid incurring compute costs on your data sources, you can configure the connectors to synchronize changes on-demand.
The following events are supported for On-Demand Sync:
- Resources
- Service principals
- Permissions
Reference Clients¶
When Privacera Ops Server with On-Demand Sync is enabled, clients can be set up to send change events to the Ops Server. Below are the reference clients that can be used to send events to the Ops Server:
Supported Connectors¶
Connector Name | Supported |
---|---|
Lakeformation (Pull Mode) | |
Lakeformation (Push Mode) | |
Databricks SQL Analytics | |
Redshift |
Prerequisites¶
Before configuring On-Demand Sync for PolicySync connectors, ensure the following:
- Privacera Basic Installation is completed.
- Ops Server is set up. Refer to the setup guide for detailed steps.
Steps to Configure On-Demand Sync¶
-
SSH into the Privacera instance.
-
Navigate to the
privacera-manager
directory:Bash -
Copy the sample variable files:
Bash -
Open the
vars.ops-bridge.yaml
file for editing:Bash -
Configure the Ops Bridge settings as explained below.
Configuration Properties¶
OPS_BRIDGE_ENABLE
¶
- Description: Enables the Ops Bridge configuration. Set this to
"true"
to activate Ops Bridge. - Default Value:
"false"
- Example:
YAML
OPS_BRIDGE_CONNECTOR_PROPERTIES
¶
- Description: This property holds a list of sources and their associated connectors. Each source can have multiple connectors, and each connector can have multiple properties. These properties define how each connector behaves and integrates with the system.
- Example:
OPS_BRIDGE_SOURCE
¶
- Description: Represents the name of the source (e.g., REST API, MSK, etc.). Replace
<PLEASE_CHANGE>
with the actual source name.
The source name can only contain alphabetic characters (A-Z, a-z), underscores (_), and hyphens (-). Spaces and special characters are not allowed.
- Example:
YAML
CONNECTORS
¶
- Description: A list of connectors associated with the source. Each connector is unique and follows a naming pattern for easy identification. Multiple connectors can be defined under the
CONNECTORS
section.
CONNECTOR_NAME
:¶
- A unique name, formed using the pattern:
policysync_<CONNECTOR_NAME>_<CONNECTOR_ENV>
<CONNECTOR_NAME>
: The name of the connector. Supported values includes :databricks-sql-analytics
,lakeformation
,redshift
.
<CONNECTOR_ENV>
: The environment (e.g.,dev
,prod
).- Example
- If you have configured the
databricks_sql_analytics
connector in theprod
environment, the directory structure will be as follows: Wheredatabricks_sql_analytics
represents the connector name (<CONNECTOR_NAME>
) andprod
represents the environment (<CONNECTOR_ENV>
).Bash - Based on the above configuration, the connector name will be:
Bash
- If you have configured the
APP_SUB_TYPE
¶
- Description: The type of the application for the connector.
- Supported values include:
databricks_sql_analytics
,lakeformation
,redshift
.
- Example:
YAML
PARENT_RESOURCES
- (Optional)¶
- Description: A set of key-value pairs defining the parent resources associated with the connector, such as catalog IDs, regions, etc. Replace
<PLEASE_CHANGE>
with actual resource details.
Required and supported only for single-region Lake Formation connectors.
- Example:
Adding Multiple Connectors¶
You can define multiple connectors under the CONNECTORS
section. Here’s an example of how to configure multiple connectors for different environments:
Enable On-demand Processing in Connector¶
-
Edit the configuration file for the policysync connector:
- Example: For Databricks SQL Analytics connector, edit the below file. Where databricks-sql-analytics is the connector name (
<CONNECTOR_NAME>
) and prod is the environment (<CONNECTOR_ENV>
).Bash
- Example: For Databricks SQL Analytics connector, edit the below file. Where databricks-sql-analytics is the connector name (
-
Add the following property to enable on-demand processing:
YAML
Setup Privacera Manager and Run Helm Upgrade¶
-
Once the properties have been configured, execute the following commands to update your Privacera Manager platform instance:
a. Generate the helm charts.
b. Apply the helm charts.Bash
On-Demand Sync Task of specific connector¶
- Login in Privacera Portal.
- Navigate to Resource Policies.
- Locate the configured connector repository with the icon.
- Click to view the task list.
- Prev topic: Advance Configuration