Skip to content
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

zstream should be able to wrap/unwrap encrypted streams. #16183

Open
rincebrain opened this issue May 10, 2024 · 0 comments
Open

zstream should be able to wrap/unwrap encrypted streams. #16183

rincebrain opened this issue May 10, 2024 · 0 comments
Labels
Component: Send/Recv "zfs send/recv" feature Type: Feature Feature request or new feature

Comments

@rincebrain
Copy link
Contributor

Describe the feature would like to see added to OpenZFS

It would be useful to be able to send encrypted streams that are not encrypted on the initial source and without requiring the receiver to have access to the keys, e.g. zfs send -RLc mypool/ds1@unencrypted | zstream encrypt -K [...] | ssh EC2machine zfs receive destpool/enc_ds1.

It would also similarly be useful to be able to unwrap these on the receiver without having to do a dance of receiving them encrypted, unlocking it, and doing an unencrypted send there.

The devil in this, of course, becomes the additional metadata we stash for noticing if the encryption root changed, though I suppose if we did something to deterministically derive it from the key material you could synthesize a unique enough ID to persist across sends and get consistent error behavior on the receiver...

How will this feature improve OpenZFS?

More flexible/convenient handling of native encryption for testing and various migration use cases.

Additional context

Conceivably, we could extend send or receive to do this themselves, but I think the existing zstream filter makes more sense, personally.

@rincebrain rincebrain added Type: Feature Feature request or new feature Component: Send/Recv "zfs send/recv" feature labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Send/Recv "zfs send/recv" feature Type: Feature Feature request or new feature
Projects
None yet
Development

No branches or pull requests

1 participant