-
Notifications
You must be signed in to change notification settings - Fork 121
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
identityPaths doesn't act like list #116
Comments
Needs str4d/rage#294 to be fixed. |
@ryantm reviewing that issue, seems like this is more of a decision on the part of the rage team than something that wil be fixed. Might there be a way to filter Line 57 in b7ffcfe
Happy to work on PR if you think this slight departure from Perhaps could even have a user-facing flag that defaults to |
I think you're right. Let's work around it. I don't think we need an option! |
If you weren't already planning on it, I'd strongly suggest implementing the check as part of one of the scripts, rather than in Nix; paths may not be available at build / evaluation time, but may when the script runs. |
Setting
age.identityPaths = [ "/etc/ssh/ssh_host_rsa_key" "/etc/nixos/keys/${config.networking.hostName}/id_rsa" ];
will give a warning that the first doesn't exist (at the moment, after boot it will) and I expected it to fallback to the second one. That doesn't happen and it fails to decrypt the secrets. Switching the order works but then if workaround path doesn't exist the same issue comes up.The text was updated successfully, but these errors were encountered: