Skip to content

fix(engine): skip TrustedTest when javax.net.ssl.trustStore is overridden - #2112

Merged
jfallows merged 1 commit into
developfrom
claude/zilla-binding-tls-trustedtest-x70i8l
Jul 10, 2026
Merged

jfallows merged 1 commit into
developfrom
claude/zilla-binding-tls-trustedtest-x70i8l

Conversation

@jfallows

Copy link
Copy Markdown
Contributor

Description

TrustedTest#shouldConfigureTrustViaCacerts exercises Trusted.cacerts(), which loads the JVM's trust store for the JDK-bundled cacerts case: it falls back to $JAVA_HOME/lib/security/{jssecacerts,cacerts} only when javax.net.ssl.trustStore is unset. In sandboxed build environments that inject a custom JVM trust store via that system property (e.g. to route TLS through a policy-enforcing proxy), Trusted.cacerts() legitimately loads that external store instead — so the test's assertions about the JDK-bundled cacerts no longer apply, and can spuriously fail depending on how completely that external store was populated.

This adds an Assume.assumeTrue guard that skips the test only when javax.net.ssl.trustStore is set. Normal developer machines and this project's CI never set that property, so the test continues to run at full strength there — this only skips in environments that have deliberately overridden the trust store, which is not the scenario the test is meant to cover.

No production code changes; test-only.

Fixes # (issue)


Generated by Claude Code

…dden

Trusted.cacerts() honors javax.net.ssl.trustStore when set, so the test
no longer validates the JDK-bundled cacerts it targets once an external
trust store is injected (e.g. by a sandboxed build environment). Dev
machines and normal CI never set this property, so the test still runs
at full strength there.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013HgCGrzckRGiMLFeSgPhV1
@jfallows
jfallows merged commit 7dfd56e into develop Jul 10, 2026
42 checks passed
jfallows pushed a commit that referenced this pull request Jul 10, 2026
Pulls in upstream fixes for the sandbox trust-store override (#2112) and
IPv6 unavailability (#2111) that this branch previously worked around
manually, plus new k3po reset-extension matching support (#2110, #2115)
and a vault entry resolution fix (#2114).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants