Create and manage dynamic desensitization whitelists
If users need to access plaintext data for specific business purposes, you can configure dynamic desensitization whitelists. This lets their query results bypass desensitization. This topic describes how to create and manage these whitelists.
Limitations
-
You can configure dynamic desensitization whitelists for fields in Dataphin tables and data source tables.
-
For SAP HANA data sources, data desensitization is not supported in ad-hoc query and data preview scenarios.
-
Desensitization does not apply when you use a data integration task to read data from a data source table.
-
When the system performs desensitization, it wraps fields in a function, such as
MASK(col). This may cause indexes to become invalid and reduce query performance. Therefore, we recommend that you avoid enabling desensitization on frequently filtered or joined fields.
Permissions
-
To create and manage dynamic desensitization whitelists, you must be a security administrator or have a global custom role with permissions to manage desensitization rules and data categories.
-
First-level directory administrators can configure dynamic desensitization whitelists for the data categories they manage.
-
While owners of a desensitization rule can manage its whitelists, their actions are still subject to data category management permissions.
Create a dynamic desensitization whitelist
-
On the Dataphin homepage, choose Governance > Data Security from the top navigation bar.
-
In the left-side navigation pane, choose Sensitive Data Protection > Desensitization Rule. On the Desensitization Rule page, click the Dynamic Desensitization Whitelist tab, and then click + New Dynamic Desensitization Whitelist.
-
In the New Dynamic Desensitization Whitelist dialog box, configure the parameters.
Parameter
Description
Whitelist name
Enter a name for the whitelist. The name must meet the following requirements:
-
Can contain Chinese characters, letters, digits, underscores (_), and hyphens (-).
-
Cannot exceed 50 characters in length.
Whitelist description
Enter an optional description for the whitelist.
Data category
Select a data category that you have permission to manage.
Data source
Select the data sources for the whitelist. You can select both compute source table and data source table.
-
Compute source table: Define the scope of whitelisted data by specifying a business unit, project, and data table.
-
Data source table: Define the scope of whitelisted data by specifying a data source scope and data table. Only MySQL, Oracle, and SAP HANA data sources are supported.
Applicable scenarios
Select the scenarios where the whitelist applies. Supported scenarios include Write to Dev Tables and Data Query. If the data source includes data source table and data services are enabled, the Data Service API scenario is also supported.
Applicable accounts
Select the user accounts for this whitelist.
Service application
This parameter is available when Data Service API is included in the applicable scenarios. Select the service applications to which this whitelist applies.
Effective scope
This parameter is required when the data source includes compute source table. The specified conditions are combined with an AND relationship. Only tables that meet all conditions are added to the whitelist and bypass desensitization during queries. You can define the effective scope by business unit, project, and data table.
-
Business unit: Select the business unit of the data table.
-
Select All to include all business units.
-
Select Enumerate to specify one or more business units.
-
Select Custom and enter a regular expression to match business units. For example, to match all business units with names containing test, enter
.*test.*.
-
-
Project: Select the data table's project.
-
Select All to include all projects.
-
Select Enumerate to specify one or more projects.
-
Select Custom and enter a regular expression to match projects. For example, to match all projects with names containing test, enter
.*test.*.
-
-
Data table: Select the data table.
-
Select All to include all tables in the specified project.
-
Select Custom and enter a regular expression to match data tables. For example, to match all data tables with names containing test, enter
.*test.*.
-
Data source scope
This parameter is required when data source table is selected as the data source. You can only whitelist MySQL, Oracle, and SAP HANA data sources with a configured metadata collection task. You can select All Data Sources or Specify Data Sources.
-
All Data Sources: If selected, all fields that match the data category in any current or future data source tables are whitelisted and not desensitized during queries.
-
Specify Data Sources: If selected, you can define the scope of whitelisted data source tables (including current and future ones) based on schema. Click Add Data Source to configure each data source instance and schema scope individually.
Data table: Select the data source tables to add to the whitelist.
-
Select All to include all tables in the data source.
-
Select Custom and enter a regular expression to match data tables. For example, to match all data tables with names containing test, enter
.*test.*.
Effective period
Specify when the whitelist is active.
Status
Enable or disable the whitelist.
-
-
Click OK to create the dynamic desensitization whitelist.
View dynamic desensitization whitelists
You can view details for each dynamic desensitization whitelist, including its applicable accounts, effective period, applicable scenarios, and status.

|
Area |
Description |
|
① Filter and search area |
You can perform a fuzzy search by whitelist name or data category name, or apply a precise filter using Applicable Scenarios. |
|
② List area |
You can view the Whitelist Name, Data Classification, Effective Accounts, Owner, Effective Period, Effective Status, Update Time, and Effective Status. In the Actions column, you can also Edit, Clone, or Delete a dynamic desensitization whitelist.
|