ZFS Reliability of ZFS native encryption

First of all, this is not a question about ZFS-on-GELI vs. ZFS native encryption, which has been addressed many times exhaustively on this Forum. I understand the differences between the two conceptually and in terms of metadata visibility, performance, etc. I have also read Thread why-use-geli-underneath-zfs-these-days.97928, which contains some posts relevant to the topic at hand.

The background: recently, in order to guard myself better against data loss/corruption, I switched all of my home storage and backup infrastructure over from UFS-on-GELI to ZFS, with native encryption enabled for most datasets.

Unfortunately, the choice of native encryption was based on naïve enthusiasm and not altogether factually informed. In particular, I found out only afterward about the data corruption bug affecting non-raw zfs-send(8)/zfs-recv(8) that was (apparently) patched last year. Unfortunately, my backup scripts rely on this functionality for sending/receiving incremental snapshots, both locally and over the network. Nothing bad has happened, and I did patch my systems as per Security Advisory FreeBSD-EN-25:10.zfs. Yet reading further around the bug has been unnerving and brought to light, among other things, the relative lack of maturity of the ZFS native encryption code base.

Has anyone here actually had this bug rear its head under ordinary conditions, and if so, was it possible to recover from it, e.g. with a zpool-scrub(8)? Is it irrational in general to worry about this?

There must be tons of users out there who have been using ZFS native encryption at scale for years without any issues; if you are one of those people, it would be great if you could share your experience. Failing such reassurance, I am contemplating switching everything to ZFS-on-GELI. This would entail some initial pain, as I am rather locked in to native encryption at the moment, but would still be vastly preferable to risking data loss. My 2¢.
 
Don't take the silence of the forum as anything other than your thread going unnoticed by a billion possible reasons.

I have no direct experience, but according to my findings you are more than fine using the native encryption as long as you use the raw option of the zfs send command.

I know that I'm not precisely the kind of reassurance you are looking for, because I lack direct experience, but perhaps this comment will help to jump-start the thread (perhaps).
 
There must be tons of users out there who have been using ZFS native encryption at scale for years without any issues; if you are one of those people, it would be great if you could share your experience. Failing such reassurance, I am contemplating switching everything to ZFS-on-GELI. This would entail some initial pain, as I am rather locked in to native encryption at the moment, but would still be vastly preferable to risking data loss. My 2¢.

I don't think there a ton of users of ZFS encryption. It is a rather new feature and most install scripts (both FreeBSD and Linux) use an encrypted block layer under ZFS when asked to encrypt. ZFS native encryption has to my knowledge not received a serious review by security researchers, that can make it less attractive than e.g. cryptsetup on Linux.

I would say it is too late to switch to ZFS on GELI because of that bug that is now fixed.
 
Thanks to both of your for your replies, even if they do not entirely alleviate the concerns expressed above. As stated by cracauer@, the default installer option being ZFS over GELI is a weighty argument. Certainly enough to think about for the time being.
 
Back
Top