Skip to content

fix: Set a default mtls endpoint value #2577

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

fix: Set a default mtls endpoint value #2577

wants to merge 5 commits into from

Conversation

lqiu96
Copy link
Contributor

@lqiu96 lqiu96 commented Apr 29, 2025

Set a default mTLSEndpoint value to pass to Gax.

For this draft PR, I also pulled in the shared-deps PR changes that introduced these DirectPath issues.

Copy link

Warning: This pull request is touching the following templated files:

  • .kokoro/build.sh

@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigtable Issues related to the googleapis/java-bigtable API. labels Apr 29, 2025
@lqiu96 lqiu96 changed the title Mtls endpoint fix: Set a default mtls endpoint value Apr 29, 2025
@lqiu96 lqiu96 requested review from mutianf and andre-sampaio April 29, 2025 18:11
@lqiu96
Copy link
Contributor Author

lqiu96 commented Apr 29, 2025

Hi @mutianf and @andre-sampaio, this is the proposed change that I was thinking about doing inside the BigTable repo. However, I just had some hesitations regarding existing mTLS behavior in BigTable.

BigTable's EnhancedStubSettings wrappers don't directly extend from the generated StubSettings class (only directly from Gax's StubSettings):

public class EnhancedBigtableStubSettings extends StubSettings<EnhancedBigtableStubSettings> {

It looks to be missing the mtlsEndpoint that we set for all GAPICs in the generated StubSettings class:

. This is the assumption that we made regarding all Java SDK libraries (there would be a mTLS endpoint value set to the StubSettings).

Let us know what you think about this and/ or if this has an unintended side effects. Thanks!

FYI, I pulled in the existing shared-deps PR to show that this fix would also work even without the upstream Gax fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/java-bigtable API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants