Creating an MRS Data Masking Task
Create an MRS data masking task to mask sensitive information of specified data.
This section describes how to create an MRS data masking task.
Prerequisites
- Access to cloud assets has been authorized. For details, see Allowing or Disallowing Access to Cloud Assets.
- Access to Hive databases has been authorized. For details, see Authorizing Access to Big Data Assets.
- Permissions on MRS Hive have been configured by referring to Modifying Hive User Rights.
- Sensitive data has been identified by referring to Creating an Identification Task.
Constraints
Currently, only MRS_HIVE is supported.
Creating and Running an MRS Data Masking Task
- Log in to the management console.
- Click in the upper left corner and select a region or project.
- In the navigation tree on the left, click . Choose .
- In the left navigation pane, choose Data asset protection > Data Masking and click the MRS tab. The MRS masking page is displayed.
- Click and set Mask Sensitive MRS Data to to enable MRS masking.
- Click Create Task. On the displayed Configure Data Source page, configure parameters according to Table 1.
Table 1 Parameter description Parameter
Description
Task Name
You can customize the name of a data masking task.
The task name must meet the following requirements:- Contain 1 to 255 characters.
- Consist of letters, digits, underscores (_), and hyphens (-).
Select Data Source
Select a data source. Only MRS_HIVE is available.
Data Source
NOTE:If no Hive database is available, click Add Database to add Hive database assets. For details, see Authorizing Access to Big Data Assets.
Database instance: Select the database instance where the data you want to mask is located.
Database: Select the name of the database where the data you want to mask is located.
Table name: Select the name of the database table where the data you want to mask is located.
Select a column name and copy the data in the column to the target database.
- Click Next. The Set Masking Algorithm page is displayed.
Figure 1 Setting a masking algorithm
- Select the data columns you want to mask.
- Select a data masking algorithm. For details about data masking algorithms, see Configuring a Data Masking Rule.
- Click Next to switch to the Configure Data Masking Period page and configure the data masking period.
Select and set the execution period of a masking task.
- Manual: Manually enable a masking task and execute it based on masking rules.
- Hourly: Execute a data masking task every several hours.
Example: If the masking task needs to be executed every two hours, set this parameter to 02:00.
- Daily: Execute a data masking task at a specified time every day.
Example: If the masking task needs to be executed at 12:00 every day, set this parameter to 12:00:00.
- Weekly: Execute a data masking task at a specified time every week.
Example: If the masking task needs to be executed at 12:00 every Monday, set this parameter to 12:00:00 every Monday.
- Monthly: Execute a data masking task at a specified time on a specified day every month.
Example: If the masking task needs to be executed at 12:00 on the 12th day of each month, set this parameter to 12:00:00 12th day of every month.
If you want to execute a data masking task on the 31st day of each month, the system automatically executes the task on the last day of every month.
- Click Next. The Set Target Data page is displayed.
- Select a database instance and database name, and enter the database table name.
If the entered data table name already exists, the system updates the data table in the target database.
If the entered data table name does not exist, the system automatically creates a data table with the same name in the target database.
Do not fill in an existing service data table. Otherwise, services may be affected.
- Set the column name of the target data type.
By default, the system generates a name that is the same as the name of the data source column. You can retain the default name or change it as required.
- Select a database instance and database name, and enter the database table name.
- Click Finish.
- Click the MRS tab. Locate the row containing the target data masking task and click Execute in the Operation column.
- The data masking task is executed as configured.
Viewing the Status of an MRS Data Masking Task
- On the MRS tab page, click of the target data masking task to view it execution status.
The statuses are as follows:
- Completed: The data masking task has been successfully executed.
- Running: The data masking task is being executed.
- Pending execution: The data masking task is not executed.
- Stopped: The data masking task has been manually stopped.
- Failed: The data masking task fails to be executed.
Editing and Deleting an MRS Data Masking Task
A masking task in the Waiting or Running status cannot be edited or deleted.
- In the MRS data masking task list, locate the row containing the target data masking task and click Edit in the Operation column to modify masking task information. For details, see Creating and Running an MRS Data Masking Task.
- In the MRS data masking task list, locate the row containing the target data masking task and click Delete in the Operation column.
Deleted masking tasks cannot be restored. Exercise caution when performing this operation.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot