Enable sensitive data protection

Updated at:

This topic describes how to enable the sensitive data protection feature, create an instance scan task, and view identification results.

Prerequisites

  • You must be an administrator, DBA, or security administrator.

    Note

    To view your role, hover over the头像 icon in the upper-right corner of the console.

  • Supported databases

    • Relational databases:

      • MySQL: ApsaraDB RDS for MySQL, PolarDB for MySQL, and MySQL databases from other sources

      • SQL Server: ApsaraDB RDS for SQL Server and SQL Server databases from other sources

      • PostgreSQL: ApsaraDB RDS for PostgreSQL, PolarDB for PostgreSQL, and PostgreSQL databases from other sources

      • MariaDB: ApsaraDB RDS for MariaDB and MariaDB databases from other sources

      • PolarDB for PostgreSQL (Compatible with Oracle)

      • PolarDB for Xscale (PolarDB-X)

      • OceanBase

      • Oracle

      • Db2

      • Dameng (DM)

      • Lindorm: Lindorm_CQL and Lindorm_SQL

      • openGauss

    • Data warehouses

      • AnalyticDB for MySQL

      • AnalyticDB for PostgreSQL

      • Data Lake Analytics (DLA)

      • ClickHouse

      • MaxCompute

      • Hologres

      • Hive

  • You must have purchased the sensitive data protection feature. For more information, see Purchase DMS services.

    Note

    In the upper-right corner of the console, choose 5售卖 > DMS Order Management to check your remaining instance quota for sensitive data protection.

Enable sensitive data protection

You can enable the sensitive data protection feature for an instance by editing it or using the Sensitive Data page.

Edit an instance

  1. Log on to the DMS 5.0 console.

  2. In the database instance list on the left, right-click the target instance.

  3. Click Edit.

  4. In the Basic Information section, select the Sensitive Data Protection checkbox, and then select a classification and grading template. The system uses this template to scan and identify sensitive data in the database.

    For example, you can select DMS Built-in Classification and Grading Template - Simplified from the Classification and Grading Template drop-down list.

  5. Click Save.

Use the Sensitive Data page

  1. Log on to the DMS 5.0 console.

  2. In the top navigation bar, choose Security and disaster recovery (DBS) > Sensitive Data > Sensitive Data Assets.

    Note

    If you use the DMS console in simple mode, move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner of the DMS console and choose All Features > Security and disaster recovery (DBS) > Sensitive Data > Sensitive Data Assets.

  3. In the Instance List section, click the Not Enabled tab.

  4. Find the target instance and click Enable Now in the Operation column.

    Note

    This page lists only instances that do not have sensitive data protection enabled.

  5. In the Enable Sensitive Data Protection dialog box, choose whether to configure a scan task immediately.

    • To configure the task later, turn off the Configure Scan Task switch. You can then go to the Sensitive Data Assets page and configure the scan task on the Instance List > Enabled tab.

    • If necessary, configure the required parameters for the scan task, such as scan method, scope, and effective time of the scan results. For more information, see Configure a scan task.

  6. Click OK.

Configure a scan task

  1. In the Configure Scan Task dialog box, set the following parameters.

    Note

    When a scan task runs, the system scans the metadata and a small random sample of data (100–200 rows) from the target database. The system uses this data only for sensitive data analysis during the scan and does not store it.

    Parameter

    Description

    Scan Method

    • Immediate Task: The system immediately scans the target database and marks sensitive fields after the configuration is complete.

    • Scheduled Task: Set a future date and time. The system will automatically scan the target database and mark sensitive fields at the specified time.

    • Periodic Task: Configure a schedule and time. The system will automatically scan the target database and mark sensitive fields at each scheduled interval.

    Scope

    Scan All Databases or Specific Databases (multiple selections allowed) in the selected instance.

    Apply scan results immediately?

    This setting determines whether to immediately apply classification and grading labels to the fields identified in the scan results.

    • Yes: The results are applied immediately.

    • No: The results are not applied. You must go to the Identification Result page to apply them manually.

  2. Click OK.

  3. You must authorize the instance to enable automatic sensitive data identification and configure scan tasks.

    Note

    If the instance is in Security Collaboration mode, the system authorizes it automatically. You can skip this step.

    1. In the Operation column, click Account Authorization.

    2. Enter the database account and database password for the target instance.

    3. Click OK.

View identification results

  1. View the recognition results.

    In the Data Overview section, click the number under Scan Successful to go to the Recognition Task Log page. Then, click the number in the Execution Result column for the target scan task to view the recognition results in the Recognition Result panel. In the Data Overview section, the Task Information area shows the execution status of scan tasks, including the numbers of successful, in-progress, and failed scans.

    Note

    You can also click Task Details in the Actions column for the target instance in the Instance List section to view the scan task and recognition result details.

  2. Manually apply the recognition results. If you selected to apply scan results immediately when configuring the scan task, the system automatically applies the recognition results. Skip this step.

    1. Go to the Recognition Task Log page.

    2. Click the number in the Execution Result column for the target scan task.

    3. In the Recognition Result panel, click Apply in the Actions column to manually apply the recognition results.

  3. Optional: To view the sensitivity levels and distribution of sensitive data for the instance, click Sensitive Data List in the Operation column, and then click the Field Control tab. On this tab, you can manage sensitive fields by adjusting sensitivity levels, changing data masking rules, and authorizing users. For more information, see Manage sensitive data.

To disable this feature, see Disable sensitive data protection.