-
Notifications
You must be signed in to change notification settings - Fork 399
[JENKINS-73427] With 'Accept first connection' host key verification, and JGit, newly added known_hosts entries are malformed #1707
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
Conversation
|
Hello @MarkEWaite, can you please review this PR? |
Needs one or more tests that show the issue and confirm that the issue is resolved by the code change. In this case, it may be better to not pass the HashKnownHosts argument at all so that users can configure it in their ssh_config if they really want it. Refer to issue report: |
|
Can you please review the changes? @MarkEWaite |
MarkEWaite
left a comment
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.
First review comments. More in another day
|
|
||
| // This should not throw an exception when reading the malformed entry | ||
| // The connection might fail to verify, but it shouldn't crash | ||
| try { |
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.
If it is expected to throw an exception, please use assertThrows
|
Please have a look. @MarkEWaite |
|
@akash-manna-sky I would like to test this in my development environment, but I'm not allowed to merge the master branch to it. Could you merge the master branch into it so that the latest fixes and releases are included? |
… and JGit, newly added known_hosts entries are malformed
…ries by removing HashKnownHosts option
…shing on malformed hashed entries
d0bb295 to
c2c0918
Compare
I rebase my branch with master branch, so all the latest fixes and releases are included now. You can test it now. |
Thanks. Generally it is better to merge rather than rebase in a pull request. When you rebase, it often disconnects comments from the changes. The change will be squash merged eventually, so the various steps in the pull request commit history will be collapsed into a single commit on the master branch. |
Includes pull request: * jenkinsci/git-client-plugin#1707
|
Have you tested the changes? Please tell me if anything I need to modify or update. @MarkEWaite |
No issues detected in my testing thus far, but I'm testing mostly by using the plugin in other work. I will need to do more specific testing by changing the host key verification strategy to look for surprises. |
Thanks for testing! That makes sense. I’ll wait for your additional host key verification testing—please let me know if you’d like me to make changes on my side. @MarkEWaite |
MarkEWaite
left a comment
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.
Two minor changes to test assertions based on my review from inside a debugger.
src/test/java/org/jenkinsci/plugins/gitclient/verifier/AcceptFirstConnectionVerifierTest.java
Outdated
Show resolved
Hide resolved
src/test/java/org/jenkinsci/plugins/gitclient/verifier/AcceptFirstConnectionVerifierTest.java
Outdated
Show resolved
Hide resolved
|
Is this PR fine now ? Please let me know if there’s anything I need to update. @MarkEWaite |
I'm still testing and exploring. |
MarkEWaite
left a comment
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.
It has passed all my tests. Code review prompted me to make a slight improvement in coverage with another test, but otherwise I think it is ready to be tested again in plugin BOM and tested in the acceptance test harness.
|
It is good to see that my changes have passed all the tests and have been merged. Please assign or suggest me a few issues in this plugin, or in other plugins you maintain, that are higher priority to fix and for which you are willing to accept new pull requests, so that I can continue contributing. I am especially interested in back-end–related tasks. Thank you! |
No, I won't. I'm growing weary of your repeated requests. Please close pull requests that you're not continuing, like: Please invest more of your time to deeply test the changes you're proposing. Describe the ways that you've deeply tested those proposed changes. Show that you've exhausted all your own ideas for testing the changes that you are proposing. Then allow time for the maintainers to review them. In the case of this specific pull request, there was no clear evidence in the pull request description that you were able to duplicate the issue yourself. You disabled hashing of the known hosts file, but didn't describe how you had tested it yourself. I spent multiple hours performing various tests trying to assure that the change is ready to ship. Please allow changes from maintainers on your pull request branches. When you disallow changes from maintainers, you make the interaction more complicated for maintainers that are reviewing your proposed changes. Please reduce the frequency at which you ask for updates. Most maintainers will ignore you if you request too frequently or they will ask that you be banned from the organization. |
Fixes #1686
JENKINS-73427
With 'Accept first connection' host key verification, and JGit, newly added known_hosts entries are malformed
Testing done
Submitter checklist