Using a Databricks Service Principal as a User in Ranger Policies¶
This document explains how to use a databricks service principal as a user in ranger policies for the Databricks Unity Catalog Policysync connector.
Configuration Steps¶
Step 1: Create a Databricks Service Principal¶
Create a service principal in databricks and note its Service Principal ID.
Example:
| Text Only | |
|---|---|
This ID will be used as the username in ranger policies.
Step 2: Add Service Principal as a Privacera User¶
- Log in to the Privacera Portal
- Navigate to Users → Add User
- Configure the user as shown below: Add the following attribute:
Text Only - Save the user
Regex Configuration¶
-
Navigate to Settings → Applications in the Self-Managed Portal.
-
From the list of Connected Applications, select Databricks Unity Catalog.
-
Click on the application name or the icon to edit. Then, go to the Access Management tab.
-
Under ADVANCED tab, configure the following options:
-
To configure regex properties, scroll to the
Regex to find special characters in user namessection and Update the regex as following :This updated regex preserves the hyphen(Properties -) while still removing unsupported special characters.
-
-
Click SAVE to apply the changes.
-
SSH to the instance where Privacera Manager is installed.
-
Run the following command to navigate to the
.ymldirectory.Bash - Add or update the following regex configuration: This updated regex preserves the hyphen(-) while still removing unsupported special characters.
YAML -
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.
-
Navigate to Settings → Applications in the PrivaceraCloud.
-
From the list of Connected Applications, select Databricks Unity Catalog.
-
Click on the application name or the icon to edit. Then, go to the Access Management tab.
-
Under ADVANCED tab, configure the following options:
-
To configure regex properties, scroll to the
Regex to find special characters in user namessection and Update the regex as following :This updated regex preserves the hyphen(Properties -) while still removing unsupported special characters.
-
-
Click SAVE to apply the changes.
- Prev topic: Connector Guide