Setup Tag Sync for Collibra¶
This section outlines the steps to set up the Collibra connector in Privacera. Ensure that all prerequisites are met before proceeding.
Best practice
Start with a single connection and a test catalog, confirm that tags appear in the expected Ranger tag service, and then expand the mappings to your full set of connections and engines.
Create an Instance of the Collibra Connector¶
-
SSH to the instance where Privacera Manager is installed.
-
Run the following command to navigate to the
/configdirectory.Bash -
Create a new directory for the Collibra connector configuration.
Note
Replace
instance1with a unique name for your connector (use only alphanumeric characters and hyphens).Bash -
Copy the sample connector configuration file to your custom directory:
Bash -
Open the
.ymlfile for editing:Bash
Configure Connection Details¶
Update the following properties in your vars.connector.collibra.yml file:
- Specify the Collibra URL, for example
https://your-org.collibra.com. - Provide the Collibra username and password used for HTTP Basic authentication. A read-only account is sufficient.
- Enable the connector.
Replace the below example values with your actual values.
Configure Tag Routing¶
Tag routing is driven by two mandatory mapping properties. They tell the connector which engine each Collibra connection belongs to, and which Ranger tag service each engine should be pushed to.
connection.to.service.mapping— maps each Collibra connection name to its default engine. Format:connectionName:engine, comma-separated for multiple connections.ranger.service.mapping— maps each engine to its Ranger tag service. Format:engine:rangerService, comma-separated for multiple engines.
Both mappings are mandatory
Tag sync does not run unless both mapping properties are set. Connection names are matched case-sensitively; engine keys are lowercased.
| YAML | |
|---|---|
Example routing:
- Connection
sbtconnectionhas default enginetrino. - A catalog named
hiveunder it is auto-routed to the Hive engine →privacera_hive. - A catalog named
iceberguses the connection default → Trino →privacera_trino.
So one Collibra connection can produce tags for two different Ranger tag services in a single run.
Apply the Configuration¶
After completing the configuration, start the connector by running the following instructions:
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.Once the connector starts, it runs an initial tag sync (when tag.sync.at.restart.enable is true) and then repeats on the configured interval. To confirm tags are flowing, check the Troubleshooting page for the log lines to look for, and verify the tags appear in the target Ranger tag service.
Next: enforce the tags
After the tags are synced to Ranger, create tag-based policies in Privacera and ensure the corresponding access connectors (Hive, Trino, Snowflake, etc.) are configured to enforce them.
- Prev topic: Prerequisites
- Next topic: Advanced Configuration