DigitalOcean Volumes are scalable, SSD-based block storage devices. Volumes allow you to create and expand your infrastructure’s storage capacity without needing to resize your Droplets.
Volumes are encrypted at rest, which means that the data on a Volume is not readable outside of its storage cluster. When you attach a Volume to a Droplet, the Droplet is presented with a decrypted block storage device and all data is transmitted over isolated networks.
For additional security, you can also create a file system in a LUKS encrypted disk on your Volume. This means that the disk will need to be decrypted by the operating system on your Droplet in order to read any data.
Encrypting the file system of your Volume Block Storage is important for several reasons:
This process is destructive to any data on the Volume. Be sure to either start with a new Volume or back up your data before reformatting an existing Volume.
Encryption and decryption processes can introduce latency, impacting read/write speeds and overall system performance.
Good practices for preventing data loss are:
Use the following script to check if the disk is encrypted.
- cryptsetup status secure-volume
Expected output for an inactive device will look similar to this:
- /dev/mapper/secure-volume is inactive
Expected output for an active device will look similar to this
- /dev/mapper/secure-volume is active and is in use.
- type: LUKS2
- cipher: aes-xts-plain64
- keysize: 512 bits
- key location: keyring
- device: /dev/sda
- sector size: 512
- offset: 32768 sectors
- size: 209682432 sectors
- mode: read/write
- apt-get install cryptsetup
- sudo apt install cryptsetup
- yum install cryptsetup
- dnf install cryptsetup
By default, DigitalOcean Volumes are encrypted when they are not attached to a Droplet.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.