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?

preguntada hace 2 años315 visualizaciones
1 Respuesta
0
Respuesta aceptada

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.

respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas