Selective Resource Type Loading¶
Runtime tab
The Runtime tab describes the Omni Connector on a Runtime Plane, which is a separate connector from PolicySync. Sections without a Runtime tab apply to PolicySync only.
This configuration allows you to selectively enable or disable loading of specific resource types when your access token doesn't have sufficient permissions to access certain resources in Databricks Unity Catalog. This prevents UNAUTHORIZED_ACCESS or PERMISSION_DENIED errors during resource and permission loading.
Configuration Parameters¶
| Property | Default | Description |
|---|---|---|
CONNECTOR_DATABRICKS_UNITY_CATALOG_LOAD_METASTORE_ENABLED | true | Enable/disable loading of metastore resources |
CONNECTOR_DATABRICKS_UNITY_CATALOG_LOAD_CONNECTION_ENABLED | true | Enable/disable loading of connection resources |
CONNECTOR_DATABRICKS_UNITY_CATALOG_LOAD_SERVICE_CREDENTIAL_ENABLED | true | Enable/disable loading of service credential resources |
CONNECTOR_DATABRICKS_UNITY_CATALOG_LOAD_STORAGE_CREDENTIAL_ENABLED | true | Enable/disable loading of storage credential resources |
CONNECTOR_DATABRICKS_UNITY_CATALOG_LOAD_EXTERNAL_LOCATION_ENABLED | true | Enable/disable loading of external location resources |
CONNECTOR_DATABRICKS_UNITY_CATALOG_LOAD_VOLUME_ENABLED | false | Enable/disable loading of volume resources |
Note
If metastore loading is enabled, then volumes will be loaded by default.
Setup¶
-
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 the ADVANCED tab, add the following properties under Add New Custom Properties to disable specific resource types:
-
Click SAVE to apply the changes.
-
SSH to the instance where Privacera Manager is installed.
-
Run the following command to open the
.ymlfile to be edited.If you have multiple connectors, then replace
instance1with the appropriate connector instance name.Bash -
Set the following properties to disable loading of specific resource types:
-
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.
-
In PrivaceraCloud portal, navigate to Settings -> Applications.
-
On the Connected Applications screen, select Databricks Unity Catalog.
-
Click the pen icon or the Account Name to modify the settings.
-
On the Edit Application screen, go to Access Management -> ADVANCED tab.
-
Under Add New Custom Properties, add the following properties to disable specific resource types:
-
Click SAVE to apply the changes.
In the Omni Connector, the resource types that are loaded are controlled by Resource types governed. Only the listed types, and the types needed to reach them, are scanned and have their permissions read. Types that you leave out are not loaded, so they cannot cause UNAUTHORIZED_ACCESS or PERMISSION_DENIED errors.
-
In the portal, navigate to Settings → Runtime Plane and open your Runtime Plane.
-
Open the Connectors tab and open your Databricks Unity Catalog connector.
-
Go to ACCESS CONTROL CONFIGS and expand Managed Resources.
-
Under Resource types governed, add only the types that your credential can access. Leave it empty to use the defaults:
SCHEMA,TABLEandVIEW. For example, to also load volumes and functions:Text Only -
Select Save.
| Resource type | Loaded by default |
|---|---|
SCHEMA, TABLE, VIEW | Yes |
CATALOG, MATERIALIZED_VIEW, VOLUME, FUNCTION, MODEL (listed, not scanned yet) | No |
EXTERNAL_LOCATION, STORAGE_CREDENTIAL, CONNECTION, SERVICE_CREDENTIAL, EXTERNAL_METADATA (listed, not scanned yet), CLEAN_ROOM (listed, not scanned yet) | No |
For more details, see Managed resources.
- Prev topic: Advanced Configuration