This article explains how to use the data masking feature, including sensitivity classification for datasets, configuration of masking rules, and the results of applying masking.
Data masking refers to the process of applying masking rules to fields containing sensitive information to perform data masking. After enabling this feature, the relevant fields will be masked, transformed, or obfuscated according to the specified rules, thereby protecting sensitive data privacy in the workplace and fulfilling the company's compliance requirements.
tip
This feature is a value-added module. To experience it, please contact Contact Us.
Feature modules | Feature introduction | User roles |
|---|---|---|
Sensitivity classification | When saving a new dataset or editing an existing dataset, the system will require sensitivity classification for the dataset, including 'sensitive' and 'not sensitive' categories, which must be determined by the dataset creator. | Administrator, dataset creator |
Masking rule configuration | After a dataset is defined as 'sensitive', masking rule configuration is required for the dataset. The dataset creator adds all sensitive fields and selects the corresponding masking rule from the 'masking rule' dropdown menu. | Administrator, dataset creator |
Masked dataset application | After a dataset is defined as 'sensitive', when the dataset is used in modules such as visual query, dashboard, and visual modeling, corresponding masking effects and masking restrictions on operation details will appear. | Dataset creator |
Masked display | After masking rules are configured and applied to a dataset, the dataset will be displayed in a masked format during presentation. Fields configured for masking will appear distorted, blurred, or otherwise obfuscated. | All viewers with permission to view charts and dashboards created based on the dataset |
In the information age, requirements for data security are becoming increasingly stringent. Whether through government-issued laws and regulations or industry-specific guidelines, there are security requirements for personal information and other types of sensitive data. Data masking helps reduce the risk of sensitive data leakage and adds an extra layer of protection for private data. By introducing the data masking feature, the need for manual data masking in traditional business scenarios can be greatly reduced, improving data delivery efficiency and increasing satisfaction among stakeholders. At the same time, it enables data processors, analysts, and viewers to use data in accordance with the company's information security requirements, further strengthening enterprise information security.
When saving a new dataset or editing an existing dataset, you can configure data masking rules.
When saving a dataset, you need to select the "Confidentiality Level" option to determine whether the dataset contains sensitive information. If the dataset contains sensitive fields, set the level to "Sensitive"; otherwise, set it to "Not Sensitive".
Dataset status | Description | Sample diagram |
|---|---|---|
Unclassified | After a dataset completes masking deployment, the status of all existing datasets will be 'Unclassified'. The dataset creator must classify each dataset under their account individually. When a dataset is in the 'Unclassified' status, a corresponding icon will be added to the left sidebar directory list and next to the title on the details page for marking. The page will also display an exception alert to prompt timely classification. | |
Sensitive but not masked | After a dataset is marked as 'Sensitive' during the sensitivity classification stage, the dataset will be defined as 'Sensitive but not masked'. The dataset creator must select sensitive fields and configure masking rules for the dataset. When a dataset is in the 'Sensitive but not masked' status, a corresponding icon will be added to the left sidebar directory list and next to the title on the details page for marking. The page will also display an exception alert to prompt timely classification. | |
Sensitive and masked | After the dataset creator selects sensitive fields and configures masking rules for the dataset, it will be marked as 'Sensitive and masked'. When a dataset is in the 'Sensitive and masked' status, a corresponding icon will be added to the left sidebar directory list and next to the title on the details page for marking. | |
Not sensitive | After a dataset is marked as 'Not sensitive' during the sensitivity classification stage, it will be classified as a 'Not sensitive' dataset. |
Impact on associated datasets:
Masking rules | Rule description | Rule details |
|---|---|---|
Name masking | Applicable to masking of name fields. | Keep the first character unmasked; mask the remaining part with *. |
Email masking | Applicable to masking of email fields. | Retain the actual information after the @ in the email address, and mask the preceding part, including any special characters, with *. If there is no @, mask the entire address. |
Contact information masking | Applicable to masking fields for mobile phone numbers and landline numbers. | Keep the first three characters unmasked, and mask the remaining part with * |
General rules for Chinese identification numbers | Applicable to masking fields for various types of identification numbers, such as organization code, bank card number, business license number, and business registration number. | Keep the first three characters unmasked, and mask the remaining part with * |
Chinese citizen ID masking | Applicable to masking ID fields for mainland China, Hong Kong, Macau, and Taiwan regions. | Keep the first three characters unmasked, and mask the remaining part with * |
Full masking | Mask all information in the field. | Mask all information in the field |
Masking rules | Rule details |
|---|---|
Masking middle characters | Keep the first M characters and the last N characters, and replace the remaining characters with * |
Masking head and tail characters | Keep characters from position M to N, and replace the remaining characters with * |
Masking before special characters | Replace characters before special character X with * |
Masking after special characters | Replace characters after special character X with * |
The effective scope supports configuring a denylist or allowlist.
Users or department-level user groups can be added as designated members.
warning
In a private deployment environment, in addition to "User" and "User Group", it also supports configuring the scope of data masking based on "Role".
When a dataset is sensitive, the following markers indicate different statuses.
Supported: Sensitive fields can be used as dimensions, metrics, and filters; all chart and analysis functions are supported and operate normally.
For specific unsupported features, refer to the following content:
Scenario | Support status | Note |
|---|---|---|
Sensitive fields as dimensions | Supported | Supported for use as a dimension, but does not support functions such as "field value alias", "geographical role", or "create group". |
Sensitive fields as measures | Supported | Supports selecting aggregation methods for calculation. The system uses actual data to perform aggregation calculations and displays the results according to the masking rules configured for the field. Data format configuration is not supported. |
Sensitive fields as filter options | Partially supported | When sensitive dimension fields are used as filters, only exact filtering is supported, and the field's dimension values are also masked. |
Sensitive fields used for result filtering or detail filtering | Partially supported | Only scenarios where the aggregation method is "count" and the filter condition is "=" are supported; other aggregation methods or filter conditions such as greater than, less than, range, or not equal are currently not supported. |
OKR table | Not supported | The OKR table currently does not support the use of masked fields. If masked fields have already been used in the current analysis, switching to the OKR table is not supported. |
Trend analysis table | Not supported | The trend analysis table currently does not support the use of masked fields. If masked fields have already been used in the current analysis, switching to the trend analysis table is not supported; if the trend analysis table has already been selected, selecting masked fields is not supported. |
Calculated field contains masked field | Supported | The expression will inherit the rules for masked fields. If the expression is used as-is, it will be executed according to the data source field rules; if the expression is modified, it will be executed according to the rules for fully masked fields. |
When creating tables and charts, data in sensitive fields is masked.
When a sensitive field is used as a dimension field, features such as "field value alias", "geographic role", and "create group" are not supported.
When a sensitive field is used as a metric field, the "create group" feature is not supported.
When a sensitive field is used as a chart metric, only the aggregation methods "Count", "Count distinct(fast)", " Count (distinct)", "Average","Maximum", "Minimum", "Variance", "Standard deviation"and "Quantile" are supported, and the "set data format" feature is not supported.
When a sensitive dimension field is used as a filter, only "exact filtering" is supported, and the dimension values of the field are also masked.
Calculated fields: When a field expression contains a sensitive field, the sensitive field is displayed in red, and the expression inherits the rules of the masked field.
The dataset output from visual modeling does not inherit the masking field controls of the input dataset. After outputting as a new dataset, the classification status is 'unclassified', and the creator must reconfigure the masking fields. The configuration operations are consistent with the content described earlier in this document.