{"id":74691,"date":"2023-06-05T13:12:17","date_gmt":"2023-06-05T17:12:17","guid":{"rendered":"https:\/\/jumpcloud.com\/?post_type=support&p=74691"},"modified":"2023-09-12T14:00:28","modified_gmt":"2023-09-12T18:00:28","slug":"create-a-check-disk-encryption-policy-for-linux","status":"publish","type":"support","link":"https:\/\/jumpcloud.com\/support\/create-a-check-disk-encryption-policy-for-linux","title":{"rendered":"Create a Check Disk Encryption Policy for Linux"},"content":{"rendered":"\n
JumpCloud administrators can create and apply a Linux Check Disk Encryption Policy to one device or group of devices, helping secure their data and sensitive information across their fleet of JC-managed Linux devices. Without this policy, an admin would need to manually track which devices require encryption and verify if they are encrypted to ensure proper data security and compliance. With JumpCloud\u2019s Linux Check Disk Encryption Policy, admins can specify which devices to encrypt and, more specifically, if the devices require only managed home directories or full disk encryption (FDE). Once the policy is applied, the administrator will be notified if any of the targeted devices don\u2019t meet the required encryption requirements.<\/p>\n\n\n\n
Considerations<\/strong><\/p>\n\n\n\n Linux devices can be encrypted in one of two ways: <\/p>\n\n\n\n Full disk encryption is preferred, as it ensures that the system is inaccessible without entering an encryption passphrase. Additionally, fscrypt doesn\u2019t encrypt filesystem metadata except for filenames, whereas full disk encryption ensures everything written to the disk is encrypted. After reviewing this article, you should know how to encrypt the entire disk, as well as how to encrypt only home directories on your system. FDE protects the data on a block device by encrypting it. To access the device\u2019s decrypted contents, a user must provide a passphrase or key as authentication. This provides additional security beyond existing operating system security mechanisms, as it protects the device\u2019s contents even if it was physically removed from the system. FDE is implemented using LVM (Logical Volume Management) for disk management and LUKS (Linux Unified Key Setup) encryption in all modern distro installer wizards.<\/p>\n\n\n\n As a system administrator, you can encrypt your device’s storage devices using LUKS, which is a specification for block device encryption. It establishes an on-disk format for the data, as well as a passphrase\/key management policy.<\/p>\n\n\n\n LUKS uses the kernel device mapper subsystem with the dm-crypt module. This arrangement provides a low-level mapping that handles encryption and decryption of the device data. You can use the cryptsetup utility to perform user-level operations such as creating and accessing encrypted devices. Note<\/strong>: LUKS is not well-suited for applications requiring more than eight users to have distinct access keys to the same device or file-level encryption. <\/a>How to Enable LUKS Encryption<\/strong><\/p>\n\n\n\n Note<\/strong>: For a slightly more encrypted disk, you can follow this in-depth wiki article: https:\/\/help.ubuntu.com\/community\/Full_Disk_Encryption_Howto_2019<\/a>. However, the standard Ubuntu installer option is sufficient for most, and the tradeoff for usability is acceptable. <\/p>\n\n\n\n Ubuntu 16.04, 18.04 LTS releases: Note<\/strong>: For a slightly more encrypted disk, you can follow this in-depth wiki article: https:\/\/docs.fedoraproject.org\/en-US\/quick-docs\/encrypting-drives-using-LUKS\/<\/a>. However, the standard installer option is sufficient for most, and the tradeoff for usability is acceptable.\n
\n
This KB article covers:<\/strong><\/p>\n\n\n\n\n
\n
\n
Full Disk (Block Device) Encryption (FDE)<\/strong><\/h2>\n\n\n\n
<\/a>Introduction to LUKS<\/strong><\/h3>\n\n\n\n
<\/a>What LUKS Does<\/strong>
<\/p>\n\n\n\n\n
<\/p>\n\n\n\n
In general, you can enable LUKS encryption using LVM partition management during the initial installation of your distribution of choice.<\/p>\n\n\n\n
Ubuntu<\/strong><\/p>\n\n\n\n
Ubuntu 20.04 LTS:
Ubuntu 20.10 (currently unsupported by JC) and newer versions):
Note<\/strong>: Ubuntu supports native ZFS encryption in 20.10 and up, which is not yet supported by JC.<\/p>\n\n\n\n
Fedora<\/strong><\/p>\n\n\n\n
<\/p>\n\n\n\n
Red Hat Enterprise Linux (RHEL)<\/strong><\/p>\n\n\n\n