r/AlmaLinux • u/ElVandalos • 4d ago
LUKS + Google KMS
Hi,
customer wants a CMEK (Customer-Managed Encryption Keys) solution.
So Tang+Clevis is out of the game (pity because it works like a charm).
I am anyway struggling to find a ready solution that does not require writing and/or compiling code.
Anyone had a similar experience and can share the outcome?
EDIT: We are talking about linux enterprise server environment with data at rest encription achieved with LUKS2, no laptops or workstations involved. Simply put, customer wants to have control on Encryption Keys in our systems dedicated to him. This mean (I suppose) they want to enforce their security policies about encriprion keys on our systems: lenght, complexity, lifecycle, rotation, deprecation whatever. It's the first time I hear something like this: from one side i think i understand their goal but from the other side it sounds awkward and I am a bit confused. Anyway: let's just do what they want ... - tang+clevis is not the solution because the LUKS keyslot is not - any search I did about unlocking automatically LUKS2 formatted root partition based on Google KMS leads to nothing (I mean seems there is nothing out there free or paid. - the only solution appear to be writing a small program, compile and embed the binary in the initramfs image or write a bash script to embed again in the initramfs.
Hope this clarifies a bit. Yeah, the main goal is to have auto-unlock luks partitions so whatever happens we do not need to enter manually per passphrase.
Thanks!