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

Bump com.hierynomus:sshj from 0.32.0 to 0.36.0 in /prime-router #11246

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 7, 2023

Bumps com.hierynomus:sshj from 0.32.0 to 0.36.0.

Commits
  • f4d34d8 Fix release build
  • 2bef99c Prepare release 0.36.0
  • a186dbf Fix race condition causing SSH_MSG_UNIMPLEMENTED occasionally during key exch...
  • a5fdb29 Fixed itests for missing docker container (#892)
  • 3069138 Add DefaultSecurityProviderConfig with Bouncy Castle disabled (#861)
  • a3c9c61 Prepare release notes
  • 31d156b Rewriting testing utilities to use jupiter engine (#881)
  • ec69d10 Removed Java 7 backport Socket utilities (#880)
  • f35c2bd Replaced custom Base64 with java.util.Base64 (#879)
  • 0783709 Removed unused bcrypt password hashing methods (#852)
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [com.hierynomus:sshj](https://github.com/hierynomus/sshj) from 0.32.0 to 0.36.0.
- [Commits](hierynomus/sshj@v0.32.0...v0.36.0)

---
updated-dependencies:
- dependency-name: com.hierynomus:sshj
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Sep 7, 2023
@github-actions
Copy link

github-actions bot commented Sep 7, 2023

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Manifest Files

@snesm snesm added the security Work Type label to flag work related to security label Sep 7, 2023
@snesm
Copy link
Contributor

snesm commented Sep 7, 2023

Breaking change

@snesm snesm temporarily deployed to staging September 7, 2023 17:45 — with GitHub Actions Inactive
@snesm
Copy link
Contributor

snesm commented Sep 7, 2023

Mo's sage advice:

MauriceReeves-usds left a comment
SSHJ upgrades tend to cause problems with our ability to deliver data to our STLTs. Please do not merge this change until it has been THOROUGHLY tested, which includes attempting to connect to external systems at STLTs. Connecting to our local environments is not enough to prove that this change is benign.

@github-actions
Copy link

github-actions bot commented Sep 7, 2023

Test Results

983 tests  ±0   979 ✔️ ±0   2m 23s ⏱️ +45s
117 suites ±0       4 💤 ±0 
117 files   ±0       0 ±0 

Results for commit b9cf332. ± Comparison against base commit aa8ecf4.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 7, 2023

Integration Test Results

  14 files    14 suites   3m 38s ⏱️
161 tests 161 ✔️ 0 💤 0
163 runs  163 ✔️ 0 💤 0

Results for commit b9cf332.

♻️ This comment has been updated with latest results.

@GilmoreA6 GilmoreA6 added the onboarding-ops Work related to onboarding with a partner. Addressed by the Onboarding & Operations team in RS. label Sep 12, 2023
@oslynn oslynn self-assigned this Sep 12, 2023
@oslynn
Copy link
Collaborator

oslynn commented Sep 25, 2023

Ran check all STLTs' SFTPs and RESTs for SSHJ version 0.32.0 (current working version) and 0.36.0 (latest version). I compared the output for both; they are identical, which tells me that, after the fix, the new version is now backward compatible with the older version. Below are the output logs for both versions:
checksftp-0.32.0-all-2023-09-27.txt
checksftp-0.36.0-all-2023-09-27.txt

@oslynn oslynn temporarily deployed to staging September 27, 2023 19:08 — with GitHub Actions Inactive
@oslynn oslynn temporarily deployed to staging September 28, 2023 09:54 — with GitHub Actions Inactive
@oslynn oslynn requested review from mkalish, arnejduranovic, snesm, GilmoreA6 and pstonebu and removed request for jalbinson and GilmoreA6 September 28, 2023 09:55
@@ -405,7 +405,7 @@ class RESTTransport(private val httpClient: HttpClient? = null) : ITransport {
if (restUrl.contains("dataingestion.datateam-cdc-nbs")) {
val idTokenInfoString: String = client.post(restUrl) {
val credentialString = credential.user + ":" + credential.pass
val basicAuth = "Basic " + Base64.encodeBytes(credentialString.encodeToByteArray())
val basicAuth = "Basic " + Base64.getEncoder().encodeToString(credentialString.encodeToByteArray())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depending on Java standard library is always a good idea simple operations like this 👍

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jalbinson

@pstonebu
Copy link
Collaborator

Changes look good, what does our test coverage look like for SSH/SFTP?

// Apache SSHD that doesn't rsa-sha2-* signatures. To make it works with old servers,
// we need to include the KeyAlgorithms.SSHRSA at the top of the list or have higher
// priority than other as below.
sshConfig.keyAlgorithms = listOf(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth creating a tech debt ticket to make this configurable per receiver? I remember you saying this breaks after trying the first three key algorithms, is that still the case or is this not related to that?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it isn't worth it to create a tech dept for this. After this fix, it works with all of our reivers.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@snesm our Security expert approved the fix. However, he suggested I get with the receiver who still using the SSHRAS key exchange and suggest they upgrade their server to support the new key exchange.

Copy link
Collaborator

@victor-chaparro victor-chaparro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have documentation around how to test this if we ever need to upgrade this library again?

@oslynn oslynn temporarily deployed to staging September 28, 2023 18:07 — with GitHub Actions Inactive
@sonarcloud
Copy link

sonarcloud bot commented Sep 28, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

56.9% 56.9% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@oslynn oslynn enabled auto-merge (squash) September 28, 2023 18:31
@oslynn oslynn merged commit 4819ffa into master Sep 28, 2023
2 of 3 checks passed
@oslynn oslynn deleted the dependabot/gradle/prime-router/com.hierynomus-sshj-0.36.0 branch September 28, 2023 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file java Pull requests that update Java code onboarding-ops Work related to onboarding with a partner. Addressed by the Onboarding & Operations team in RS. security Work Type label to flag work related to security
Projects
Development

Successfully merging this pull request may close these issues.

6 participants