Repository navigation
Conversation
Netty 4.1.100.Final fails OSS Canary validation (GHSA-c4c3-7fpv-j4q5 and several High advisories), which blocked the internal ELR for li-0.6. Bump netty.version to 4.1.140.Final, align netty-open-ssl-version (tcnative) to 2.0.85.Final as pinned by Netty 4.1.140, and move the reactor to 2.23.3-li-0.7. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
NettyUtils only mapped "Connection reset by peer" to the closed-channel
error, so a JDK SocketException("Connection reset") surfaced unmapped and
ServerConnectivityErrorMessageTest failed. Match that exact message too.
PingTimeoutTest measured elapsed time with Instant (wall clock), which
produced 9.999s against a 10s lower bound. Use System.nanoTime and a
100ms lower-bound tolerance.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
jitheshtr
left a comment
There was a problem hiding this comment.
Reviewed this revision's Netty/tcnative alignment, complete reactor version update, exception handling, and HTTP/2 compatibility. No blocking findings. Independent Java 11 Netty-module verify passed, including empty-request END_STREAM, early-reset, TLS-authentication, connection-error, and ping-timeout tests; release preflight also passed. The inline notes are nonblocking documentation and consumer-rollout follow-ups, not requests to weaken hostname verification.
| <!-- Update netty-open-ssl-version accordingly whenever we update netty version--> | ||
| <!-- https://github.com/netty/netty/blob/4.1/pom.xml search "tcnative.version" --> | ||
| <netty.version>4.1.100.Final</netty.version> | ||
| <netty.version>4.1.140.Final</netty.version> |
There was a problem hiding this comment.
Nonblocking: please call out the hostname-verification behavior change in Risks and check intended consumers before rollout. Netty 4.1.135 fixed GHSA-c653-97m9-rcg9: plain X509TrustManagers supplied through tlsTrustManagersProvider(...) no longer bypass endpoint identification. This SDK already sets HTTPS endpoint identification, so such consumers can now reject IP-address or hostname/certificate-SAN mismatches on both JDK and OpenSSL providers. This is the intended security fix; affected consumers should correct their endpoint/certificate setup rather than disable verification.
| <testng.version>7.1.0</testng.version> <!-- TCK Tests --> | ||
| <commons-lang.verson>2.6</commons-lang.verson> | ||
| <netty-open-ssl-version>2.0.61.Final</netty-open-ssl-version> | ||
| <netty-open-ssl-version>2.0.85.Final</netty-open-ssl-version> |
There was a problem hiding this comment.
Nonblocking: this matches Netty 4.1.140's published tcnative pin, but tcnative is test-scoped in both bom-internal and netty-nio-client; upgrading the SDK therefore does not upgrade a consumer's independently supplied native TLS library. Please document that distinction and verify the resolved/runtime netty-tcnative-* version for intended adopters, aligning it to 2.0.85.Final or a separately validated compatible version.
| <groupId>software.amazon.awssdk</groupId> | ||
| <artifactId>aws-sdk-java-pom</artifactId> | ||
| <version>2.23.3-li-0.6</version> | ||
| <version>2.23.3-li-0.7</version> |
There was a problem hiding this comment.
Nonblocking release-plan correction: the description says to publish after merge with a dry run first, but merging to s3-li-2.23.3 already triggers publish-linkedin.yml, which runs full clean verify and then uploads automatically. The dry-run input applies only to manual dispatch; the current publishing environment has branch-policy protection but no reviewer approval gate. Please align the stated release procedure with that behavior. Also label the Java 8/11 PR checks as compilation-only: their command uses -DskipTests; the hosted full test run happens after merge.
| return originalCause instanceof IOException && | ||
| message != null && | ||
| message.contains("Connection reset by peer"); | ||
| (message.equals("Connection reset") || message.contains("Connection reset by peer")); |
There was a problem hiding this comment.
Nonblocking: could we add a brief comment explaining why the new alternative is an exact match? Http2ToHttpInboundAdapter.Http2ResetException has a message beginning Connection reset. Error - ... and should retain its existing classification. Broadening this to contains("Connection reset") would also wrap those stream-reset errors. The new negative test already guards broad substring matching; a short comment would preserve the protocol reason for keeping this narrow.
Motivation and Context
Internal dependency validation for
software.amazon.awssdk:s3:2.23.3-li-0.6failed: it blockedio.netty4.1.100.Final(netty-codec,netty-codec-http,netty-codec-http2,netty-common,netty-handler), which has several High advisories and one Critical (GHSA-c4c3-7fpv-j4q5). The recommended fix is moving to4.1.140.Final(no known advisories, past the 7-day cooldown), aligning tcnative, and republishing asli-0.7.Modifications
netty.version:4.1.100.Final→4.1.140.Finalnetty-open-ssl-version(tcnative):2.0.61.Final→2.0.85.Final, matchingtcnative.versionin Netty4.1.140.Final's parent POM2.23.3-li-0.6→2.23.3-li-0.7(includes both references inservices/pom.xml)4.1.100/2.0.61pins.NettyUtils: also map the JDK'sSocketException("Connection reset")(exact message) to the closed-channel error, not just"Connection reset by peer". Adds unit tests for the new case and for an unrelatedIOExceptionthat must stay unmapped.PingTimeoutTest: measure elapsed time withSystem.nanoTime()instead ofInstant, with a 100ms lower-bound tolerance (a 9.999s run failed the 10s bound).Testing
Local macOS run with the
./mvnwwrapper:RELEASE_VERSION=2.23.3-li-0.7 python3 .github/scripts/check-linkedin-release.py: passed. All reactor and profile POM versions are consistent, andli-0.7is not yet published.python3 -m unittest discover -s .github/scripts -p 'test_*.py': passed./mvnw -B verify -pl http-clients/netty-nio-client -Djapicmp.skip: BUILD SUCCESS, 0 failures.NettyUtils/PingTimeoutTestfix, the same module had 3 failures. The 2ServerConnectivityErrorMessageTest.closeTimeHasCorrectMessagecases failed because the JDK reports"Connection reset". The test and mapping match upstreamaws/aws-sdk-java-v2master, and they also fail on upstream's Netty 4.1.138 pins, so this isn't caused by 4.1.140.2.0.85tcnative bump is needed: 4.1.140 with the old 2.0.61 had 7 of 16 failures../mvnw -B test -o -pl http-clients/netty-nio-client -Dtest='NettyUtilsTest,PingTimeoutTest,ServerConnectivityErrorMessageTest' -Djapicmp.skipon the final commit: 46/46 passed.HttpClientApiCallTimeoutTest), which this PR doesn't touch. ThePublish LinkedIn SDKworkflow runs a full clean verify on hosted Linux before any upload.build (8),build (11),release-checks): passing.Screenshots (if appropriate)
N/A
Types of changes
Checklist
mvn installsucceedsscripts/new-changescript and following the instructions. Commit the new file created by the script in.changes/next-releasewith your changes.Risks and follow-ups
li-0.7(dry run first), complete internal dependency approval forsoftware.amazon.awssdk:s3:2.23.3-li-0.7, then retarget linkedin-multiproduct/AmbryLI#4358 to0.7.License