OpsWorks: cannot connect with Github due to SSH key / RSA issues

1

Our OpsWorks stacks will no longer deploy. They are failing when trying to connect to GitHub. Here's the error (with my github stuff obfuscated):

================================================================================
Error executing action `checkout` on resource 'git[Download Custom Cookbooks]'
================================================================================
 
 
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '128'
---- Begin output of git ls-remote "git@github.com:********"  ----
STDOUT: 
STDERR: ERROR: You're using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
 
fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.

The repo does exist. And when I try to put in a newer form of RSA key, the OpsWorks control panel rejects it. OpsWorks seems to want an old version of RSA which GitHub will no longer support. We're totally stuck. How do we get out of this?

  • I'm running into the same issue. Did you figure out any solution?

demandé il y a 2 ans315 vues
1 réponse
0
Réponse acceptée

Unfortunately my only solution was that I realized we had another OpsWorks stack using the same SSH key, and when I copy/pasted that old key back to my machine, it worked. Magical solution that I still do not understand. I'm sorry I can't be more helpful. ;( For what it's worth, we are going to try to migrate completely off of OpsWorks during 2023.

répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions