Control access to DLF data

Updated at:

DataWorks provides visual features for requesting and approving permissions for Data Lake Formation (DLF) and DLF-Legacy, helping you centrally manage data lake permissions. Use My Requests to view permission requests, and My Approval Tasks to approve requests and view approval records. This topic describes how to control access to DLF data.

Prerequisites

  • DLF is configured as the metadata service for your compute engine.

    For example, configure DLF as the metadata service for EMR and enable the DLF-Auth component to manage DLF permissions. For more information, see DLF-Auth.

  • You are familiar with DLF data permissions. For more information, see Permission overview.

Background information

The first time you use DataWorks to manage Data Lake Formation (DLF) permissions, you are prompted to authorize DataWorks to access DLF. During authorization, the system automatically creates the service-linked role AliyunServiceRoleForDataWorksAccessDLF. For information about AliyunServiceRoleForDataWorksAccessDLF policies, see: Service-linked role for accessing DLF.

DataWorks access control supports the following two DLF data source types:

  • Data Lake Formation (DLF): DLF 3.0, which provides more granular permission management and supports permission requests at the database, table, and column levels.

  • DLF-Legacy: The earlier version of DLF, which retains its original permission management model.

DLF 3.0 and DLF-Legacy differ as follows. Use the procedure for your version:

Item

Data Lake Formation (DLF 3.0)

DLF-Legacy

Request granularity

Database / Table / Column

Database / Table / Column

Column-level permissions

Column-level permission management is supported only for internal Paimon tables in DLF

Column requests support only the Select permission

Permission validity period

Permanent only (cannot be changed)

Custom validity periods; permissions are automatically revoked on expiration

Renewal

Not supported

Supported (approved requests can be renewed in My Requests before expiration)

Permission audit

Not supported (the Permission Audit tab currently supports only MaxCompute)

Not supported (the Permission Audit tab currently supports only MaxCompute)

DLF data access control workflow

DLF access control workflow

Role

Note

Permission requester

Use the Request permissions page to request table permissions. After submission, use the My Requests page to view requests submitted by the current Alibaba Cloud account.

Permission approver

Use the My Approval Tasks page to view table permission requests awaiting your approval. For processed requests, use the My Approval Tasks page to view tables for which the current Alibaba Cloud account has approved permissions.

Note

A RAM user must have the Admin (data lake administrator) or super_administrator (super administrator) role to approve permissions. For information about DLF role management, see Role management.

Permission auditor

The Permission Audit tab in DataWorks currently supports only MaxCompute. DLF and DLF-Legacy permissions cannot be audited or revoked from this tab.

Open Data Access Control

Log on to the DataWorks console, switch to the target region, and choose Data Governance > Security Center in the left-side navigation pane. On the page that appears, click Go to Security Center.

In the left-side navigation pane of Security Center, choose Data Platform Security > Data Access Control to open the Data Access Control page.

Request permissions

  1. On the Data Access Control page, click the Permission Application tab. On the Application Content section, select Engine Type.

    The following DLF data source types are available:

    • Data Lake Formation (DLF): DLF 3.0.

    • DLF-Legacy: The earlier version of DLF.

    Note

    The following procedure uses Data Lake Formation (DLF) as an example. The procedure for DLF-Legacy is similar. It provides three levels of authorization granularity: Field-level permissions, Table-level permissions, and Metabase-level permissions. Permission validity supports custom durations, and approved requests can be renewed. The remaining steps are the same as for DLF 3.0.

  2. Configure Granularity of authorization and Catalog, and select the objects for which you want to request permissions.

    The following three levels of authorization granularity are available:

    • Database-level permissions: Select the databases in the list, and select the required permissions in the Metabase permissions column.

      Available permissions include: Describe, Alter, Drop, CreateTable, CreateFunction, List. When you select a database, the Describe permission is selected by default and cannot be cleared.

    • Table-level permissions: In the Tables to Be Added section, select the target tables. Their details appear on the right. Select the required permissions in the corresponding permission columns.

      Available permissions include: Select, Update, Alter, Drop, and others.

    • Column-level permissions: In the Tables to Be Added section, select the target tables. The tables and their columns appear on the right. Click the expand icon next to a table name to display all its columns, and select the required column permissions in the Select column.

      Note

      Only internal Paimon tables in DLF support column-level permission management.

  3. Configure Application information.

    Parameter

    Description

    User

    Select the principal for whom you want to request permissions.

    • Current login account: Request permissions on the target tables for the Alibaba Cloud account currently logged on to the DataWorks workspace.

    • Apply on Behalf of Others: Request permissions on the target tables for another Alibaba Cloud account on behalf of the account currently logged on to the DataWorks workspace. If you select this option, configure Username.

    • DLF role: Request permissions for DLF roles. You can select multiple DLF roles from the drop-down list. This option is supported only for the Data Lake Formation (DLF) data source type.

    Application duration

    Select the validity period for the permissions.

    • If the data source type is Data Lake Formation (DLF), the only supported validity period is Permanent.

    • If the data source type is DLF-Legacy, you can specify a custom validity period. Expired permissions are automatically revoked.

    Reason for Application

    Enter the reason for requesting permissions on the target tables.

  4. Click Apply for Permissions to submit the request.

    On the Permission Application Records tab, view the approval details and records for the request.

Approve permissions

Note

A RAM user must have the Admin (data lake administrator) or super_administrator (super administrator) role to approve permissions.

  1. View requests awaiting approval.

    In the left-side navigation pane, choose Requests and Approvals > My Approval Tasks, and click the Data Access Control tab. Set the engine type to Data Lake Formation (DLF) or DLF-Legacy, and use the filters to view requests awaiting approval by the currently logged-on Alibaba Cloud account.

    Note

    Requests for multiple tables submitted together are automatically split into separate requests based on the table owners.

  2. View approval details.

    For the target request, in the Operation column, click Approval. In the Approval details dialog box, view the request's Application Details, Approval record and other details.

  3. Approve or reject a request.

    Review the request details and your current requirements to decide whether to approve it. Enter Approval Comments, and select Agree or Reject for the request.

    You can also select all requests on the My Approval Tasks page, click Batch Agree or Batch Reject, enter Approval Comments, and process the selected requests in a batch.

View permission requests and approval records

Note
  • DLF permission requests can be withdrawn only while they are Pending Approval. Renewal support depends on the version:Data Lake Formation (DLF 3.0) permissions are permanent and cannot be renewed; DLF-Legacy supports custom validity periods and renewal. Renew approved requests in Requests and Approvals > My Requests.

  • The former Permission Approval Records tab on the Data Access Control page has been removed. Its list has moved to the Requests and Approvals > My Approval Tasks page. The former tab displays only a migration notice. Use the following path to view approval records.

  • The Permission audit tab on the Data Access Control page currently supports only MaxCompute. DLF permissions cannot be audited or revoked from this tab. To govern access to DLF resources, use DLF's own permission management features.

  • View permission requests: In the left-side navigation pane, choose Requests and Approvals > My Requests, and click the Data Access Control tab. Filter by Approval status, Application Time, Data Source Type and other conditions to view requests associated with the currently logged-on Alibaba Cloud account.

    For a target request, in the Operation column, click View details, view its details. For requests whose Approval status is Approving, you can perform the Withdrawal operation.

  • View permission approval records: In the left-side navigation pane, choose Requests and Approvals > My Approval Tasks, and click the Data Access Control tab, and set the task status to All. Filter by Application account number, Approval Results and other conditions to view approval records for the currently logged-on Alibaba Cloud account.