Skip to content

feat: expose universe_domain for tpc #1150

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

feat: expose universe_domain for tpc #1150

wants to merge 4 commits into from

Conversation

daniel-sanche
Copy link
Contributor

@daniel-sanche daniel-sanche commented Jul 15, 2025

This PR better supports Trusted Partner Cloud (TPC) by exposing universe_domain and api_endpoint properties.

Universe domain was already supported by Bigtable by passing it in with client_options, but reading it back later was not easily accessible. This PR changes that

I also added a ValueError to be raised if the universe_domain set in the provided credentials file differs from the one passed in client_options

Note: This feature requires a minimum version update for google-auth, since we need access to the credential's universe_domain to properly validate that it matches the user input, to avoid accidentally sending data to the wrong universe_domain

@daniel-sanche daniel-sanche requested review from a team as code owners July 15, 2025 00:07
@product-auto-label product-auto-label bot added the size: l Pull request size is large. label Jul 15, 2025
@product-auto-label product-auto-label bot added the api: bigtable Issues related to the googleapis/python-bigtable API. label Jul 15, 2025
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: l Pull request size is large. labels Jul 15, 2025
@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 15, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 15, 2025
@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 21, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 21, 2025
Comment on lines +215 to +217
credentials
and credentials.universe_domain != self.universe_domain
and self._emulator_host is None

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be in a function like validate_universe_domain instead?

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/python-bigtable API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants