Watermark Embedding

This section describes how to embed data watermarks.

Features

  • Large capacity: Large-capacity watermark information can be embedded.
  • Convertness: The watermark does not deteriorate data, is not easily detected, and does not affect the availability of host data.
  • Robustness: The data embedded with watermarks can resist malicious attacks.
  • Security: Only the user who has the key (configured when the watermark is embedded) can extract the watermark.
  • Dynamic update: Each time a row of data is added, a watermark is embedded in the row.
  • Blind detection: The watermark source tracing process does not require any original data or auxiliary information, but may require a key.

Scenarios

  • Data forwarding process standardization

    Unauthorized users need to be approved when they forward data from enterprises for external usage. After the approval, the watermark technology is used to generate files that can be used outside enterprises.

  • Digital right protection

    To associate databases with their owners, embed watermarks representing ownerships in relational databases. In this way, enterprises' digital rights can be protected.

  • Quick source tracing of leaked data

    To locate security vulnerabilities, unseal the leaked data files, check whether watermarks exist based on the file integrity and watermark traces, and identify watermark information such as data source addresses, distribution units, owners, and distribution time.

Watermark usage process

For details, see Figure 1.

Figure 1 Watermark use process

Prerequisites

A DWS data connection or an MRS Hive data connection has been created. For details, see Creating Data Connections.

Creating a Data Watermark Embedding Task

  1. Log in to the DGC console, select an instance, and click Access on it.
  2. Click the Workspaces tab. In the workspace list, find the required workspace. In the Quick Entry column, choose Data Security to access the management console.
  3. Choose Data Watermark Embedding from the left navigation bar, and click Create in the upper part of the displayed page.

    Figure 2 Creating a data watermark embedding task

  4. Enter the basic information and click Next. Table 1 describes parameter details.

    Figure 3 Watermark policy settings
    Table 1 Parameters

    Parameter

    Description

    Task

    The name of the watermark task to be created. Task names can include only letters, numbers, underscores (_), and hyphens (-), and cannot exceed 64 characters.

    Description

    A description of the watermark task to be created. A task description cannot exceed 1,024 characters.

    Watermark ID

    A watermark ID cannot exceed 16 characters.

    Error Correction Level

    The higher the level, the longer the number of bits of watermark information, and the lower the bit error rate during source tracing. Note that a higher error correction level requires a larger amount of data to ensure the integrity of embedded information. The default value is 1.

    Watermark Version

    V1: Watermarks depend on the primary keys, and the embedding speed is fast. If primary keys are attacked, source tracing may fail.

    V2: Watermarks do not depend on primary keys. They are related only to embed columns. The embedding speed is slow and the robustness is enhanced.

    Workspace

    The workspace to which the data belongs.

    Data Source (Source)

    Currently, only DWS and MRS Hive are supported.

    Data Connection

    Currently, only proxy can be used to connect data.

    Database

    The database to which a watermark is to be embedded. If this parameter is not set, the watermark will be embedded into all the databases of the selected data connection by default.

    If neither the database nor the data table is set, all data tables of the selected data connection will be embedded with watermarks.

    Source Table

    The table to which a watermark is to be embedded. If this parameter is not set, the watermark will be embedded into all the tables of the selected data connection by default.

    Watermark Embedding Bar

    Select a field type from the drop-down list as the embedding bar. For example, the value can be a number or a character.

    Note that when Watermark Version is set to V1, do not select the primary key column as the embedding bar.

    Dataset Scope

    If Dataset Scope is set to Incremental, you can set Time Field to Timestamp or Date.

    Currently, Dataset Scope can be set to All only. Watermark scheduling task can be scheduled only once.

    Data Source Type

    Currently, only DWS and MRS Hive are supported.

    Data Connection

    Currently, only proxy can be used to connect data.

    Database

    Select the database where the watermark table is stored from the drop-down list.

    Target Table

    Enter a unique table name. The table is automatically created when the table name entered does not exist. Click Test. Otherwise, the next operation is not allowed.

  5. Click Next to configure scheduling information. For details, see Table 2.

    Table 2 Parameters

    Parameter

    Description

    Once

    If Dataset Scope is set to All, a data watermark embedding task can be scheduled only once.

    On Schedule

    The frequency at which a task is executed. The options are:

    • Month/Week

      If Period is Week or Month, the task will be scheduled on the specified day of the week or month.

      For example, if Period is set to Week and the task is scheduled from 2020-06-30 15:52:43 to 2020-08-01 17:20:21, the task is executed at 15:52:43 every Tuesday in the scheduling interval.

    • Day

      The task is scheduled at the specified time every day.

    Start now

    If you select Start now, the task is scheduled immediately.

  6. After all settings are complete, click OK.

Editing a Data Watermark Embedding Task

  1. Log in to the DGC console, select an instance, and click Access on it.
  2. Click the Workspaces tab. In the workspace list, find the required workspace. In the Quick Entry column, choose Data Security to access the management console.
  3. Choose Data Watermark Embedding from the left navigation bar.
  4. Select a task and click Edit to the right of it in the Operation column.

    Tasks that are running or being scheduled cannot be edited.

    Figure 4 Editing a data watermark embedding task

Scheduling/Running a Data Watermark Embedding Task

  1. Log in to the DGC console, select an instance, and click Access on it.
  2. Click the Workspaces tab. In the workspace list, find the required workspace. In the Quick Entry column, choose Data Security to access the management console.
  3. Choose Data Watermark Embedding from the left navigation bar.
  4. Select a task, and click Run or Schedule to the right of it in the Operation column. For details on the scheduling mechanism, see Figure 6.

    Figure 5 Scheduling/Running a data watermark embedding task

Deleting a Data Watermark Embedding Task

  1. Log in to the DGC console, select an instance, and click Access on it.
  2. Click the Workspaces tab. In the workspace list, find the required workspace. In the Quick Entry column, choose Data Security to access the management console.
  3. Choose Data Watermark Embedding from the left navigation bar.
  4. Select a task and click Delete to the right of it in the Operation column.

    Data watermark embedding tasks that are being executed cannot be deleted.

    Figure 6 Deleting a data watermark embedding task