Whitelist py4j Security Manager via S3 or DBFS in Databricks FGAC¶
To uphold security measures, certain Python methods are blacklisted by Databricks. This ensures that unauthorized python libraries can't bypass the cluster security and access the underlying IAM role of the compute nodes. However, if you wish to access these classes or methods, you may add them to a whitelisting file.
Whitelisting alters Databricks' default security. Ensure this is aligned with your security policies.
-
Create the
whitelisting.txtFile:-
This file should contain a list of packages, class constructors, or methods that you intend to whitelist.
-
Example:
Python
-
-
Upload the
whitelisting.txtFile:-
To DBFS, run the following command:
Text Only -
To S3, use the S3 console to upload the file to the desired location.
-
-
Update Databricks Spark Configuration:
-
In Databricks, navigate to the Spark Configuration and specify the location of the whitelisting file:
-
For DBFS:
Text Only -
For S3:
Text Only
-
-
Restart Your Databricks Cluster:
- After making these changes, please restart your Databricks cluster for the new whitelist to take effect.
Upload the whitelist file to DBFS or S3 as described in the other tab. Instead of naming it in the cluster's Spark config, add the property to the connector under Custom Properties, without the spark.hadoop. prefix. See Set a plugin property.
| Property | Value |
|---|---|
privacera.whitelist | dbfs:/privacera/whitelist.txt or s3://<bucket-name>/whitelist.txt |
- Prev topic: Advanced Configuration