Identification Rules
To effectively identify sensitive data in a database, you can create identification rules.
Prerequisites
A data security level has been created. For details, see Data Security Levels.
Constraints
Currently, up to 100 sensitive data identification rules can be created.
Creating a Sensitive Data Identification Rule
- Log in to the DGC console, select an instance, and click Access on it.
- 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.
- Choose from the left navigation bar.
- On the displayed page, click Create. Figure 1 Creating a rule
- Set parameters as prompt, and click OK. See Table 1 for parameter details. Figure 2 Rule settings
Table 1 Parameters Parameter
Description
Type
The category to which a rule belongs. You can either create a rule based on built-in templates or customize one.
Security Level
Classify the configured data into different levels. If the existing security levels do not meet the requirements, go to the Data Confidentiality page to create security levels. For details, see Data Security Levels.
Template
This parameter is displayed when Type is set to Built-in. The system provides 15 types of sensitive data identification templates: IPv6 address, MAC address, URL, license plate number in China, postal code in China, address, mobile number, Family phone number, ID card number, bank card number, IPv4 address, date, email, and username.
Name
- If Type is set to Built-in, the rule name is automatically generated based on the template.
- If Type is set to Custom, you can enter a rule name. The name is mandatory and contains 1 to 50 characters. Only letters, numbers, underscores (_), and hyphens (-) are allowed. NOTE:
The name must be unique.
Rule Recognition
This parameter is displayed when Type is set to Custom. The options are None and Regular.
If you select None, the sensitive data identification task associated with the rule does not take effect. Data assets cannot be automatically classified. You need to manually add categories.
Regular
This parameter is displayed when Regular is set for Rule Recognition.
- If you select Content recognition, enter a custom regular expression. The expression will be used to identify data content. Example: ^ male$|^female&.
- If you select Column name recognition, enter a custom regular expression. The expression will be used to accurately or fuzzyly identify column names. Multiple column names can be identified at the same time. Example: sex|gender.
- If you select Remarks recognition, enter a custom regular expression. The expression will be used to fuzzyly identify remarks. Example: .*comment.*.
Description
A description of the rule to be created.
Editing a Sensitive Data Identification Rule
- Log in to the DGC console, select an instance, and click Access on it.
- 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.
- Choose from the left navigation bar.
- On the displayed page, select a rule and click Edit in the Operation column. Figure 3 Editing a sensitive data identification rule
- After the editing is complete, click OK.
Enabling a Sensitive Data Identification Rule
- Log in to the DGC console, select an instance, and click Access on it.
- 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.
- Choose from the left navigation bar.
- On the displayed page, select a rule and turn on
to the right of the rule. Figure 4 Enabling a sensitive data identification rule
Disabling a Sensitive Data Identification Rule
- Log in to the DGC console, select an instance, and click Access on it.
- 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.
- Choose from the left navigation bar.
- On the displayed page, select a rule and turn off
to the right of the rule. Once the rule is disabled, it cannot be added to a rule group and therefore cannot be used. Figure 5 Disabling a sensitive data identification rule
Deleting a Sensitive Data Identification Rule
- Log in to the DGC console, select an instance, and click Access on it.
- 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.
- Choose from the left navigation bar.
- If a catalog is referenced, the rule may fail to be deleted.
- The deletion operation cannot be recovered. Exercise caution when performing this operation.
- On the displayed page, select one or more rules and click Delete above the rule list.
Rules contained in a group cannot be deleted directly. You need to delete the rule group and then delete the rule.
Figure 6 Deleting rules
Last Article: Data Security Levels
Next Article: Identification Rule Groups
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.