Skip to main content

How do we enable disk encryption at rest on bare metal?

Syself support For release

For disk encryption at rest on bare-metal Kubernetes nodes, you encrypt each data disk with LUKS, the standard disk encryption on Linux, and you hold the key. Syself Linux ships the tools for it (cryptsetup and dm-crypt). No cluster setting turns it on, so you set it up once per disk.

You encrypt the disk first, then build the volume group that TopoLVM uses on the unlocked device. A small DaemonSet that you run unlocks the disks at every boot, before storage starts. Your volumes and pods work as before. Audits such as ISO 27001 ask for encryption at rest, and this is how you meet it for the data on your local volumes.

Before you start:

  • Encrypting erases the disk. Do it on an empty data disk.
  • The OS disk is not encrypted.
  • The key is yours alone. If you lose it, the data is gone and Syself cannot recover it.

Follow Encrypt data at rest with LUKS for the commands and the unlock DaemonSet. You also find the setup for Hetzner Cloud Volumes there. Secrets in etcd are encrypted with a separate setting on the Cluster, described in Encrypt etcd.

If you have a use case that needs more than this, for example an encrypted OS disk, reach out to us at support@syself.com⁠. If you want hands-on help with the setup, Syself's integration partners can do it with you: Can Syself help with more than running clusters?

Still stuck?

Prepare your case, then email us.