Overview
Support for Privacera TagSync in the D2P environment allows TagSync to authenticate to Ranger through Privacera Manager configuration, so tag synchronization from Privacera to Ranger works correctly in D2P setups.
- Introduced support for Privacera TagSync in the D2P environment.
- Enables successful synchronization of tags from Privacera to Ranger in D2P configurations.
- TagSync can authenticate with Ranger using credentials supplied in Privacera Manager.
Why this configuration is required
In some D2P environments, the Ranger user name for TagSync could be present in properties, but the password was not exposed in Privacera Manager or in site.xml. Without the password, Ranger TagSync cannot connect to Ranger, and authentication errors may appear in the TagSync logs. Setting TAGSYNC_TAG_DEST_RANGER_USERNAME and TAGSYNC_TAG_DEST_RANGER_PASSWORD in vars.ranger-tagsync.yml makes the password available to TagSync the same way other PM-driven settings are applied.
- SSH into the instance where Privacera Manager is installed.
- Go to the
privacera-manager directory:
| Bash |
|---|
| cd ~/privacera/privacera-manager/
|
- Copy the sample variables file if you have not already (the
-n flag avoids overwriting an existing file):
| Bash |
|---|
| cp -n config/sample-vars/vars.ranger-tagsync.yml config/custom-vars/
|
- Open the custom file for editing:
| Bash |
|---|
| vi config/custom-vars/vars.ranger-tagsync.yml
|
- Set the following properties:
| Property | Description |
TAGSYNC_TAG_DEST_RANGER_USERNAME | User name of the account created in Privacera Cloud (PCloud) for TagSync to use when connecting to Ranger. |
TAGSYNC_TAG_DEST_RANGER_PASSWORD | Password that was set for that PCloud user when the user was created. |
| YAML |
|---|
| TAGSYNC_TAG_DEST_RANGER_USERNAME: "<your_pcloud_ranger_user>"
TAGSYNC_TAG_DEST_RANGER_PASSWORD: "<password_set_when_creating_pcloud_user>"
|
- Once the properties are configured, update your Privacera Manager platform instance by following the
| Bash |
|---|
| cd ~/privacera/privacera-manager
./privacera-manager.sh setup
./pm_with_helm.sh upgrade
|
Tip
Use the same PCloud user and password you rely on for Ranger in your D2P setup; the values must match the credentials expected by Ranger for TagSync.