Skip to main content

Privacera Documentation

Table of Contents

Create Databricks policies on Privacera Platform

To create a Databricks policy in Privacera Portal, follow these steps:

  1. Login to Privacera Portal.

  2. On the Privacera home page, expand the Settings menu and click on Databricks Policies from left menu.

  3. Click the +Create Policy.

    1. Enter the Policy Name. (Mandatory)

    2. Select the Type, Users, Groups, IAM Role from the respective drop-down.

      Note

      You are allowed to select multiple Users and Groups.

    3. Enter the Additional JSON (If any). This will append with the existing JSON which will be fetched from back-end.

  4. Click Save.

    The policy is created successfully.

Important

By default, Admin groups will have permission to all the policies. If you haven't configured Databricks properties in Privacera Portal properties file then you will get the below error.

  • The Token should be generated from a user who is an Admin.

  • Additional JSON that can be used to create policy.

    {
        "autoscale.min_workers": {
                "type": "range",
                "minValue": 1,
                "hidden": false
            },
            "autoscale.max_workers": {
                "type": "range",
                "maxValue": 2
            },
            "cluster_name": {
                "type": "fixed",
                "value": "secured"
            },
            "spark_version": {
                "type": "regex",
                "pattern": "5.5.x-scala2.11"
            },
            "spark_conf.spark.hadoop.hadoop.security.credential.provider.path": {
                "type": "fixed",
                "value": "jceks://dbfs@/${JCEKS_FILE_PATH}",
                "hidden": true
            },
            "spark_conf.spark.databricks.delta.formatCheck.enabled": {
                "type": "fixed",
                "value": "false",
                "hidden": true
            },
            "spark_conf.spark.databricks.delta.preview.enabled": {
                "type": "fixed",
                "value": "true",
                "hidden": true
            },
            "node_type_id": {
                "type": "regex",
                "pattern": "m4.*"
            },
            "autotermination_minutes": {
                "type": "unlimited",
                "defaultValue": 50
            }
        }
                            

To know more about Databricks Policy, refer to Manage Databricks policies on Privacera Platform.