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

Host key mismatch #7736

Closed
1 task done
aquarelacs-rodrigo-araujo opened this issue Nov 17, 2021 · 4 comments
Closed
1 task done

Host key mismatch #7736

aquarelacs-rodrigo-araujo opened this issue Nov 17, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@aquarelacs-rodrigo-araujo
Copy link

If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a question in argocd slack channel.

Checklist:

  • [ x] I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • [ x ] I've pasted the output of argocd version.

Describe the bug

I have a private github repository configured in argocd for my applications, recently we had a problem with this repository failing to connect without any previous changes to the ssh key of github or argocd.

After recreating the connection to the repository using the insecure-ignore-host-key flag, the connection works.

I would like to find the root cause of this issue to mitigate any eventualities in the future.

To Reproduce

Unable to reproduce the error

Expected behavior

As the key is valid, I hope the connection with the repository is successful.

Screenshots
image

Version

v2.0.2+9a7b0bc

Logs

time="2021-11-16T19:43:43Z" level=info msg="finished unary call with code OK" grpc.code=OK grpc.method=Check grpc.request.deadline="2021-11-16T19:44:43Z" grpc.service=grpc.health.v1.Health grpc.start_time="2021-11-16T19:43:43Z" grpc.time_ms=0.126 span.kind=server system=grpc


@aquarelacs-rodrigo-araujo aquarelacs-rodrigo-araujo added the bug Something isn't working label Nov 17, 2021
@mabushey
Copy link

We have this problem too. This redhat ticket from yesterday ( https://access.redhat.com/solutions/6517171 ) says:
Issue: SSH from GitOps to github began failing after Github.com made changes to their SSH endpoint.

@brsolomon-deloitte
Copy link
Contributor

brsolomon-deloitte commented Nov 17, 2021

Related: #7725, #7723

@alexmt
Copy link
Collaborator

alexmt commented Nov 17, 2021

Fixed by #7722 . The fix is available in v2.1.7 release

@alexmt alexmt closed this as completed Nov 17, 2021
@kelveden
Copy link

For anyone who has arrived here trying to fix the same problem but via the official helm chart. (Currently the latest Argo version in the chart is 2.1.6.)

A workaround that worked for me was to add this to the helm manifest:

configs:
  knownHosts:
    data:
      ssh_known_hosts: |
        github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=
        github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl

IMPORTANT: I've only added the two new github.com keys added in the fix #7722; so if you need access to hosts other than github.com, you'll need to add those keys in too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants