Unencrypted Alicloud NAS file system

Enable encryption at rest for Alicloud NAS file systems.

Description

Choose NAS encryption when creating the file system. encrypt_type = "0" leaves data unencrypted at rest. 1 uses a NAS-managed key.

Potential impact

An existing unencrypted file system cannot be encrypted in place.

Remediation

Create an encrypted file system using the required key type. During migration, keep the original resource in Terraform and add the new file system alongside it. Copy and verify the files before switching mounts. Check mount permissions, encryption in transit and backups.

Examples

Before

hcl
resource "alicloud_nas_file_system" "unencrypted_fs" {
  protocol_type = "NFS"
  storage_type  = "Performance"
  description   = "tf-testAccNasConfig"
  encrypt_type  = "0"
}

After

hcl
resource "alicloud_nas_file_system" "encrypted_fs" {
  protocol_type = "NFS"
  storage_type  = "Performance"
  description   = "tf-testAccNasConfig"
  encrypt_type  = "1"
}

References