-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support zfs native encryption #4
Comments
This is not really supported yet. If anyone ever needs this, feel free to comment on this |
Since encryption support has been added since >= 7.01. Is it possible to add encryption support into sd-zfs? |
I see what I can do. I'm currently very busy with other projects, so I can't guarantee that I will add it soon. If anyone with C knowledge wants to help, I'm happy to help with the code and merge a PR |
Hello, are there any news on this matter? |
There is a PR (#24), but I cannot really test it right now because my zfs on root broke (too much source code patching...) |
@dasJ I can help you finish the implementation and test it; what needs to be done? |
I am also game to help on this as it personally relevant. I fully intend to have natively encrypted zfs on root one way or another and this is the best option of which I am aware. |
In fact, this may not even need to be in the purview of sd-zfs... It may be as simple as changing a line in the
to:
which includes the option to query all data sets contained in the pool to determine if an encryption key is needed. When this is performed in a booted environment, the terminal will block for passphrase or check the provided key location in order to decrypt the drive. I don't see why this would not also be the case when the pools are initially imported... I plan to try on a throwaway system at some point soon but if others have results please share them here. |
OK, so it is not as simple as that because there still isn't a hook in to query the user for a password. It may work if the dataset were encrypted with a hardware token, but that is just a corner case. Basically, there needs to be a |
This looks like a fantastic place to start: https://github.com/archzfs/archzfs/blob/master/src/zfs-utils/zfs-utils.initcpio.hook The intended purpose of the |
Apparently, the standard https://blog.seonwoolee.com/using-zfs-native-encryption-on-root/ So we should be able to support it with |
+1 |
1 similar comment
+1 |
https://github.com/gsauthof/dracut-sshd https://manpath.be/f32/1/systemd-tty-ask-password-agent Maybe the use of systemd-tty-ask-password-agent does what you need? @guygma Edit: How it is done in dracut: https://github.com/openzfs/zfs/blob/master/contrib/dracut/90zfs/zfs-load-key.sh.in |
Any updates on this? |
No description provided.
The text was updated successfully, but these errors were encountered: