Masking Policies

This section describes how to create a data masking policy and perform masking query in Data Assets.

Prerequisites

  • A data classification rule has been created. For details on how to create a classification rule, see Data Classifications.
  • A data connection and a data table have been created.

Creating a Masking Policy

  1. Log in to the DGC console, select a DGC instance, and click Access.

    On the displayed page, click the Workspaces tab. In the workspace list, locate the required workspace.

  1. Click Data Assets of the corresponding workspace to navigate to the Data Assets console.
  2. Choose Masking Policies from the left navigation bar. Click Create.
  3. Set Classification Rule, Masking Algorithm, and Algorithm Type. The options for Masking Algorithm include Mask, Truncate, and Hash. Each masking algorithm corresponds to multiple algorithm types. Select an algorithm type as required.

    A classification rule that has been bound to a masking algorithm cannot be bound again.

    Figure 1 Creating a masking policy
  4. After you configured the making algorithm, you can perform the online test. Enter the test data, and then click Test. You can verify the result in the Test Result text box.
  5. Enable or disable Status. The masking policy takes effect only when Status is enabled.

Viewing the Data Masking Effect

  1. Log in to the DGC console, select a DGC instance, and click Access.

    On the displayed page, click the Workspaces tab. In the workspace list, locate the required workspace.

  1. Click Data Assets of the corresponding workspace to navigate to the Data Assets console.
  1. Choose Data Catalog from the left navigation bar.
  2. In a list of searched asset results, click a table name. A page for data table details is displayed.
  3. On the details page, click Data Preview to view the data masking effect.