TDE is disabled on an Alicloud RDS instance

Check TDE and actual data encryption on supported Alicloud RDS instances.

Description

RDS Transparent Data Encryption (TDE) encrypts files at the database layer. Storage encryption, database access permissions and TLS are separate controls.

Potential impact

If required tables lack TDE protection, exposure of their files can put the data at risk.

Remediation

Check support for the engine, minor version and edition, and verify KMS permissions. Enabling TDE is irreversible, so review the impact before setting tde_status = "Enabled". For MySQL, encrypt existing tables separately and check their actual encryption state.

Examples

Supply a supported instance type and storage capacity for this MySQL 5.6 excerpt, and configure the network separately. Verify that the key is available when restoring a backup.

Before

hcl
resource "alicloud_db_instance" "db_instance" {
  engine              = "MySQL"
  engine_version      = "5.6"
  instance_type       = var.tde_instance_type
  instance_storage    = var.db_storage_gb
  tde_status          = "Disabled"
}

After

hcl
resource "alicloud_db_instance" "db_instance" {
  engine              = "MySQL"
  engine_version      = "5.6"
  instance_type       = var.tde_instance_type
  instance_storage    = var.db_storage_gb
  tde_status          = "Enabled"
}

References