-
Notifications
You must be signed in to change notification settings - Fork 697
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
[JENKINS-75214] Added prioritization of SSH host key algorithms #1048
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,143 @@ | |||
package hudson.plugins.ec2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: refactoring, I extracted this class
@@ -337,126 +327,6 @@ private ConnectionAttempt build(MockEC2Computer computer, ServerKeyVerifier veri | |||
} | |||
} | |||
|
|||
// A mock ec2 computer returning the data we want |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: refactoring, I extracted this class
} | ||
|
||
// Keep only supported algorithms | ||
return NamedFactory.setUpBuiltinFactories(true, preferred); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change LGTM
Fix for https://issues.jenkins.io/browse/JENKINS-75214
When a
HostKey
already exists for theComputer
, the algorithm is used as the preferred one to initiate the connection.🚨
ssh-ed25519
supportPlease note that, as for now,
mina
doesn't supportssh-ed25519
out of the box. This support will be added in a future release: apache/mina-sshd#657.In the meantime, it is require to install https://plugins.jenkins.io/eddsa-api/ for
ssh-ed25519
to be supported.Testing done
Note: I moved
MockEC2Computer
to use it inSSHClientHelperTest
Submitter checklist