-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Confusing --disk-encryption-keys semantics #403
Comments
I'm having issues with While thinking about it: Why is it important that the remote path is fixed, too? Wouldn't a sensible implementation make the remote filepath a superfluous setting at all? As a user, I'm controlling the input (the local key), but the remote key location is processed by the program itself. |
the remote key path is specified in your disko config so it depends where its put: @felixdorn
add a deprecation notice for v2.0 🥳 EDIT: although i dont speak for the maintainers! |
Thanks for the explanation. This makes a bit sense then. I have dismissed the disko parameter, as I thought this is used for a static setup where a secret inside disk1 can be used to unlock disk2. Is this documented anywhere? I only find Did I miss some docs or do I need to update them? Sorry for hijacking this thread. |
I talked to someone from Numtide at Nixcon about this and I remember them having mixed feeling. It's fuzzy, but I think they convinced me that it wasn't too bad, although I don't remember why and how.
I think we might not want to generalize too much (--pre-disko-files), but just enough (--copy-secret) to avoid the confusion. The only use case of this argument is to copy disk secrets after all. |
I dont see anything specific in nixos-anyhere that ties it all together. Seems to be in disko's examples directory for luks setup which one would have to familiarize with to make disko work. adding more to that section in the secrets.md would be good. |
I'd be happy to submit a PR to improve this but I'd like to have some approval (or refusal) first.
Why it's confusing
--disk-encryption-keys
has nothing to do with disko but it is so specific that it's difficult not to think that it messes withsettings.keyFile
,settings.passwordFile
, oradditionalKeyFiles
<dest> <source>
instead of<source> <dest>
, which seems like a footgun, it's not whatcp
,install
or a myriad of other copy utilities use.How we could improve it
--disk-encryption-keys
in favor of a less-suggestive--copy-secret
The text was updated successfully, but these errors were encountered: