Chapter 6. Enabling disk encryption
You can enable encryption of installation disks using either the TPM v2 or Tang encryption modes.
In some situations, when you enable TPM disk encryption in the firmware for a bare-metal host and then boot it from an ISO that you generate with the Assisted Installer, the cluster deployment can get stuck. This can happen if there are left-over TPM encryption keys from a previous installation on the host. For more information, see BZ#2011634. If you experience this problem, contact Red Hat support.
6.1. Enabling TPM v2 encryption Copy linkLink copied to clipboard!
You can enable TPM v2 encryption from the Assisted Installer web console or API.
Prerequisites
-
Check to see if TPM v2 encryption is enabled in the BIOS on each host. Most Dell systems require this. Check the manual for your computer. The Assisted Installer will also validate that TPM is enabled in the firmware. See the
disk-encruption
model in the Assisted Installer API for additional details.
Verify that a TPM v2 encryption chip is installed on each node and enabled in the firmware.
Procedure
- Optional: Using the web console, in the Cluster details step, enable the encryption of installation disks for any of the following nodes: control plane nodes, workers, or arbiter.
Optional: Using the API, include the following settings in the "Modifying hosts" procedure to enable TPM v2 encryption:
Set the
disk_encryption.enable_on
setting to one of the following:-
"none"
-
"all"
-
"masters"
-
"arbiters"
-
"workers"
-
"masters,arbiters"
-
"masters,workers"
-
"arbiters,workers"
-
"masters,arbiters,workers"
-
Set the
disk_encryption.mode
setting totpmv2
.Example
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
6.2. Enabling Tang encryption Copy linkLink copied to clipboard!
You can enable Tang encryption from the Assisted Installer web console or API.
Prerequisites
- You have access to a Red Hat Enterprise Linux (RHEL) 8 machine that can be used to generate a thumbprint of the Tang exchange key.
Procedure
- Set up a Tang server or access an existing one. See Network-bound disk encryption for instructions. You can set multiple Tang servers, but the Assisted Installer must be able to connect to all of them during installation.
On the Tang server, retrieve the thumbprint for the Tang server using
tang-show-keys
:tang-show-keys <port>
$ tang-show-keys <port>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: Replace
<port>
with the port number. The default port number is80
.Example thumbprint
1gYTN_LpU9ZMB35yn5IbADY5OQ0
1gYTN_LpU9ZMB35yn5IbADY5OQ0
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: Retrieve the thumbprint for the Tang server using
jose
.Ensure
jose
is installed on the Tang server:sudo dnf install jose
$ sudo dnf install jose
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On the Tang server, retrieve the thumbprint using
jose
:sudo jose jwk thp -i /var/db/tang/<public_key>.jwk
$ sudo jose jwk thp -i /var/db/tang/<public_key>.jwk
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
<public_key>
with the public exchange key for the Tang server.Example thumbprint
1gYTN_LpU9ZMB35yn5IbADY5OQ0
1gYTN_LpU9ZMB35yn5IbADY5OQ0
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Optional: Using the web console, in the Cluster details step, enable the encryption of installation disks for any of the following nodes: control plane nodes, workers, or arbiter. You will be required to enter URLs and thumbprints for the Tang servers.
Optional: Using the API, include the following settings in the "Modifying hosts" procedure to enable Tang encryption:
Set the
disk_encryption.enable_on
setting to one of the following:-
"none"
-
"all"
-
"masters"
-
"arbiters"
-
"workers"
-
"masters,arbiters"
-
"masters,workers"
-
"arbiters,workers"
-
"masters,arbiters,workers"
-
-
Set the
disk_encryption.mode
setting totang
. Set
disk_encyrption.tang_servers
to provide the URL and thumbprint details about one or more Tang servers. Within thetang_servers
value, comment out the quotes within the object(s).Example
Copy to Clipboard Copied! Toggle word wrap Toggle overflow