Skip to content

test(transport): Make the eMudhra transport tests independent of the JDK's CA blocklist - #6813

Merged
romtsn merged 2 commits into
mainfrom
test/distrusted-certificates-jdk-blocklist
Nov 30, 2026
Merged

romtsn merged 2 commits into
mainfrom
test/distrusted-certificates-jdk-blocklist

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

📜 Description

In DistrustedCertificatesTest, the three tests that connect to a server with a distrusted eMudhra CA now use a client trust manager that accepts any chain, so DistrustedCertificates is the only thing that can reject the connection. They expect SSLPeerUnverifiedException again.

One of them is renamed to does not send the envelope when the server leaves out the distrusted CA, since the client no longer builds the chain itself.

💡 Motivation and Context

GitHub runner image ubuntu26/20261122.9 replaced Temurin 21.0.13+9 with 21.0.13+2. That JDK rejects EM OV TLS CA - G3C during its own chain validation, before DistrustedCertificates runs, so on that JDK these tests were exercising the JDK instead of the SDK.

#skip-changelog

via roman.

--

View Session [Sentry]

… CAs

Runner image ubuntu26/20261122.9 ships Temurin 21.0.13+2, which rejects
the eMudhra intermediate during the handshake with SSLHandshakeException
before DistrustedCertificates runs. Expect SSLException, which covers
both, and keep asserting that no request reaches the server.

Co-Authored-By: Roman Zavarnitsyn <[email protected]>
@github-actions github-actions Bot added the risk: low PR risk score: low label Nov 30, 2026
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

PR risk: low

For commit 2ed6834.

This label is a hint for reviewers, not an approval.

@sentry

sentry Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.66.0 (1) release

⚙️ sentry-android Build Distribution Settings

@romtsn
romtsn marked this pull request as ready for review November 30, 2026 11:28
@romtsn
romtsn requested review from a team and adinauer as code owners November 30, 2026 11:28
@romtsn
romtsn requested review from 0xadam-brown and runningcode and removed request for a team November 30, 2026 11:28
@romtsn romtsn added the ship-it PR is ready to merge from a reviewer perspective label Nov 30, 2026
@github-actions github-actions Bot added risk: low PR risk score: low and removed risk: low PR risk score: low labels Nov 30, 2026

@runningcode runningcode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving it but maybe we should rethink the value of those tests

…eject it

With the JDK's own chain validation in the way, the transport tests also
passed without our check on JDKs that block the eMudhra CAs themselves.
@github-actions github-actions Bot removed the risk: low PR risk score: low label Nov 30, 2026
@sentry-junior sentry-junior Bot changed the title test(transport): Accept the JDK's own rejection of distrusted eMudhra CAs test(transport): Make the eMudhra transport tests independent of the JDK's CA blocklist Nov 30, 2026
@github-actions github-actions Bot added risk: low PR risk score: low and removed risk: low PR risk score: low labels Nov 30, 2026
@romtsn
romtsn merged commit 671dc42 into main Nov 30, 2026
53 checks passed
@romtsn
romtsn deleted the test/distrusted-certificates-jdk-blocklist branch November 30, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low ship-it PR is ready to merge from a reviewer perspective

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants