Policy management and audit with Ranger

Apache Ranger, which is deployed with every Cloudera Unified Data Fabric instance, defines who can access metadata and data across the connected engines, and records access decisions for audit.

Cloudera Unified Data Fabric uses Ranger as its central policy service. A policy states which users, groups, or roles can perform which actions on which resources. Each service that Ranger protects checks every request against the policies and allows or denies it. Ranger also records the access decisions so that you can audit them.

Ranger components in a deployment

The following Ranger components are deployed with Cloudera Unified Data Fabric:

  • Ranger Admin, the web UI and REST API where you create and manage policies, users, groups, and roles, and view audits.
  • Ranger Usersync, which synchronizes users and groups from the platform directory into Ranger.
  • Ranger Remote Authorization Service (RAZ), which authorizes requests to object storage, such as Amazon S3, before they are signed.
  • Ranger Policy Decision Point (PDP), a REST service that returns allow or deny decisions to callers that do not run a Ranger plugin, such as the metadata access path used by the Maui AI chat.
  • The Ranger audit service, which collects access audits from the plugins and stores them for viewing in Ranger Admin.

What Ranger protects

Ranger policies apply at two levels:

  • Metadata in the catalog: The awc_udf service controls who can search the catalog, read assets, and change their metadata, such as classifications, glossary terms, domains, and relationships. The same policies apply to requests from the Data 360 page, the REST API, and Maui.
  • Data in the engines: Engines that are deployed with Cloudera Unified Data Fabric, such as Cloudera Harmony Catalog, Trino, and Kafka, run Ranger plugins and enforce the policies of their own Ranger services when users query or change data.

Metadata access and data access are separate. A user who can find a table in the catalog still needs a data access policy in the engine to query the table.

Classifications can also drive catalog access. When you assign a classification to an asset, such as a table or a column, in Cloudera Unified Data Fabric, Ranger TagSync imports it as a tag in Ranger. A tag-based policy in the udf_tag service then applies to every asset with that classification, for example, to deny a group access to all assets classified as PII.

Ranger authorization for the catalog is enabled by default. Every request to the catalog, from the Data 360 page, the REST API, or Maui, is checked against the policies of the awc_udf service.

Administering policies

After you deploy Cloudera Unified Data Fabric, a Ranger administrator typically performs the following tasks:

  1. Opens Ranger Admin from Access Controls in the Cloudera Unified Data Fabric UI. For more information, see Accessing the Ranger Admin web UI.
  2. Secures Ranger: sets the Ranger administrators and changes the default admin password. For more information, see Securing Ranger after deployment.
  3. Reviews the Ranger services and default policies that the deployment created.
  4. Grants users and groups permission to search the catalog, and optionally restricts which assets they find.
  5. Creates metadata access policies for the users and groups that manage classifications, glossary terms, and other metadata.
  6. Optionally, creates tag-based policies that control access by classification.
  7. Reviews the access audits.