Review Tencent Cloud CBS disk encryption

Encrypt disks that hold sensitive data.

Description

A CBS disk created from an encrypted snapshot is automatically encrypted. On an unencrypted disk, someone who obtains the storage may be able to read application files and logs.

Potential impact

Unauthorized access to the storage medium can increase the risk of sensitive data disclosure.

Remediation

For new disks, set encrypt = true on tencentcloud_cbs_storage and check KMS permissions. Verify an existing disk’s encryption first. If it is unencrypted, back up the data before replacing it with an encrypted disk.

Examples

The examples create an encrypted disk. Encryption does not replace access controls in the operating system or application using the disk.

Before

hcl
resource "tencentcloud_cbs_storage" "storage" {
  storage_name      = "cbs-test"
  storage_type      = "CLOUD_SSD"
  storage_size      = 100
  availability_zone = "ap-guangzhou-3"
}

After

hcl
resource "tencentcloud_cbs_storage" "storage" {
  storage_name      = "cbs-test"
  storage_type      = "CLOUD_SSD"
  storage_size      = 100
  availability_zone = "ap-guangzhou-3"
  encrypt           = true
}

References