GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix: plumb mtls endpoint to TransportChannelProvider by rmehta19 · Pull Request #3673 · googleapis/sdk-platform-java
This repository was archived by the owner on Oct 29, 2026. It is now read-only.
Conversation
|
|
@lqiu96 , please review, thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Friendly ping @lqiu96 . Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @Override | ||
| public TransportChannelProvider withMtlsEndpoint(String mtlsEndpoint) { | ||
| validateEndpoint(mtlsEndpoint); | ||
| return toBuilder().setMtlsEndpoint(mtlsEndpoint).build(); | ||
| } |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Would you be able to add @InternalApi to all the new public methods? We have a few ways to configure endpoints (i.e. ClientSettings and TransportChannelProvider for endpoint and led us to have to account for it in EndpointContext). If we add these ways for users to configure the mtls value, I think we'll need to account for it in EndpointContext as well.
Given that we can't make this package-private scope, we should let users know that they really shouldn't be tinkering with these values since they're really used to help S2A (one flow for now).
I think a small note in the comment (for this method and all the other public ones) as well warning users This public method is used by Gax to help configure S2A fallback and not intended for users or something of that variant.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Done in 7e36d1a. Would you prefer making the change in EndpointContext in this PR, or a follow up?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
My thoughts are that we just leave EndpointContext as-is since we have publicly noted that these public methods have been marked with @InternalApi and shouldn't be set/customized by the user at all. If users do set these values via these new methods, they shouldn't expect support (as this is used to help to support S2A).
The existing way of setting the mtlsEndpoint in StubSettings is supported
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks for the review @lqiu96 ! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@rmehta19 FYI I think there are lint issues and you need to run |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks @lqiu96 ! synced to HEAD and formatted. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/gcbrun |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@lqiu96 , resolved merge conflict, could you run gcbrun again? Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/gcbrun |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM. This follows the approach that we had discussed in the previous S2A PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @lqiu96 ! I see all the checks have passed, would you be able to merge once you get a chance? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Adding @blakeli0 to take a quick glance as well in case there is anything missed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
friendly ping, @blakeli0. Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| TransportChannelProvider withEndpoint(String endpoint); | ||
|
|
||
| /** True for gRPC transport provider which has no mtlsEndpoint set. */ | ||
| default boolean needsMtlsEndpoint() { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I know we tried to avoid introducing these new public interfaces by encapsulating the logic to determine if we should use S2A in EndpointContext. Now that we need to have access to mtlsEndpoint in TransportChannelProvider anyway, maybe we can move shouldUseS2A to InstantiatingGrpcChannelProvider.java? And remove withUseS2A from this interface? This could be separate PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Agreed that by plumbing the MTLS endpoint separately, we no longer need the shouldUseS2A logic in EndpointContext. I'll take care of this in a followup PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@blakeli0 I started working on this and I realized that we should keep shouldUseS2A in EndpointContext. The reason being is that we want to skip S2A if using GDCH, or if the client sets a custom endpoint. This info is only available in EndpointContext.
Given this, we probably want to keep things as is. WDYT?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
if the client sets a custom endpoint
I see, yeah I think this info only exists in EndpointContext. cc: @lqiu96 in case there are more ideas.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for reviewing @blakeli0 ! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
🤖 I have created a release *beep* *boop* --- <details><summary>2.56.0</summary> ## [2.56.0](v2.55.1...v2.56.0) (2025-04-18) ### Features * Selective gapic generation phase II ([#3730](#3730)) ([64ac2c1](64ac2c1)) ### Bug Fixes * **hermetic-build:** use correct image name in templated graalvm jobs ([#3743](#3743)) ([29a78d3](29a78d3)) * plumb mtls endpoint to TransportChannelProvider ([#3673](#3673)) ([a961459](a961459)) ### Dependencies * add opentelemetry gcp-resources to shared deps ([#3722](#3722)) ([b1b075d](b1b075d)) </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>
|
@rmehta19 There may be test failures related to this. Can you check? googleapis/java-bigtable#2560 (comment) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Package | Type | Package file | Manager | Update | Change | |---|---|---|---|---|---| | [com.google.api.grpc:proto-google-common-protos](https://github.com/googleapis/sdk-platform-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `2.55.3` -> `2.56.0` | | [com.google.cloud:google-cloud-core-http](https://github.com/googleapis/sdk-platform-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `2.54.3` -> `2.55.0` | | [com.google.cloud:google-cloud-core](https://github.com/googleapis/sdk-platform-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `2.54.3` -> `2.55.0` | | [com.google.api:gax](https://github.com/googleapis/sdk-platform-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `2.64.3` -> `2.65.0` | | [software.amazon.awssdk:sdk-core](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.35` -> `2.31.36` | | [software.amazon.awssdk:sqs](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.35` -> `2.31.36` | | [software.amazon.awssdk:dynamodb-enhanced](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.35` -> `2.31.36` | | [software.amazon.awssdk:dynamodb](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.35` -> `2.31.36` | | [software.amazon.awssdk:aws-core](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.35` -> `2.31.36` | | [software.amazon.awssdk:bom](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.35` -> `2.31.36` | | [software.amazon.awssdk:auth](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.31.35` -> `2.31.36` | --- ### Release Notes <details> <summary>googleapis/sdk-platform-java (com.google.api.grpc:proto-google-common-protos)</summary> ### [`v2.56.0`](https://github.com/googleapis/sdk-platform-java/blob/HEAD/CHANGELOG.md#2560-2025-04-18) ##### Features - Selective gapic generation phase II ([#​3730](googleapis/sdk-platform-java#3730)) ([64ac2c1](googleapis/sdk-platform-java@64ac2c1)) ##### Bug Fixes - **hermetic-build:** use correct image name in templated graalvm jobs ([#​3743](googleapis/sdk-platform-java#3743)) ([29a78d3](googleapis/sdk-platform-java@29a78d3)) - plumb mtls endpoint to TransportChannelProvider ([#​3673](googleapis/sdk-platform-java#3673)) ([a961459](googleapis/sdk-platform-java@a961459)) ##### Dependencies - add opentelemetry gcp-resources to shared deps ([#​3722](googleapis/sdk-platform-java#3722)) ([b1b075d](googleapis/sdk-platform-java@b1b075d)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 6pm every weekday,before 2am every weekday" in timezone Australia/Melbourne, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). GitOrigin-RevId: 1a1f0ef96fb9d22ffd1976f1eea8999c165d6c37
🤖 I have created a release *beep* *boop* --- <details><summary>2.56.0</summary> ## [2.56.0](v2.55.1...v2.56.0) (2025-04-18) ### Features * Selective gapic generation phase II ([#3730](#3730)) ([64ac2c1](64ac2c1)) ### Bug Fixes * **hermetic-build:** use correct image name in templated graalvm jobs ([#3743](#3743)) ([29a78d3](29a78d3)) * plumb mtls endpoint to TransportChannelProvider ([#3673](#3673)) ([a961459](a961459)) ### Dependencies * add opentelemetry gcp-resources to shared deps ([#3722](#3722)) ([b1b075d](b1b075d)) </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>
🤖 I have created a release *beep* *boop* --- <details><summary>2.56.0</summary> ## [2.56.0](v2.55.1...v2.56.0) (2025-04-18) ### Features * Selective gapic generation phase II ([#3730](#3730)) ([64ac2c1](64ac2c1)) ### Bug Fixes * **hermetic-build:** use correct image name in templated graalvm jobs ([#3743](#3743)) ([29a78d3](29a78d3)) * plumb mtls endpoint to TransportChannelProvider ([#3673](#3673)) ([a961459](a961459)) ### Dependencies * add opentelemetry gcp-resources to shared deps ([#3722](#3722)) ([b1b075d](b1b075d)) </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>
🤖 I have created a release *beep* *boop* --- <details><summary>2.56.0</summary> ## [2.56.0](googleapis/sdk-platform-java@v2.55.1...v2.56.0) (2025-04-18) ### Features * Selective gapic generation phase II ([#3730](googleapis/sdk-platform-java#3730)) ([d4bafa0](googleapis/sdk-platform-java@d4bafa0)) ### Bug Fixes * **hermetic-build:** use correct image name in templated graalvm jobs ([#3743](googleapis/sdk-platform-java#3743)) ([c71223d](googleapis/sdk-platform-java@c71223d)) * plumb mtls endpoint to TransportChannelProvider ([#3673](googleapis/sdk-platform-java#3673)) ([d7daf89](googleapis/sdk-platform-java@d7daf89)) ### Dependencies * add opentelemetry gcp-resources to shared deps ([#3722](googleapis/sdk-platform-java#3722)) ([4b94c7d](googleapis/sdk-platform-java@4b94c7d)) </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>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.