Updated on 2023-11-16 GMT+08:00

Customizing a Rule

Sensitive data identification rules include built-in rules and user-defined rules. You can select built-in or customized identification rules when creating or editing an identification template.

Procedure

  1. Click in the upper left corner of the management console and select a region or project.
  2. In the navigation pane on the left, click and choose Security & Compliance > Data Security Center.
  3. In the navigation pane, choose Sensitive Data Identification > Identification Configuration.
  4. Click the Identification Rule tab, as shown in Figure 1.

    Figure 1 Identification rules

  5. Click Create a user-defined rule in the upper left corner of the page.
  6. In the displayed dialog box, set required parameters based on Table 1.

    Table 1 Parameter description

    Parameter

    Description

    Rule

    You can customize a rule name.

    The rule name must meet the following requirements:

    • Contain 1 to 255 characters.
    • Consist of letters, digits, underscores (_), hyphens (-), and brackets.
    • Be unique.

    Description

    Enter a rule description.

    Add to Template

    • Select the template name, template rule category, and level from the drop-down list boxes to add the rule to a rule template.
    • Click to add the rule to multiple templates.
    • Click to delete the template. Retain at least one template.

    Match Type

    This parameter can be set to Rule matching or Keyword matching.

    • Keyword matching indicates that the rule can be executed using keywords.
    • Regular matching is used to match (specify and identify) characters, words, and patterns.
      NOTE:

      For Hive data in MRS, sensitive data can be identified only when Match Type is Rule matching and Rule is Content > Include.

    Matching Logic

    Select the matching logic:
    • AND: All keywords are included.
    • OR: Only one keyword is included.

    Rule

    • This parameter is displayed when Match Type is set to Rule Matching.
    • Click to add multiple rules.
    • Click to delete a rule. Retain at least one rule.
      NOTE:

      For Hive data in MRS, sensitive data can be identified only when Match Type is Rule matching and Rule is Content > Include.

    Content

    • This parameter is displayed when Match Type is set to Keyword Matching.
    • Multiple keywords are separated by line breaks.

    Identification Threshold Configuration

    Applicable to unstructured data. You can click to select a low, medium, or high threshold. A higher threshold requires more hits.

    Hit Rate

    Applicable to structured data. You can drag the slider to set this parameter.

  7. Click OK.