fix: Only send mtlsEndpoint if it is non-null by lqiu96 · Pull Request #3767 · googleapis/sdk-platform-java · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

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

New issue

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

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

Already on GitHub? Sign in 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>
lqiu96 added a commit that referenced this pull request Jun 10, 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 added a commit that referenced this pull request Jun 10, 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.