Repository navigation
Conversation
…ovider auto-detection Add a global opt-out for Conscrypt in HttpJsonConscryptUtils via the com.google.api.gax.httpjson.disableConscrypt system property or GOOGLE_SDK_JAVA_DISABLE_CONSCRYPT environment variable (system property takes precedence), and automatically skip Conscrypt when the JVM's preferred SSLContext.TLS provider is neither SunJSSE nor Conscrypt. Also make HttpJsonConscryptUtils.getConscryptProvider() public (remaining @internalapi) for downstream transport follow-ups and document the global opt-out and FIPS 140-3 configuration in docs/post_quantum_cryptography_guide.md. Fixes googleapis#15053
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces configuration options to globally disable Conscrypt in gax-httpjson via the com.google.api.gax.httpjson.disableConscrypt system property or the GOOGLE_SDK_JAVA_DISABLE_CONSCRYPT environment variable. It also adds auto-detection to skip Conscrypt if a non-default preferred TLS provider is configured in the JVM. The documentation has been updated to reflect these changes, and comprehensive unit tests have been added. The review feedback suggests wrapping the system property, environment variable, and security provider lookups in try-catch blocks to gracefully handle potential SecurityExceptions in environments with restricted security managers.
…d tests - Trim opt-out flag values, warn on unrecognized values, and avoid letting invalid system property values override GOOGLE_SDK_JAVA_DISABLE_CONSCRYPT=true - Short-circuit config and preferred TLS provider checks, deduplicate skip/warning logs, and resolve the Conscrypt provider once in InstantiatingHttpJsonChannelProvider - Fix ErrorProne DoubleBraceInitialization in HttpJsonConscryptUtilsTest, improve test isolation, and add mTLS and classloading opt-out coverage - Clarify PQC guide minimum version (gax-httpjson 2.92.0+ / libraries-bom 26.95.0+), verification logs, BCJSSE snippet, gRPC asymmetry, and BigQuery JDBC follow-up note
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DRAFT/ WIP
Add a global opt-out for Conscrypt in HttpJsonConscryptUtils via the com.google.api.gax.httpjson.disableConscrypt system property or GOOGLE_SDK_JAVA_DISABLE_CONSCRYPT environment variable (system property takes precedence), and automatically skip Conscrypt when the JVM's preferred SSLContext.TLS provider is neither SunJSSE nor Conscrypt.
Also make HttpJsonConscryptUtils.getConscryptProvider() public (remaining @internalapi) for downstream transport follow-ups and document the global opt-out and preferred TLS provider behavior in docs/post_quantum_cryptography_guide.md.
Refs #15053