git bug push fails with SHA-1 key message

Labels: area/dependencies kind/bug lifecycle/active priority/important-soon triage/accepted

Timeline

Dan Passaro (dan-passaro) opened

I'm getting this error in git bug:

$ git bug push
Error: unknown error: 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.

The keypair for my user account is SHA256, and is accepted by github (i.e. git push in the same repository works fine). Is there any way I can fix this?

Sascha (GlancingMind) commented

Hey thanks for reporting. :-)

Are you using the latest release of git-bug (v.0.8.0) or the master version?

Because go-git (which git-bug uses under the hood) had this issue, too. For Reference see: https://github.com/go-git/go-git/issues/516.

While go-git seems to already have merged a fix for this issue (see this comment), git-bug could still have this issue in its latest released version, because the fix was introduced shortly after the latest release of git-bug.

Date of latest git-bug release (v.0.8.0): Nov 20, 2022 Creation date of possible fix within go-git repo: Nov 25, 2022

But this is only a guess. ;-)

Dan Passaro (dan-passaro) commented (edited)

Yes, I'm using the latest release. I'll try running from trunk instead. Thanks for the help! (Update: you were right, I built v0.8.0-dev-20e62977a0 from trunk and now I can push successfully. Thanks again!)

nicobo (nicobo) commented (edited)

Hi.

I confirm building from the master fixes it. Why not making a new release ?

sudoforge closed the bug

sudoforge opened the bug

sudoforge added label kind/bug

sudoforge added label area/dependencies

sudoforge added label lifecycle/active

sudoforge added label triage/accepted

sudoforge added label priority/important-soon

sudoforge closed the bug