Updated on 2024-07-04 GMT+08:00

Data Masking

You can set policies to mask the data reported using APM 2.0.

APM will collect and store masked data. Do not upload privacy or sensitive data to APM. If you need to upload such data, encrypt it.

Querying a Data Masking Configuration

  1. Log in to the management console.
  2. Click on the left and choose Management & Deployment > Application Performance Management.
  3. In the navigation tree on the left, choose Configuration Management > Data Masking and select your target node. The configuration information is displayed.
  4. In the search box, enter a configuration name keyword and click the search icon or press Enter.

Adding a Data Masking Configuration

  1. In the navigation tree on the left, choose Configuration Management > Data Masking and select your target node.
  2. Click Add and set configuration parameters.

    Table 1 Configuration parameters

    Parameter

    Description

    Configuration Name

    Used to identify a data masking configuration. This parameter cannot be empty. Enter up to 30 characters. Only letters, digits, and special characters are allowed.

    Configuration Description

    Used to describe the data masking configuration. This parameter cannot be empty. Enter up to 1000 characters. Only letters, digits, and special characters are allowed.

    Configuration Items

    • Enter up to 32 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed.
    • The configuration item cannot be empty. By default, an empty configuration item is displayed. If you select Token, content will be replaced with a globally unique random character string. If you select Mask, content will be replaced with a fixed number of asterisks (*). By default, Mask is selected.
    • Click the plus sign (+) to add a configuration item, or click the minus sign (–) to delete one.
    • Each configuration can contain up to 20 configuration items.
    • The httpMethod, remoteAddr, exceptionType, content-type, charset, api_address, url, method, requestBody, responseBody, exceptionMsg, cookie, and Cookie fields have special functions in APM traces and do not support masking.
    • If you use one of these fields as a key, the system will display a message indicating that an invalid name exists.

  3. Click Yes.

Modifying a Data Masking Configuration

  1. In the navigation tree on the left, choose Configuration Management > Data Masking and select your target node.
  2. Click Modify in the Operation column to modify the configuration.
  3. Click Yes.

Deleting Data Masking Configurations

  1. In the navigation tree on the left, choose Configuration Management > Data Masking and select your target node.
  2. Click Delete in the Operation column. In the displayed dialog box, click Yes to delete the configuration.
  3. Select multiple data masking configurations and click Batch Delete above the list. In the displayed dialog box, click Yes to delete multiple data masking configurations at a time.