Resource Federation synchronization between Unity Catalog and AWS Lakeformation¶
Unity Catalog resources can be federated in AWS Lakeformation. These resources need additional implicit read permissions on IRC Service Principal only then these resources gets accessible and synchronized on the AWS Lakeformation side.
Feature overview¶
To enable the feature, set CONNECTOR_DATABRICKS_UNITY_CATALOG_ENABLE_GRANT_IRC_DSP_PRINCIPAL_ON_NEW_TABLE as "true". Once enabled, the UC connector will grant implicit read permissions on UC native event based synced tables to IRC Service Principal.
Whether a UC table is treated as a native table is determined by CONNECTOR_DATABRICKS_UNITY_CATALOG_IRC_DSP_NATIVE_TABLE_EVENT_SOURCE. For UC tables that are synced by on‑demand event, the event source must use the same label as this property.
Once implicit read permission is granted to the IRC Service Principal, an on‑demand event is sent targeting the Lakeformation connector and the resource is then synchronized in the Lakeformation connector.
Additionally, to synchronize federated tables during a scheduled sync or full sync, implicit permissions must be granted on those tables.
To enable this behavior, set the CONNECTOR_DATABRICKS_UNITY_CATALOG_ENABLE_LOAD_FOREIGN_CATALOG_TABLE_TYPES configuration property to True. When this property is enabled, the connector loads table types from the information schema during scheduled sync. This allows implicit permissions to be granted on federated tables that are discovered during the scheduled sync.
Configuration Properties¶
Add IRC DSP principle in ignored user list property to avoid permission collision with implicit permissions for this IRC service principle.
| Property | Description | Default Value |
|---|---|---|
| CONNECTOR_DATABRICKS_UNITY_CATALOG_ENABLE_GRANT_IRC_DSP_PRINCIPAL_ON_NEW_TABLE | Enable implicit IRC DSP permissions on newly added native UC tables (SELECT, USE_CATALOG, USE_SCHEMA). | false |
| CONNECTOR_DATABRICKS_UNITY_CATALOG_IRC_DSP_PRINCIPAL_NAME | IRC DSP principal identifier (app ID) for implicit grants. | "" |
| CONNECTOR_DATABRICKS_UNITY_CATALOG_IRC_DSP_NATIVE_TABLE_EVENT_SOURCE | Event source label for native‑table grants. | "UC_APP" |
| CONNECTOR_DATABRICKS_UNITY_CATALOG_ON_DEMAND_FEDERATION_AWS_LAKEFORMATION_APP_INSTANCE_ID | Target Lakeformation app instance ID for on‑demand federation Resource Sync events. | "" |
| CONNECTOR_DATABRICKS_UNITY_CATALOG_ON_DEMAND_FEDERATION_AWS_LAKEFORMATION_CATALOG | Target Lakeformation catalog used in on‑demand federation events. | "" |
| CONNECTOR_DATABRICKS_UNITY_CATALOG_ON_DEMAND_FEDERATION_AWS_LAKEFORMATION_REGION | Target AWS region for Lakeformation on‑demand federation events. | "" |
| CONNECTOR_DATABRICKS_UNITY_CATALOG_ON_DEMAND_FEDERATED_UC_APP_INSTANCE_ID | Optional property. UC app instance ID to include as source in Lakeformation on‑demand federation events. | "" |
| CONNECTOR_DATABRICKS_UNITY_CATALOG_ON_DEMAND_FEDERATION_OPS_SERVER_CALL_BATCH_SIZE | Batch size for ops‑server calls when sending on‑demand federation events targeting Lakeformation. | 100 |
| CONNECTOR_DATABRICKS_UNITY_CATALOG_ENABLE_LOAD_FOREIGN_CATALOG_TABLE_TYPES | Enables federation synchronization for tables loaded via scheduled sync | false |
Setup¶
Warning
Replace the example values shown below with values appropriate for your environment.
-
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 -> ADVANCED tab.
-
Under Add New Custom Properties, add the following properties:
-
Click SAVE to apply the changes.
To enable federated resource synchronization between Unity Catalog and AWS Lakeformation, update the following properties in Privacera Manager:
-
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 enable federated resource synchronization between Unity Catalog and AWS Lakeformation:
-
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.
- Prev topic: Advanced Configuration