Transparent Data Encryption (TDE)

Updated at:

Transparent Data Encryption (TDE) encrypts data stored in an ApsaraDB for SelectDB instance. TDE encrypts data when it is written to disk and automatically decrypts it when it is read, with no changes required to your applications. TDE uses managed keys provided by a key service.

Usage notes

  • New instances only — TDE is available only for new instances. You cannot enable TDE directly on an existing instance.

  • Cannot be disabled — TDE cannot be disabled after it is enabled.

  • Region availability — TDE is unavailable by default in all regions. To enable TDE in a region, submit a ticket. The product team then makes TDE available in that region.

  • Key type — TDE supports only managed keys. Custom keys are not supported.

Note

To use TDE for an existing instance, purchase a new instance with TDE enabled. Then migrate data to the new instance by using Data Transmission Service (DTS).

Performance impact

TDE uses the AES256 encryption algorithm by default, which causes a performance loss of about 10% to 20%. Evaluate the performance impact on your workloads before you enable TDE.

Enable TDE

Enable TDE while you create an ApsaraDB for SelectDB instance by using one of the following methods:

Console

On the instance purchase page, turn on Encryption in Transit (TDE). The key type defaults to a managed key.

API

When you call the CreateDBInstance operation to create an instance, set TdeEnabled to True and TdeMode to MANAGED.