Skip to content

fix: Only send mtlsEndpoint if it is non-null #3767

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 5 commits into from
May 2, 2025
Merged

fix: Only send mtlsEndpoint if it is non-null #3767

merged 5 commits into from
May 2, 2025

Conversation

lqiu96
Copy link
Contributor

@lqiu96 lqiu96 commented Apr 28, 2025

Temporary fix to only plumb the mtlsEndpoint to the gRPCChannelProviders if this has been set with a non-null value. Validation will still go through if it is set with bogus values.

Issue reported in googleapis/java-bigtable#2565

This seems to due to how Bigtable wrappers the generated stubs. BigTable manually calls setEndpoint to for the StubSettings, but does not do the equivalent for setMtlsEndpoint. The EndpointContext is only aware of the TLS endpoint and passes a null value to the ChannelProviders.

Potential longer term fix: BigTable's wrappers would need to set the mTLS Endpoint. This would be needed for BigTable to support S2A. This does not impact any of BigTable's existing functionality as the endpoint resolution for all non-S2A flows is done via setEndpoint().

@lqiu96 lqiu96 requested review from zhumin8 and blakeli0 April 28, 2025 22:00
@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Apr 28, 2025
@lqiu96 lqiu96 marked this pull request as ready for review April 29, 2025 17:30
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: xs Pull request size is extra small. labels May 2, 2025
@lqiu96 lqiu96 enabled auto-merge (squash) May 2, 2025 18:56
Copy link

sonarqubecloud bot commented May 2, 2025

Copy link

sonarqubecloud bot commented May 2, 2025

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
80.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@lqiu96 lqiu96 merged commit 8f8df7b into main May 2, 2025
70 of 72 checks passed
@lqiu96 lqiu96 deleted the mtls-fix branch May 2, 2025 19:42
lqiu96 added a commit that referenced this pull request May 2, 2025
🤖 I have created a release *beep* *boop*
---


<details><summary>2.56.3</summary>

##
[2.56.3](v2.56.2...v2.56.3)
(2025-05-02)


### Bug Fixes

* Only send mtlsEndpoint if it is non-null
([#3767](#3767))
([8f8df7b](8f8df7b))
* subscribe Airlock Docker image definition to GRPC updates
([#3765](#3765))
([d0f43e3](d0f43e3))


### Dependencies

* update dependency com.google.errorprone:error_prone_annotations to
v2.38.0
([#3773](#3773))
([e16fe65](e16fe65))
* update gapic-showcase to 36.2
([#3771](#3771))
([15b2577](15b2577))
* update google auth library dependencies to v1.34.0
([#3772](#3772))
([406a180](406a180))
* Update maven-shared-utils to v3.2.1
([#3768](#3768))
([7ec93c3](7ec93c3))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Lawrence Qiu <lawrenceqiu@google.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants