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

fix(argo-cd): Update github SSH key fingerprint #1018

Merged

Conversation

hamza3202
Copy link
Contributor

@hamza3202 hamza3202 commented Nov 16, 2021

Fixes: /issues/1019
Github has two new fingerprints. This PR adds those fingerprints to default values.

Ref: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints

Signed-off-by: Muhammad Hamza Zaib hamzazaib3202@gmail.com

Checklist:

  • I have bumped the chart version according to versioning
  • I have updated the chart changelog with all the changes that come with this pull request according to changelog.
  • Any new values are backwards compatible and/or have sensible default.
  • I have signed off all my commits as required by DCO.
  • My build is green (troubleshooting builds).

Signed-off-by: Muhammad Hamza Zaib <hamzazaib3202@gmail.com>
@hamza3202 hamza3202 force-pushed the update-github-ssh-fingerprint branch from 2bb49dd to 662ba09 Compare November 16, 2021 19:14
@hamza3202
Copy link
Contributor Author

@mbevc1 could you please review this PR? Argo CD is not able to communicate with github right now.

@mbevc1
Copy link
Collaborator

mbevc1 commented Nov 16, 2021

@hamza3202 thanks for the contribution. Seems old keys have been dropped. Could we remove those and replace third one as well?
https://api.github.com/meta

Burnout plans: https://github.blog/2021-09-01-improving-git-protocol-security-github/

@hamza3202
Copy link
Contributor Author

@mbevc1 The three signatures added right now are the correct ones. You can generate and compare the fingerprints with the ones provided at https://api.github.com/meta by doing the following

> echo "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=" | tee key | ssh-keygen -lf -
256 SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM no comment (ECDSA)

> echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl" | tee key | ssh-keygen -lf -
256 SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU no comment (ED25519)

> echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==" | tee key | ssh-keygen -lf -
2048 SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8 no comment (RSA)

@idrissneumann
Copy link

For information: I did pretty the same fix here: #1020 (which I just closed because this pr is a little bit older ^^ ).

And I opened an issue here that you can link to this pr: #1019

Copy link
Member

@mkilchhofer mkilchhofer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Thanks for your contribution

@mkilchhofer mkilchhofer merged commit 27aa2a9 into argoproj:master Nov 17, 2021
@mbevc1
Copy link
Collaborator

mbevc1 commented Nov 17, 2021

It can be a separate PR, but we probable want to clean up old keys as they are not in use any more. Cheers for adding new ones in 👍

@hamza3202
Copy link
Contributor Author

It can be a separate PR, but we probable want to clean up old keys as they are not in use any more. Cheers for adding new ones in +1

@mbevc1 which key are you referring to as the old keys?

@mbevc1
Copy link
Collaborator

mbevc1 commented Nov 17, 2021

@hamza3202
Copy link
Contributor Author

Those are for gitlab not github.

@mbevc1
Copy link
Collaborator

mbevc1 commented Nov 17, 2021

Ah, your are right. Sorry about that, GH diff got me confused for a bit here :) All good. Thanks again 👍

reinvantveer pushed a commit to reinvantveer/argo-helm that referenced this pull request Dec 2, 2021
Signed-off-by: Muhammad Hamza Zaib <hamzazaib3202@gmail.com>
terrych0u pushed a commit to terrych0u/argo-helm that referenced this pull request Dec 23, 2021
Signed-off-by: Muhammad Hamza Zaib <hamzazaib3202@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Github has changed their public keys
4 participants