Data Transmission Service (DTS) allows you to mask high-risk sensitive data read from a source database before it is written to a destination database. This topic describes how to configure a sensitive data discovery and masking task.
-
This feature is in invitational preview and is available only to selected users.
-
This feature is currently available only in the China (Chengdu), China (Beijing), China (Hong Kong), and Singapore regions.
Supported configurations
|
Source type |
Destination type |
Task type |
|
MySQL |
MySQL |
Data synchronization (full data synchronization and incremental data synchronization) Note
Includes two-way synchronization tasks and serverless tasks. |
|
PostgreSQL |
PostgreSQL |
Data synchronization (full data synchronization and incremental data synchronization) Note
|
Billing
This feature is in invitational preview and is free of charge during this period.
Maskable sensitive information
-
The sensitivity levels for sensitive data are S1, S2, and S3, in ascending order. A higher level indicates a higher security risk.
-
For the sensitivity level of your data, refer to the scan results (Sensitive level) in the Sensitive Data Scanning and Masking module.
-
Personal information
Name, gender, age, date of birth, marital status, childbirth status, past medical history, symptoms, and hospitalization history.
-
Company information
Business license numbers, organization codes, and tax registration numbers.
-
Technical management
Runtime log information, such as creation time, update time, start time, end time, task ID, and remarks.
-
Business data
Loan types.
-
Marketing services
Product names and product IDs.
-
General management
Invoice codes.
Supported masking algorithms
|
Masking algorithm |
Description |
|
No masking |
Keeps the original data without applying any masking. |
|
Replacement |
Randomly replaces data with values that match the field's data type and range. |
|
Masking |
Replaces a specified range of characters (from position X to Y, from left to right) with |
Usage notes
-
Only objects configured for synchronization in the task can be scanned.
-
This feature scans data at the source. Therefore, when you configure the Libraries and tables that need to be scanned, the database and table names displayed in the Selected Objects box are the original names before mapping.
-
For tasks with sensitive data discovery and masking enabled:
-
The task's Incremental Data Collection module runs only after you configure and start the masking task.
-
Data transfer speed may decrease and may not reach its theoretical maximum.
-
-
When you configure scan objects, you can only select objects at the table level.
-
After you configure the scan objects and save the task (for example, by clicking Next: Save Task Settings and Precheck or Save and Return), you can no longer modify the scan objects.
-
Data masking is not supported for TIMESTAMP fields.
-
If you apply the Masking algorithm to a BIGINT field, the data written to the destination may become 0 or the write operation may fail.
Procedure
-
Enable sensitive data discovery and masking.
-
Go to the Advanced Configurations step of the synchronization task.
-
In the Sensitive Data Scanning and Masking section, select Open.
-
Optional: Select a Sensitive Data Compliance Scan Template.
NoteCurrently, only the Internet Industry Compliance Template v1.0 is supported. You can keep the default setting.
-
-
Configure scan objects.
In the Selected Objects box, select the tables that you want to scan and click the
icon to move them to the Selected objects to scan box. -
Complete the remaining configuration and purchase steps as needed.
-
Configure and start the masking task.
-
Configure the masking algorithm.
-
On the data synchronization task list page, find the task and click the instance ID.
-
Optional: On the Task Management page, click the Sensitive Data Scanning and Masking module.
-
In the Configure Masking Columns section, configure the masking algorithm in the Masking Configuration column.
NoteFor fields that contain sensitive data, the default masking algorithm is REPLACE INTO.
Quick configuration
In the Masking Configuration column for the target field, click the algorithm name and select a masking algorithm.
ImportantIf you select Masking, you must also set the Masking Range as described in Standard Configuration.
Standard configuration
-
In the Masking Configuration column for the target field, click Edit Settings.
-
In the Masking Configuration dialog box that appears, modify the Desensitization algorithm.
Note-
You can also select multiple fields that require the same masking algorithm, click Batch Configuration, and then select a Desensitization algorithm.
-
If you select Masking, you must also set the Masking Range by specifying the start position X and end position Y from left to right.
-
-
Click OK.
-
-
-
Start the masking task.
-
At the bottom of the Sensitive Data Scanning and Masking module, click Configure and start the desensitization task.
-
In the dialog box that appears, click OK.
-
-