-
Notifications
You must be signed in to change notification settings - Fork 2.7k
gpg-interface: trim CR from ssh-keygen -Y find-principals #3561
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
Conversation
That looks like good material to put into the commit message. As the DCO bot pointed out, you also need to add your Signed-off-by: trailer. So: please amend the commit message with |
We need to trim \r from the output of 'ssh-keygen -Y find-principals' on Windows, or we end up calling 'ssh-keygen -Y verify' with a bogus signer identity. ssh-keygen.c:2841 contains a call to puts(3), which confirms this hypothesis. Signature verification passes with the fix. Signed-off-by: pedro martelletto <[email protected]>
Sure; done. Thanks for the feedback. |
Thank you! |
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
A new snapshot that includes the fix is now available. |
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
There's also https://bugzilla.mindrot.org/show_bug.cgi?id=3094 to make the verifier more lenient |
This will help future OpenSSH versions, but we cannot assume that everybody upgrades immediately. So I think we did the right thing, merging this PR. |
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
gpg-interface: trim CR from ssh-keygen -Y find-principals
It looks like we need to trim
\r
from the output ofssh-keygen -Y find-principals
's on Windows, or we end up callingssh-keygen -Y verify
with a bogus signer identity, as per screenshot. ssh-keygen.c:2841 seems to confirm this hypothesis. Signature verification passes with the fix.Apologies if this isn't the appropriate forum, and thank you for your work on Git for Windows!
-p.