Sensitive Data Discovery

After creating a sensitive data identification rule group, you can create a sensitive data discovery task.

Prerequisites

  • Sensitive data identification rule groups have been created. For details, see Identification Rule Groups.
  • For data sources such as DWS, DLI, and MRS Hive, you need to create data connections in Management Center. For details, see Creating Data Connections.

Creating a Sensitive Data Discovery Task

  1. Log in to the DGC console, select an instance, and click Access on it.
  2. Click the Workspaces tab. In the workspace list, find the required workspace. In the Quick Entry column, choose Data Security to access the management console.
  3. Choose Sensitive Data Discovery from the left navigation bar.

    Figure 1 Creating a sensitive data discovery task

  4. Click Create in the upper part of the displayed page. On the Create Sensitive Task page, enter basic information. For details on parameter settings, see Table 1.

    Figure 2 Parameter settings
    Table 1 Parameters

    Parameter

    Description

    Task

    Task name, which contains 1 to 64 characters and can include only letters, numbers, and underscores (_).

    Task Description

    A description of the task to be created. It cannot exceed 256 characters.

    Workspace

    The workspace to which the data belongs.

    Data Source

    Select a created data source from the drop-down list. If there are no data sources, create one by referring to Creating Data Connections.

    Data Connection

    Select a data connection from the drop-down list.

    If there are no data connections, click Create to add one.

    Database

    The database where you want to discover sensitive data.

    • Click Configure to set the data range to be scanned. If this parameter is not set, all databases of the selected data connection are scanned by default.
    • Click Configure to set the data range to be scanned. If this parameter is not set, all data tables of the selected data connection are scanned by default. For the DWS, MySQL, and DLI data connections, regular expressions can be used to select the tables to be scanned.
    • If neither the database nor the data table is set, the task scans all data tables of the selected data connection.
    • Click Clear to delete the selected databases and data tables.

    Data Table

    SQL Queue

    If Data Source is set to DLI, you need to set a SQL queue. The SQL queue is used for executing DLI jobs. Do not use the default queue because it cannot obtain query results.

    Compute Engine

    If Data Source is set to DWS or DLI, you need to set a compute engine.

    Agent

    If Data Source is set to DLI, you need to select a CDM cluster.

    Recognize Rule Engine

    Select a rule group from the drop-down list. If no rule groups are created, create one by referring to Identification Rule Groups.

    Update the security level

    If you select Update the security level, the security level of the corresponding data table in Data Assets will be updated based on the data identification result.

    Manually synchronize the recognition result

    If you select Manually synchronize the recognition result, the data identification result is manually confirmed and synchronized to Data Assets.

  5. Click Next to configure the schedule properties. For example, set Repeat to Once.

    Figure 3 Schedule properties

    For schedule property details, see Table 2.

    Table 2 Parameters

    Parameter

    Description

    Date

    Period during which a task is executed.

    Period

    The frequency at which a task is executed. The options are:

    • Minute
    • Hour
    • Day

      The task is scheduled at the specified time every day.

    • Week

      If Period is Week or Month, the task will be scheduled on the specified day of the week or month.

      For example, if Period is set to Week and the task is scheduled from 2020-06-30 15:52:43 to 2020-08-01 17:20:21, the task is executed at 15:52:43 every Tuesday in the scheduling interval.

    Start now

    If you select Start now, the task is scheduled immediately.

  6. Click OK. The sensitive data discovery task is created.

Editing a Sensitive Data Discovery Task

  1. Log in to the DGC console, select an instance, and click Access on it.
  2. Click the Workspaces tab. In the workspace list, find the required workspace. In the Quick Entry column, choose Data Security to access the management console.
  3. Choose Sensitive Data Discovery from the left navigation bar.
  4. In the task list, select a task and click Edit to the right of it.

    A task in the Running state cannot be edited.

    Figure 4 Editing a sensitive data discovery task

Scheduling/Running a Sensitive Data Discovery Task

  1. Log in to the DGC console, select an instance, and click Access on it.
  2. Click the Workspaces tab. In the workspace list, find the required workspace. In the Quick Entry column, choose Data Security to access the management console.
  3. Choose Sensitive Data Discovery from the left navigation bar.
  4. In the task list, select a task and click Run or Start to the right of the task.

    Figure 5 Scheduling/Running a sensitive data discovery task

    If no execution result is displayed after the sensitive data discovery task is successfully executed, and no matching information is found in the run logs, it means no sensitive data is discovered.

    You can determine whether a task is scheduled once or repeatedly based on the scheduling period. If a task is scheduled once, there is no scheduling period.

    For details, see Figure 6.

    Figure 6 Task scheduling mechanism

Deleting a Sensitive Data Discovery Task

  1. Log in to the DGC console, select an instance, and click Access on it.
  2. Click the Workspaces tab. In the workspace list, find the required workspace. In the Quick Entry column, choose Data Security to access the management console.
  3. Choose Sensitive Data Discovery from the left navigation bar.
  4. Select one or more sensitive data discovery tasks and click Delete above the task list.

    A sensitive data discovery task that is being executed cannot be deleted.

    Figure 7 Deleting tasks

    The deletion operation cannot be recovered. Exercise caution when performing this operation.

Viewing a Task Log

  1. Log in to the DGC console, select an instance, and click Access on it.
  2. Click the Workspaces tab. In the workspace list, find the required workspace. In the Quick Entry column, choose Data Security to access the management console.
  3. Choose Sensitive Data Discovery from the left navigation bar.
  4. Expand a task and click View Log.

    If a task fails to be executed, you can locate the failure cause based on logs, rectify the fault, and try to execute the task again. If the fault persists, contact technical support for assistance.
    Figure 8 Viewing a task log