Creating encrypted backups from encrypted ZFS pools #3572
-
I've created an encrypted ZFS pool with the goal of having the volume snapshots stored in S3 be encrypted. The snapshot is taken as expected, but it's not encrypted. I posted this originally over at openebs/velero-plugin#181 but it hasn't gotten any attention yet. I'm posting it here now because I think the Snapshot behavior is actually implemented in this repository and some insight could be given by someone more knowledgeable than me. What steps did you take and what happened: I'm using OpenEBS ZFS-localPV
What did you expect to happen: The The output of the following commands will help us better understand what's going on:
Anything else you would like to add: Since there is no specific documentation on this subject in either this nor the drivers repository, I'm not sure if I might just have misunderstood or misconfigured something. What I'm trying to do is have both encrypted ZFS filesystems backing my PVCs on the actual disk AND have the backup be encrypted in the cloud as well! Meaning it's not necessarily possible to restore a backup (fully) without the encryption key from the host (specified when creating the zpool) and the data on my PVCs is encrypted at rest. Environment:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I have done some more digging on how this works internally and have come to understand the following:
So far so good, the critical point here is in step 4 above. To quote from the
I have tested this locally by manually creating a ZFS snapshot of a PVC which has a file called
My understanding of this behavior is that the omission of the |
Beta Was this translation helpful? Give feedback.
-
Thanks for the extensive debugging and providing a possible solution. Please feel free to contribute with a PR on the https://github.com/openebs/zfs-localpv repository. |
Beta Was this translation helpful? Give feedback.
I have done some more digging on how this works internally and have come to understand the following:
ZFSBackup
resource in Kubernetes https://github.dev/openebs/velero-plugin/blob/cea57783e3ed887d2b7b0e7bafc436ff26bd9…