Updated on 2025-08-12 GMT+08:00

Creating a Static Data Masking Task

DSC supports masking of database, OBS data, and big data. For details about the supported data types, see Constraints. This section describes how to create masking tasks of different data types.

Prerequisites

Constraints

Table 1 OBS masking constraints

Masking Type

File Type

Constraints

Data masking

-

The following data sources are supported: SQLServer, MySQL, TDSQL, PostgreSQL, Dameng, Kingbase, GaussDB, Oracle, and DWS.

Big data masking:

-

The value can be Elasticsearch, MRS_HIVE, Hive, DLI, or HBase.

OBS masking

File type

Files such as .txt, .log, .xml, .ini, .sql, .inf, .java and .json and files whose mime type starts with "text" are supported.

Logo type

JPEG, JPEG2000, BMP, and PNG images are supported.

The following identification types are supported: face and license plate.

The following masking modes are supported: mosaic mask and white block mask.

Minimum pixel detection metrics:
  • Minimum detectable face size for unscaled images (in priority order):
    • If any edge of the image exceeds 960 pixels in length, the minimum detectable face edge length must be ≥ (Image edge length)/60.
    • If the shorter edge of the image is greater than 544 pixels, the minimum detectable face edge length is 16 pixels.
    • If the shorter edge of the image is fewer than 544 pixels, the minimum detectable face edge length is 10 pixels.
  • Minimum detectable license plate size for unscaled images (in priority order):
    • If the image height is 1080 pixels or more, the minimum detectable license plate height must be at least 1/54th the image height.
    • If the image height is under 1080 pixels, the minimum detectable license plate height must be at least 20 pixels tall.

Creating a Static Data Masking Task

You can create a static data masking task on the DSC console and mask data sources based on the selected masking rule. For details about how to view and test masking rules, see Configuring and Viewing Masking Rules.

Related Operations

  • Click next to the target masking task to view the running status of the masking task. The statuses are as follows:
    • Queuing: The masking task is in the queue.
    • Completed: The data masking task has been successfully executed.
    • Running: The data masking task is being executed.
    • Pending execution: The data masking task is not executed.
    • Stopped: The data masking task has been manually stopped.
    • Failed: The data masking task fails to be executed. Move the cursor to to view the failure cause.
  • Click Edit in the Operation column of the target masking task to reconfigure the masking task information.
  • Click Delete in the Operation column of the target masking task to delete the task.