Report this

What is the reason for this report?

How to encrypt volume in Kubernetes Persistent volume

Posted on September 17, 2020

Hi,

I am reaching out to find a guide on how to setup encrypted storage in digital ocean managed Kubernetes cluster? My understanding is that when a storage is provisioned it is not encrypted at rest and if someone to gain access to the block storage, anyone can mount the volume and read the data.

I would like to find out if there is away that volume is encrypted and only the pod that is requested to mount the volume can access the content in the volume. Not sure if anyone has achieved this? Any help is really appreciated. :)

Thanks!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Our default CSI uses DO block storage. You can see in the docs here that these are indeed encrypted.

Encryption: Volumes are encrypted with LUKS (Linux Unified Key Setup). The entire storage cluster is encrypted, so snapshots of volumes are also encrypted at rest.

Hope this helps!

John Kwiatkoski

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.