Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 3.4 does not work with Gerrit 3.4.x #81

Open
hanson76 opened this issue Jun 4, 2021 · 6 comments
Open

Version 3.4 does not work with Gerrit 3.4.x #81

hanson76 opened this issue Jun 4, 2021 · 6 comments

Comments

@hanson76
Copy link

hanson76 commented Jun 4, 2021

We upgraded Gerrit from 3.2.10 to 3.4.0 and this plugin stopped working.
We have been able to get some kind of error by executing "Test Config" from
"Manage Apps"/"Gerrit Settings" in Jira

`
Connection Failed!
An error occurred while testing the connection to Gerrit.

com.jcraft.jsch.JSchException: verify: false

`

It might be that the jsch version is too old and that it does not support the host key that Gerrit it using.
Gerrit changed ssh host key during the upgrade.

@gtjoseph
Copy link

gtjoseph commented Jun 7, 2021

I'm having the same issue after upgrading to Gerrit 3.4.0. It looks like the plugin's version of jsch only supports the diffie-hellman-group1-sha1 and diffie-hellman-group-exchange-sha1 kex algorithms but neither are supported by the new Gerrit ssh engine.

I do believe this issue belongs to Gerrit. At the very least, the release notes for 3.4.0 should have been more explicit than...

Deprecated JCraft JSch client library is replaced with MINA SSHD client library per default. There is still option to switch to using JCraft JSch client library. Support for JCraft JSch will be removed in the next gerrit release.

I'll take that up with them though.

In the mean time, I'm going to see if just rebuilding the plugin with a later jsch (assuming there is one) will help.

@hanson76
Copy link
Author

hanson76 commented Jun 9, 2021

Looks like Gerrit 3.4.1 will have an option to enable the old insecure algorithm again.
This is only a temporary solution, these weak algorithms have security risks [1] [2]

[1] https://issues.apache.org/jira/browse/SSHD-1004
[2] https://www.zdnet.com/article/openssh-to-deprecate-sha-1-logins-due-to-security-risk

@gtjoseph
Copy link

gtjoseph commented Jun 9, 2021

Yeah that was me that got them to add the option to allow the older kex algorithms but you're right, it's just a temporary solution. It's odd though... the jenkins gerrit-trigger-plugin also uses gerrit-events/jsch and it's not having issues. I may try to upgrade this plugin to use the same version of gerrit-events and see what that does.

@hanson76 What Jira version are you using?

@hanson76
Copy link
Author

hanson76 commented Jun 9, 2021

We are using Jira v8.13.6

@vlotorev
Copy link

vlotorev commented Aug 8, 2021

Following versions are running without errors: Jira 8.17.0, Gerrit 3.4.0, and jira-gerrit-plugin 3.4.

@gtjoseph
Copy link

gtjoseph commented Aug 8, 2021

Following versions are running without errors: Jira 8.17.0, Gerrit 3.4.0, and jira-gerrit-plugin 3.4.

Yeah we're running 6.x and it's way too old to support the newer ssh algorithms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants