Lindorm data access control
DataWorks enables data access control for the Lindorm wide column engine, including permission applications, approvals, and audits. This topic provides a complete example to guide you through the entire workflow from the perspectives of both administrators and developers.
Overview
DataWorks Security Center integrates with Apache Ranger to provide fine-grained, traceable data access control for the Lindorm wide column engine.
-
Key capability: Manage data access permissions for the Lindorm wide column engine at the table level.
-
Roles and responsibilities:
-
Administrator (DataWorks tenant administrator): Responsible for underlying technical configurations and permission approvals. This role centrally manages and audits data access permissions for all developers.
-
Developer (standard RAM user): Responsible for data usage. This role applies for required Lindorm data permissions in a self-service manner through DataWorks Security Center, without needing to handle the underlying implementation details.
-
-
Core value: Separates configuration from use. Administrators centrally manage data security, while developers apply for permissions on demand. This model significantly improves both data security and collaboration efficiency.
Workflow
The workflow is divided into two phases, "one-time setup" and "routine use", involving both administrator and developer roles.
Phase 1: One-time administrator setup
Before users can apply for permissions, an administrator must complete all prerequisite configurations.
Prerequisites
-
For Lindorm
-
Ensure that a Lindorm instance has been created and the Ranger service is enabled for the instance. Ranger is used to manage data access policies for Lindorm.
-
-
For DataWorks
-
Ensure that the Lindorm instance is added to the DataWorks workspace and a resource group has been initialized. The Lindorm instance and the resource group must be in the same VPC.
-
Ensure that you have DataWorks tenant administrator permissions.
-
Configuration procedure
|
Step |
Role |
Platform |
Actions |
|
1 |
Administrator |
DataWorks |
Associate the instance with Ranger: Add a Ranger configuration in DataWorks Security Center and associate it with the target Lindorm instance. |
|
2 |
Administrator |
DataWorks |
Associate a Lindorm service: In the Ranger configuration, add a Ranger Service of the Lindorm type for association. |
|
3 |
Administrator |
DataWorks |
Configure identity mapping: Configure Lindorm identity credentials for RAM users to establish a mapping between RAM users and Lindorm accounts. |
Phase 2: Routine use and approval for developers and administrators
After the configuration is complete, the routine permission application and approval cycle begins.
|
Step |
Role |
Platform |
Actions |
|
1 |
Developer |
DataWorks |
Apply for permissions: In the Data Access Control module of DataWorks Security Center, apply for access permissions on the required Lindorm tables in a self-service manner. |
|
2 |
Administrator |
DataWorks |
Approve permissions: Approve the permission request from the developer in DataWorks Security Center. |
|
3 |
/ |
Lindorm |
Permission delivery: After the request is approved, DataWorks automatically calls the Ranger API to generate the corresponding access policy in Ranger. (This step is triggered automatically.) |
|
4 |
Developer |
DataWorks |
Use data: After the permission policy takes effect, the developer can access the authorized Lindorm data in modules such as Data Studio, Data Analysis, and Data Map. |
Example
This topic uses an example in which developer bob applies to the administrator for READ permission on the user_orders table in Lindorm to demonstrate the complete configuration and usage workflow of Lindorm data access control:
|
Role/Resource |
Description |
|
Administrator |
RAM user alice@company.com, with the account type set to Administrator in identity credentials (can approve permission requests in DataWorks Security Center). |
|
Developer |
RAM user bob@company.com, with the account type set to Standard User in identity credentials. |
|
Lindorm instance |
A Lindorm instance with the Ranger service enabled. |
|
Lindorm Service |
The Ranger Service Name is |
|
Target data |
The |
Throughout the workflow, the account name in DataWorks Security Center identity credentials must be consistent with the username in Ranger. Otherwise, permission verification will fail. We recommend that you keep the account name the same as the Alibaba Cloud RAM account name for ease of management.
Lindorm permission requests currently support only table-level permissions, not database-level permissions. Supported table permissions include: READ, WRITE, TRASH, ADMIN, SYSTEM, and ALL.
Administrator: Configure Lindorm data access control
The administrator must complete the following three configuration steps in sequence before developers can apply for and use Lindorm data permissions through DataWorks Security Center.
Step 1: Add a Ranger configuration
The administrator needs to add a Ranger configuration in DataWorks Security Center to associate the Lindorm instance with DataWorks. The configuration includes:
-
Cluster Type: Select Lindorm Cluster.
-
Lindorm Instance ID: Select the Lindorm instance that has been added to the DataWorks workspace.
-
Resource group: Select a general-purpose resource group that is in the same VPC as the Lindorm instance.
-
RangerAdmin address: Enter the access URL of RangerAdmin in the Lindorm instance.
-
Administrator account/password: Enter the account and password of the Ranger administrator.
For detailed steps, see Add a Ranger configuration.
Step 2: Associate a Lindorm service
After adding the Ranger configuration, you need to add a Lindorm-type Service association so that DataWorks can manage Lindorm data access permissions through Ranger.
-
On the Security Center page, choose Security policy > Manage Ranger.
-
Click Management Service for the target Ranger configuration.
-
Click Add Association and configure the following information:
Parameter
Description
Ranger Service Type
Select Lindorm (Wide-Table Engine).
Ranger Service Name
Enter the Ranger Service name that has been configured in the Lindorm instance. In this example, enter
lindorm_service.Lindorm Instance
Select the Lindorm instance that is associated with the current Ranger configuration.
For detailed steps, see the Service association section in Add a Ranger configuration.
Step 3: Configure identity credentials
The administrator needs to configure identity credentials for each RAM user who needs to access Lindorm data, associating the RAM user with a Lindorm account.
-
The account name in identity credentials must be consistent with the username in Ranger. This is the only basis for Ranger to identify and authorize users.
-
We recommend that you keep the account name the same as the Alibaba Cloud RAM account name for ease of management.
In this example, the administrator needs to configure identity credentials for both alice and bob:
Configure identity credentials for administrator alice:
|
Parameter |
Example value |
|
Alibaba Cloud RAM user/Role |
alice@company.com |
|
Data Source Type |
Lindorm |
|
Lindorm Instance |
Select the Lindorm instance with Ranger configured. |
|
Account Type |
Administrator. Administrators can approve permission requests from other users. |
|
Account Name |
user_alice (must be consistent with the username in Ranger) |
|
Account password |
Enter the password of the Lindorm account user_alice. |
Configure identity credentials for developer bob:
|
Parameter |
Example value |
|
Alibaba Cloud RAM user/Role |
bob@company.com |
|
Data Source Type |
Lindorm |
|
Lindorm Instance |
Select the Lindorm instance with Ranger configured (the same instance as alice). |
|
Account Type |
Standard User. Standard users can only apply for permissions but cannot approve them. |
|
Account Name |
user_bob (must be consistent with the username in Ranger) |
|
Account password |
Enter the password of the Lindorm account user_bob. |
For detailed steps, see Configure identity credentials.
Developer: Apply for Lindorm data access permissions
After the administrator completes the configurations above, developer bob can apply for Lindorm data access permissions in DataWorks Security Center.
Step 1: Go to data access control
-
Log on to the DataWorks console and go to the target workspace. In the left-side navigation pane, choose Data Governance > Security Center.
-
On the Security Center page, click Data Access Control in the left-side navigation pane.
Step 2: Apply for permissions
On the data access control page, submit a permission request by configuring the Application Content and Application information sections.
-
Lindorm permission requests support only table-level permissions, not database-level permissions.
-
Lindorm permission requests can only be approved by RAM users or RAM roles whose account type is set to Administrator in identity credentials.
-
On the Data Access Control page, click the Permission Application tab.
-
Apply for resource permissions.
-
In the Application Content section, set Data Source Type to Lindorm to configure the application content.
-
Lindorm Instance: Select the Lindorm instance that is associated with DataWorks.
-
Engine Type: Select Wide Table Engine.
-
Select a database (in this example,
order_db). The system automatically loads all tables in the database for which you can apply for permissions. Select the table for which you want to apply for permissions (in this example,user_orders) and the table permission (in this example, READ).
-
-
Configure application information.
Parameter
Description
User
Select the user for whom you want to apply for permissions on the target resource.
-
Current login account: Applies for permissions for the Alibaba Cloud account that is currently logged on to the DataWorks workspace. In this example, bob selects this option.
-
Apply on Behalf of Others: Applies for permissions for another Alibaba Cloud account on behalf of the currently logged-on account. If you select this option, you must configure the Username parameter.
Application duration
You can select One month, Three months, Six months, One year, Permanent, or Other. If you select Other, you must specify an expiration time.
Reason for Application
Enter the reason for applying for the permission. In this example, bob enters "Need to read data from the user_orders table in the order_db database for data analysis".
-
-
-
After the configuration is complete, click Apply for Permissions to submit the permission request.
Administrator: Approve permissions
After developer bob submits the permission request, the RAM user whose account type is set to Administrator in identity credentials (in this example, alice@company.com) needs to approve the request in Security Center.
-
View pending requests.
In the left-side navigation pane, choose Application and Approval > My Approval Tasks, and click the Data Access Control tab. Set Data Source Type to Lindorm to view the permission request submitted by bob.
NoteOnly RAM users or RAM roles whose account type is set to Administrator in identity credentials have the approval permission. In this example, only alice (Administrator type) can approve.
-
View approval details.
Click Approval in the Operation column of the target request. In the Approval details dialog, you can view detailed information about the request, including Application Details and Approval record.
NoteThe approval details of Lindorm permissions display Lindorm Instance and Engine Type information, but do not display the workspace.
-
Approve the request.
Based on the details of the request and your current requirements, determine whether to approve the request. Enter Approval Comments and select Agree or Reject for the request.
You can also select all requests on the My Approval Tasks page and click Batch Agree or Batch Reject, and enter Approval Comments to process the requests in a batch.
After administrator alice approves the request, Ranger automatically generates the corresponding policy in the Lindorm instance. Developer bob can then access data in the user_orders table in the order_db database through DataWorks.
View permission request and approval records
-
View permission request records: In the left-side navigation pane, choose Application and Approval > My Applications, and click the Data Access Control tab. You can filter by data source type and select Lindorm to view the Lindorm permission request records submitted by the current account.
-
View permission approval records: In the left-side navigation pane, choose Application and Approval > My Approval Tasks, and click the Data Access Control tab. Switch the task status to All and filter by data source type to select Lindorm to view the Lindorm permission requests that have been approved by the current account.
-
Lindorm permission request records support withdrawal (only for requests in Pending Approval status), but do not support renewal.
-
The Permission Audit tab on the Data Access Control page currently supports only the MaxCompute engine. Permission auditing for the Lindorm engine is not available on this tab.
-
The original Permission Approval Records tab on the Data Access Control page has been deprecated, and only a migration notice is retained. Go to Application and Approval > My Approval Tasks as described above to view records.