axion-release-plugin
axion-release-plugin copied to clipboard
Invalid private key
* What went wrong:
Execution failed for task ':release'.
> org.eclipse.jgit.api.errors.TransportException: [email protected]/xx.git: invalid privatekey: [B@52771620
looks like the issue might be related to: https://bugs.eclipse.org/bugs/show_bug.cgi?id=520927 - I'm using ed25519 private keys. looks like it was resolved a while ago but have to use the MINA ssh dependency: https://wiki.eclipse.org/JGit/New_and_Noteworthy/5.2 (org.eclipse.jgit:org.eclipse.jgit.ssh.apache).
any chance of switching? elliptic curve keys are very much recommended over RSA these days...
hi! @peterfigure sure thing!
@peterfigure wanna try to make PR with this update? ;)
I'll try to find some time over the weekend but can't promise anything, also, I don't know Groovy 😳
fingers crossed! :)
@bgalek I'm affected by this as well. Any chance you can fix that?
I'll check it this weekend!
@bgalek Any progress on this one?
sorry to keep you wait! @peterfigure @jdomag as I understand https://github.com/allegro/axion-release-plugin/pull/414 this could resolve the issue? could you test it out with your ed25519 key?
Hey @bgalek, I'm encountering this "invalid private key" issue, probably due to my ed25519 key. I'm running plugin version 1.13.6, which includes #414, so looks like its not fixed yet.
Hi, I'm aware :( I've started a complex fix for all ssh related problems, but I've didn't find any time to finish it up :( You can check progress here https://github.com/allegro/axion-release-plugin/pull/416
Great stuff.
And… great plug-in by the way!
On Wed, 17 Nov 2021 at 23:15, Bartosz Gałek @.***> wrote:
Hi, I'm aware :( I've started a complex fix for all ssh related problems, but I've didn't find any time to finish it up :( You can check progress here #416 https://github.com/allegro/axion-release-plugin/pull/416
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/allegro/axion-release-plugin/issues/401#issuecomment-972251713, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5EE3R2LN4666II3GJIZ5DUMQZQLANCNFSM45SQDGRQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
@bgalek I'm running into this issue. It seems to be an issue with the SSH key type. I use ed25519. Is there a way to use your build from #416 or are you still working on it?
@jamesdehart i have same issue. Did you solve this problem?
unfortunately not yet - if anyone wants to jump into https://github.com/allegro/axion-release-plugin/pull/416 feel free I'm waiting for some vacation days to sit on this problem and I finally finish it!
Any update on this?
hi @ramesh-vangala unfortunately not yet, but I'm going to make new release soon with another fix that may be help with this issue, but if you want to contribute to #416 that would be awesome ;)
hello, I'm running into this issue:
16:51:29 + ./gradlew markNextVersion -Prelease.incrementer=incrementMinor -Prelease.customKeyFile=****
16:51:30
16:51:30 > Task :markNextVersion FAILED
16:51:30 Creating next version marker tag: client/-0.2.0-alpha
16:51:30 Pushing all to remote: origin
16:51:30 Exception occurred during push: org.eclipse.jgit.api.errors.TransportException: [email protected]:myrepo.git: invalid privatekey: [B@5d0fd7ec
16:51:30
16:51:30 FAILURE: Build failed with an exception.
16:51:30
16:51:30 * What went wrong:
16:51:30 Execution failed for task ':markNextVersion'.
16:51:30 > org.eclipse.jgit.api.errors.TransportException: [email protected]:myrepo.git: invalid privatekey: [B@5d0fd7ec
this happens on my jenkins node. I'm using withCredentials([sshUserPrivateKey(credentialsId: 'credsId', keyFileVariable: 'SSH_FILE')]) after finding out that ssh-agent is not working.
@bgalek is there any workaround for this. With changes on github using axion-release-plugin is impossible
This is still a problem - https://github.com/allegro/axion-release-plugin/pull/416 was closed with a comment that updated jgit may fix this, but jgit still requires using a different SSH backend to support these other keys.
@onyxraven exactly, this PR will need more work then I anticipated, maybe you would like to contribute? This draft is valid, but there are so migrations needed.
Should work now :)