GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: Only send mtlsEndpoint if it is non-null by lqiu96 · Pull Request #3767 · googleapis/sdk-platform-java

This repository was archived by the owner on Oct 29, 2026. It is now read-only.

Conversation

@lqiu96

@lqiu96 lqiu96 commented Apr 28, 2025

Copy link
Copy Markdown
Member

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().

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

rmehta19 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@lqiu96
fix: Only send mtlsEndpoint if it is non-null
feac5e5
@lqiu96
lqiu96 requested review from blakeli0 and zhumin8 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
blakeli0
blakeli0 reviewed Apr 29, 2025
View reviewed changes
Comment thread gax-java/gax/src/main/java/com/google/api/gax/rpc/ClientContext.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@lqiu96
chore: Add tests for a the mtlsEndpoint check
a88b881
@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 added 2 commits May 2, 2025 14:54
@lqiu96
chore: Add tests for a the mtlsEndpoint check
d812dc8
@lqiu96
chore: Add tests for a the mtlsEndpoint check
5e9533c
@lqiu96
lqiu96 enabled auto-merge (squash) May 2, 2025 18:56
blakeli0
blakeli0 approved these changes May 2, 2025
View reviewed changes
@lqiu96
chore: Manually throw exception for null mtlsEndpoint
4993145
@sonarqubecloud

sonarqubecloud Bot commented May 2, 2025

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed for 'gapic-generator-java-root'

Issues
0 New issues
0 Accepted issues

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

See analysis details on SonarQube Cloud

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sonarqubecloud

sonarqubecloud Bot commented May 2, 2025

Copy link
Copy Markdown

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lqiu96
lqiu96 merged commit 8f8df7b into main May 2, 2025
@lqiu96
lqiu96 deleted the mtls-fix branch May 2, 2025 19:42
@release-please release-please Bot mentioned this pull request May 2, 2025
chore(main): release 2.56.3 #3775
Merged
lqiu96 added a commit that referenced this pull request May 2, 2025
@release-please @lqiu96
chore(main): release 2.56.3 (#3775)
3ff3a54
🤖 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 <[email protected]>
lqiu96 added a commit that referenced this pull request Jun 10, 2025
@lqiu96
fix: Only send mtlsEndpoint if it is non-null (#3767)
919ed76
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
@release-please @lqiu96
chore(main): release 2.56.3 (#3775)
59a22f0
🤖 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 <[email protected]>
lqiu96 added a commit that referenced this pull request Aug 21, 2025
@lqiu96
fix: Only send mtlsEndpoint if it is non-null (#3767)
efee7f6
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 Aug 21, 2025
@release-please @lqiu96
chore(main): release 2.56.3 (#3775)
b9f5ddc
🤖 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 <[email protected]>
lqiu96 added a commit that referenced this pull request Aug 27, 2025
@release-please @lqiu96
chore(main): release 2.56.3 (#3775)
88e6552
🤖 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 <[email protected]>
@suztomo suztomo mentioned this pull request Nov 5, 2025
chore(2.59.x): release 2.59.3 #3982
Merged
@release-please release-please Bot mentioned this pull request Dec 11, 2025
chore(protobuf-4.x-rc): release 2.65.0-rc1 #3999
Merged
chingor13 pushed a commit to googleapis/google-cloud-java that referenced this pull request Mar 24, 2026
@release-please @lqiu96
chore(main): release 2.56.3 (#3775)
bcd1e64
🤖 I have created a release *beep* *boop*
---


<details><summary>2.56.3</summary>

##
[2.56.3](googleapis/sdk-platform-java@v2.56.2...v2.56.3)
(2025-05-02)


### Bug Fixes

* Only send mtlsEndpoint if it is non-null
([#3767](googleapis/sdk-platform-java#3767))
([7068cbe](googleapis/sdk-platform-java@7068cbe))
* subscribe Airlock Docker image definition to GRPC updates
([#3765](googleapis/sdk-platform-java#3765))
([3b8f9ca](googleapis/sdk-platform-java@3b8f9ca))


### Dependencies

* update dependency com.google.errorprone:error_prone_annotations to
v2.38.0
([#3773](googleapis/sdk-platform-java#3773))
([43ea661](googleapis/sdk-platform-java@43ea661))
* update gapic-showcase to 36.2
([#3771](googleapis/sdk-platform-java#3771))
([6808c9b](googleapis/sdk-platform-java@6808c9b))
* update google auth library dependencies to v1.34.0
([#3772](googleapis/sdk-platform-java#3772))
([8efcac5](googleapis/sdk-platform-java@8efcac5))
* Update maven-shared-utils to v3.2.1
([#3768](googleapis/sdk-platform-java#3768))
([47f7907](googleapis/sdk-platform-java@47f7907))
</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 <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@zhumin8 zhumin8 Awaiting requested review from zhumin8
1 more reviewer
@blakeli0 blakeli0 blakeli0 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size: m Pull request size is medium.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@lqiu96 @blakeli0
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.