-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add init script to automatic load keys #11659
Comments
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
One problem with key files is that a ZFS dataset can't contain multiple keys. If you lose key files, your encrypted zfs dataset is lost. key files can also be stolen by hackers. If you memorize one passphrase, multiple zfs datasets can be unlocked with one passphrase during boot. /usr/lib/dracut/modules.d/99local/module-setup.sh
/usr/lib/dracut/modules.d/99local/zfs-load-key-all.sh
The scripts are dirty because I didn't have time for cleanness. |
That is no argument, because as soon as the system is up and running and attacker has also access to the already loaded keys and mounted filesystems. Please stop hijacking this feature request. You don't have to use this feature and can use other solutions. |
Anyway, it is good to have /etc/init.d/zfs-load-key |
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
Add new init scripts which allow automatic loading of keys if keylocation proerty is set to a URI. Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659
openzfs/zfs@f04b976 ^ this commit added zfs-load-key service let's notify users that they may want to add it. openzfs/zfs#11659 openzfs/zfs#11662 Signed-off-by: Georgy Yakovlev <[email protected]>
Add new init scripts which allow automatic loading of keys if keylocation property is set to a URI. Reviewed-by: Ahelenia Ziemiańska <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659 Closes openzfs#11662
Add new init scripts which allow automatic loading of keys if keylocation property is set to a URI. Reviewed-by: Ahelenia Ziemiańska <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659 Closes openzfs#11662
Add new init scripts which allow automatic loading of keys if keylocation property is set to a URI. Reviewed-by: Ahelenia Ziemiańska <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Benedikt Neuffer <[email protected]> Closes openzfs#11659 Closes openzfs#11662
openzfs/zfs@f04b976 ^ this commit added zfs-load-key service let's notify users that they may want to add it. openzfs/zfs#11659 openzfs/zfs#11662 Signed-off-by: Georgy Yakovlev <[email protected]>
Motivation
I am using ZFS with encryption on a storage server. The root pool is decrypted during boot in dracut. With dracut-crypt-ssh decryption of root pool is possible from remote.
OpenZFS datastores have to be decrypted afterwards manually.
Describe the feature would like to see added to OpenZFS
A init script for OpenZFS which loads keys from URI saved in keylocation property.
How will this feature improve OpenZFS?
This adds a similar functionality to OpenZFS like
/etc/crypttab
for encrypted block devices on Linux.The text was updated successfully, but these errors were encountered: