You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ rage --versionrage 0.7.1
$ rage -i /non-existent/path -i ~/.ssh/id_ed25519 -d secret.ageError: No such file or directory (os error 2)[ Did rage not do what you expected? Could an error be more useful? ][ Tell us: https://str4d.xyz/rage/report
I was expecting that the non-existent path identity would be totally ignored because the private key path (~/.ssh/id_ed25519) exists and is able to decrypt the secret, instead it complains about not being able to open the non-existent path. I think this could be useful for situations where you want to have a fallback identity, or want to transition the location of an identity to a different path.
The text was updated successfully, but these errors were encountered:
rage has always rejected non-existent identity files. Originally it would parse the identities from the given files, and then coalesce them (so e.g. identities from the same plugin would be tried together). This behaviour was changed in 481b994 to instead match age, and treat the provided -i flags as a direct indication of the user's decryption preferences. That line of reasoning implies that if a user specifies an -i flag, they intend for that identity to be used, and hence it must exist.
How does age behave in this context? cc @FiloSottile
What were you trying to do / what happened
I was expecting that the non-existent path identity would be totally ignored because the private key path (~/.ssh/id_ed25519) exists and is able to decrypt the secret, instead it complains about not being able to open the non-existent path. I think this could be useful for situations where you want to have a fallback identity, or want to transition the location of an identity to a different path.
The text was updated successfully, but these errors were encountered: