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?

질문됨 2년 전316회 조회
1개 답변
0
수락된 답변

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.

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠