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.txt
File:-
This file should contain a list of packages, class constructors, or methods that you intend to whitelist.
-
Example:
Python
-
-
Upload the
whitelisting.txt
File:-
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.
- Prev topic: Advanced Configuration