Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Pool Dencryption during Booting #4

Open
alexsmartens opened this issue May 18, 2020 · 4 comments
Open

Feature Request: Pool Dencryption during Booting #4

alexsmartens opened this issue May 18, 2020 · 4 comments

Comments

@alexsmartens
Copy link

Thanks for an awesome write-up!
Do you have an idea on how to use a key instead of a passphrase? And unlock the pool during booting?

@alexsmartens
Copy link
Author

I have an idea about some changes to your script that theoretically should make it, however it does not work so far.

@dynerose, do think you could check it out?

https://github.com/alexsmartens/dual-boot-encrytpted-Ubuntu-installation/blob/master/Ubuntu20.04-encryptedZFS

@dynerose
Copy link
Owner

dynerose commented May 19, 2020 via email

@alexsmartens
Copy link
Author

alexsmartens commented May 19, 2020

Good point!
So the final idea is do a full drive encryption and to decrypt the drive on boot with the key stored in TPM 2.0.
The implementation would look like this: the boot partition is ext4 encrypted with LUKS and it is encrypted with the key from TPM. Then, the decrypted boot partition stores the key for the root ZFS volume, and the root volume is decrypted.

@alexsmartens
Copy link
Author

At the moment, I'm having troubles with decrypting the ZFS root with the key: chungy/zfs-boottime-encryption#2.
It seems, like the problem is somewhere in the GRUB config. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants