Creating a metadata access policy

Create a Ranger policy in the awc_udf service to let users and groups read assets or change their metadata, such as classifications, glossary terms, and domains.

You are a Ranger administrator, or you have delegated administration on the resources in the awc_udf service.

In awc_udf, a request is denied unless a policy allows it. Create policies that match how your organization manages metadata, for example, one policy that lets everyone read assets, and another that lets data stewards change classifications and glossary terms.

Create a policy, as described in this task, when you limit access to specific asset types or paths. To grant a permission on all assets, Cloudera recommends that you add a rule to the matching default policy instead, such as all - entity-type, entity-path or all - entity-type, entity-path, classification. Add the rule in a separate row and do not select the Delegate Admin checkbox.

For the list of default policies, see Default Ranger policies for Cloudera Unified Data Fabric.

  1. In the Ranger Admin web UI, click Resource Policies, and then click awc_udf under Cloudera Unified Data Fabric.
  2. Click Add New Policy.
    The Create Policy page is displayed.
  3. Under Policy Details, enter a Policy Name, for example, classify - data stewards.
    Optionally, add a Policy Label and a Description. Leave the policy Enabled, and leave Audit Logging set to Yes.
    To allow this policy to take precedence over other policies for the same resources, switch Normal to Override.
  4. Under Resources, select the resources that the policy applies to.
    • In Entity Type, select an asset type, such as hive:table, or * for all types.
    • In Entity Path, select the path of the assets, such as hms:prod:sales:* for all tables in the sales database of the prod data source, or * for all assets.
    • In the list below Entity Path, select the kind of metadata that the policy controls, and then select the values, or * for all values:
      • Extension Type for extensions
      • Classification Type for classifications
      • Domain URN for domains
      • Glossary Term URN for glossary terms
      • Relationship Type for relationships
      • None for a policy on the assets themselves, for example to grant read access
  5. Under Allow Rules, select the users, groups, or roles in Select Users, Select Groups, or Select Roles.
  6. In the Permissions column, click Add Permissions, select the permissions to grant in the Add/Edit Permissions dialog, and then click the check mark button.

    The dialog lists the permissions that apply to the resources that you selected. For example, with None selected, select Read Entity to let users view the assets. For Classification Type, select Add Classification and Remove Classification to let data stewards classify assets. To grant every permission in the list, select Select All.

    For the list of available access types, see Ranger services and resources for Cloudera Unified Data Fabric.

    To allow the users in a rule manage the policies for these resources, select Delegate Admin in that rule. To add another set of users with different permissions, click below the table. To exclude specific users from the policy, add them under Exclude from Allow Rules.

  7. Click Save.

After the services refresh their policies, the policy applies to requests from the Data 360 page, the REST API, and the Maui AI agent.