talos
talos copied to clipboard
Support hardware OPAL disk encryption
Feature Request
Add support for hardware OPAL disk encryption in the existing luks2 provider.
Description
cryptsetup 2.7.0 introduce support for hardware OPAL disk encryption (see release notes) by adding --hw-opal and --hw-opal-only flags to the cryptsetup luksFormat action.
I propose adding support for these options to the existing luks2 provider by adding a new field to the EncryptionConfig.
This feature will also require support for removing OPAL locked ranges during machine reset operation. cryptsetup support this with their luksErase action. The only other way to recover OPAL locked ranges is by performing a full drive factory reset using the PSID key physically printed on the drive, making it hard to automate in a secure manner.
References
https://lore.kernel.org/cryptsetup/[email protected]/T/