Setup Access Management for Databricks Unity Catalog¶
This section outlines the steps to set up the Databricks Unity Catalog connector in Privacera. Ensure that all prerequisites are met before proceeding.
Best Practice for enabling the connector
This connector will manage the access control policies for the Databricks Unity Catalog. If there are existing policies in Unity Catalog, then it they will be overwritten by the policies from Privacera. It is strongly recommended that to test managing few resources initially before enabling the connector for all resources. You could create a test catalog in Databricks Unity Catalog and manage the access control policies for that catalog and after you are comfortable you can enable the connector for all catalogs.
Create Instance of Databricks Unity Catalog¶
-
SSH to the instance where Privacera Manager is installed.
-
Run the following command to navigate to the
/config
directory.Bash -
Create a new directory for the Databricks Unity Catalog connector configuration.
Note
In the example below,
instance1
is the name of the connector instance. You can change this name to uniquely identify your installed connector configuration. The connector instance name should consist of only hyphens and alphanumeric characters.Bash -
Copy the sample connector configuration file to your custom directory:
Bash -
Run the following command to open the
.yml
file to be edited:Bash
-
In PrivaceraCloud, navigate to Settings -> Applications.
-
On the Applications screen, select Databricks Unity Catalog application under Available connections.
-
Enter the application Name and Description, then click Save. Name could be any name of your choice. E.g.
Databricks Unity Catalog Connector for account 123456
. -
Open the Databricks Unity Catalog application.
-
Enable the Access Management option with toggle button.
Connection Details¶
- Specify the Databricks URL. For example,
https://dev-environment.cloud.databricks.com
. - Provide the Databricks personal access token used to connect to the Databricks API.
- Account Admin Privileges for Personal Access Token: Set this to
true
if the personal access token has account admin privileges. - Specify the JDBC URL for Databricks. This value is required for Unity Catalog’s native masking, row filtering, and access auditing features.
Replace the below example values with your actual values.
OAuth Authentication
If you are using OAuth authentication for Databricks, then for the token, you need to follow the instructions from the OAuth Token Configuration section in the Advanced Configuration.
Enter these fields under the BASIC tab:
- Databricks Workspace Base URL:
https://dev-environment.cloud.databricks.com
- Databricks personal access token:
<databricks-access-token>
- Enable if the personal access token has account admin privileges:
true
- Databricks JDBC url:
<jdbc-url>
Managed Catalogs¶
This property is used to set comma-separated catalog names for which access control policies will be applied. Wildcards are supported.
Example: test_catalog1,test_catalog2,sales_*
.
Warning
- Values are case-sensitive.
- Replace the below example value with your actual value.
It is recommended to first test the connector with a test catalog before enabling it for all catalogs.
YAML | |
---|---|
Under the BASIC tab, enter the values for:
- Catalogs to set access control policies:
test_catalog
Apply the Configuration¶
After all the changes are done you can 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 - Post-installation step which generates Plugin tar ball, updates Route 53 DNS and so on.-
Once all the required fields are filled, click Save.
-
The configured Databricks Unity Catalog connector appears under Connected Applications.
-
Once saved and enabled, the Databricks Unity Catalog connector will start. Then you can hover on the VIEW LOGS button to check the status, either Running or Stopped.
-
Perform the following steps to restart the Databricks Unity Catalog connector application:
-
Go to Settings → Applications → select the Databricks Unity Catalog connector application.
-
Edit the application by disabling the Access Management option with toggle button and then Save it.
-
Open the same application again and then enable the Access Management option with toggle button and then Save it.
-
- Prev topic: Prerequisites
- Next topic: Advanced Configuration