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?

asked 2 years ago309 views
1 Answer
0
Accepted Answer

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.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions