-
Notifications
You must be signed in to change notification settings - Fork 77
Description
Hello @ewwhite,
Do you know (or should I start poking around and report what I see?) what the ramifications of native ZFS encryption would be on this kind of system?
Obviously, encryption-at-rest is an awesome thing to have in general (and it's finally here on ZoL).
Reading through the zfs and zpool manpages, having keylocation=prompt wouldn't work, but setting it to file://FILE.(hex|raw|passphrase) and doing zpool import -l seems realistic (so long as the keylocation isn't inside the pool, obviously).
We'd probably want to zfs unload-key asap inside the pool that died too, but encrypted mounts can't happen if zfs "keystatus" property is "unavailable".
Maybe there should be some logic around the "encryptionroot" property; something like: "import the pool so long as at least one filesystem in the pool doesn't have this property set," for instance. Then it would at least mount something regardless of keystatus, and encrypted datasets could be manually mounted later?
What are your thoughts? I feel like this will be quite the undertaking..