Description

This check ensures that every Linode instance has disk encryption enabled. Disk encryption protects data at rest on the instance's underlying disks, keeping stored data unreadable without the encryption keys even if the physical media is accessed. Each Linode is evaluated separately.

Rationale

Without disk encryption, data on a Linode's disks is stored in clear text on the host's physical storage. If the physical media were accessed, lost or not wiped correctly, the data could be read. Encryption at rest is also a common requirement in compliance frameworks for protecting sensitive and customer data.

Impact

  • Disk encryption cannot be turned on for an existing Linode in place. It can only be set when a Linode is created or when it is rebuilt

  • A rebuild deletes all existing disks and their data. The data cannot be recovered after a rebuild, so it must be backed up first. The safer option is to create a new encrypted Linode and move the data to it

  • Encryption can add some CPU overhead and reduce disk throughput

  • Backups are not encrypted, even when they are taken from an encrypted disk

  • Linodes in LKE node pools cannot have this setting changed (contact Akamai Support for LKE)

Default Value

Disk encryption is enabled by default on all new Linodes. In distributed regions it is always enabled and cannot be disabled. For nodes in LKE clusters it is disabled by default.

Pre-Requisites

  • A Cloud Manager user with permission to create, rebuild and delete Linodes

  • A current backup of all data on the Linode (Backup service snapshot or your own backup)

  • A maintenance window, because the Linode will be unavailable during migration or rebuild

  • For the CLI test plan: a Personal Access Token created by an unrestricted user with Linodes: Read Only scope

Remediation

Test Plan

Console:

  1. Sign in to Cloud Manager at https://cloud.linode.com.

  2. In the sidebar, under Compute, click Linodes and select the Linode.

  3. In the Summary section at the top, check the encryption status. Not Encrypted means disk encryption is not enabled.

  4. Repeat for each Linode.

CLI:

Set the token:

export LINODE_TOKEN="<your-personal-access-token>"

List every Linode with its disk encryption status:

curl -s -H "Authorization: Bearer $LINODE_TOKEN" "https://api.linode.com/v4/linode/instances?page_size=500" | jq '.data[] | {id, label, region, disk_encryption}'

A Linode passes if disk_encryption is "enabled" and fails for any other value (for example "disabled").

Implementation Steps

Console, option 1 (recommended): create a new encrypted Linode and move the data

  1. Sign in to Cloud Manager at https://cloud.linode.com.

  2. Click + Create at the top right and select Linode.

  3. Choose the same region, image and plan as the existing Linode.

  4. In the Disk Encryption section, make sure Encrypt Disk is enabled.

  5. Select the same Cloud Firewall as the existing Linode and enable Automated VM Backups if needed.

  6. Click Create Linode.

  7. Copy the application and data from the old Linode to the new one and test that everything works.

  8. Move traffic to the new Linode (update DNS records, NodeBalancer back ends or IP addresses).

  9. When the new Linode is confirmed working, delete the old unencrypted Linode.

  10. Repeat for each Linode that failed the check.

Console, option 2: rebuild the existing Linode (all data on its disks is deleted)

  1. Back up all data on the Linode first.

  2. Sign in to Cloud Manager at https://cloud.linode.com.

  3. In the sidebar, under Compute, click Linodes.

  4. Click the more options menu (three dots) next to the Linode and select Rebuild.

  5. Select the image, enter a root password and make sure Encrypt Disk is enabled.

  6. Click Rebuild.

  7. When the rebuild is finished, reinstall the application and restore the data.

  8. Repeat for each Linode that failed the check.

Backout Plan

If a new Linode was created (option 1), keep the old Linode until the new one is confirmed working. To roll back, move traffic back to the old Linode (DNS, NodeBalancer or IP changes) and delete the new one.

If the Linode was rebuilt (option 2), the old unencrypted disks cannot be recovered. Restore the data from the backup taken before the rebuild.

Reference