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

Question: Any plans for supporting keylocation=https:// #9947

Closed
geek-at opened this issue Feb 5, 2020 · 3 comments
Closed

Question: Any plans for supporting keylocation=https:// #9947

geek-at opened this issue Feb 5, 2020 · 3 comments
Labels
Type: Feature Feature request or new feature

Comments

@geek-at
Copy link

geek-at commented Feb 5, 2020

I tried to implement a system where ZFS gets the encryption key from a local HTTP server (as described in the official oracle docs) but creating it using zfs create -o encryption=on -o keylocation=https://mykeyserver/keyforthisserver -o keyformat=raw data/enc fails with

cannot create 'data/enc2': invalid keylocation

Are there any plans on implementing it? For now I'll just mount the key via nfs and use the file:///path method

@behlendorf behlendorf added the Type: Feature Feature request or new feature label Feb 5, 2020
@behlendorf
Copy link
Contributor

Yes, this functionality is planned. There's an initial patch for FreeBSD which uses libfetch. It needs to be adapted for Linux to use libcurl or another library.

@kimono-koans
Copy link

Perhaps it should be noted that zfs-load-key will accept a key piped from std-out, so you can use curl to direct its output to a pipe to achieve a similar result. I use something similar (smbget) and a systemd service to load the keys when the network is up.

@kimono-koans
Copy link

Excuse me, I'm not sure this works for raw keys, but it does work for passphrases with the keylocation set to "prompt."

nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 27, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 27, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 27, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 27, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 27, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 27, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 27, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 27, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 27, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 27, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 27, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 27, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 27, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 28, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 28, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 28, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 28, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 28, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 28, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 28, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue Apr 28, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 3, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 4, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 4, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 4, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 4, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 4, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 4, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 4, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 4, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 5, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 5, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 5, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 5, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 8, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 8, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 12, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 12, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 12, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 12, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 12, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 12, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 12, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 12, 2021
nabijaczleweli added a commit to nabijaczleweli/zfs that referenced this issue May 12, 2021
tonyhutter pushed a commit to tonyhutter/zfs that referenced this issue Feb 10, 2022
Add support for http and https to the keylocation properly to
allow encryption keys to be fetched from the specified URL.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Issue openzfs#9543
Closes openzfs#9947
Closes openzfs#11956
tonyhutter pushed a commit to tonyhutter/zfs that referenced this issue Feb 14, 2022
Add support for http and https to the keylocation properly to
allow encryption keys to be fetched from the specified URL.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Issue openzfs#9543
Closes openzfs#9947
Closes openzfs#11956
tonyhutter pushed a commit to tonyhutter/zfs that referenced this issue Feb 16, 2022
Add support for http and https to the keylocation properly to
allow encryption keys to be fetched from the specified URL.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Issue openzfs#9543
Closes openzfs#9947
Closes openzfs#11956
tonyhutter pushed a commit to tonyhutter/zfs that referenced this issue Feb 17, 2022
Add support for http and https to the keylocation properly to
allow encryption keys to be fetched from the specified URL.

Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Issue openzfs#9543
Closes openzfs#9947
Closes openzfs#11956
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Feature request or new feature
Projects
None yet
Development

No branches or pull requests

3 participants