Repository navigation
fix(storage): support universe_domain in gRPC clients - #19188
Merged
shradhakatyal merged 2 commits intoNov 23, 2026
Merged
shradhakatyal merged 2 commits into
shradhakatyal merged 2 commits into
Conversation
Ports googleapis#19160 onto the v3.17.1 baseline for the patch release. Updates GrpcClient and AsyncGrpcClient to resolve universe_domain from client_options or GOOGLE_CLOUD_UNIVERSE_DOMAIN and disable DirectPath outside googleapis.com. Validates credential universe domains before creating a gRPC channel, while skipping unconfigured unittest.mock credentials used in unit tests. Co-authored-by: Daniel Sanche <d.sanche14@gmail.com> Co-authored-by: Chandra Sirimala <chandrasiri@google.com> [Generated-by: AI]
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces universe domain support and validation for both the synchronous and asynchronous gRPC clients in google-cloud-storage. It adds helper functions to resolve universe domains from client options or environment variables, validates credentials against the resolved domain, and disables DirectPath for non-default universes. The review feedback highlights a potential AttributeError when validating certain mock credentials and suggests using local variables instead of redundantly re-assigning self._universe_domain within the client creation helper methods.
[Generated-by: AI]
Contributor
Author
|
/gcbrun (8e26f98) |
ShreyasSinha
approved these changes
Nov 23, 2026
shradhakatyal
pushed a commit
that referenced
this pull request
Nov 23, 2026
🤖 I have created a release *beep* *boop* --- ## [3.17.2](google-cloud-storage-v3.17.1...google-cloud-storage-v3.17.2) (2026-11-23) ### Bug Fixes * **storage:** support universe_domain in gRPC clients ([#19188](#19188)) ([d2d5dee](d2d5dee)) --- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Ports #19160 onto the
v3.17.1baseline after #19186 for the patch release.GrpcClientandAsyncGrpcClientnow honoruniverse_domainfromclient_optionsorGOOGLE_CLOUD_UNIVERSE_DOMAIN.Changes
_resolve_universe_domain,_resolve_grpc_config, and_validate_universe_domainhelpers ingrpc_client.py.storage.{universe_domain}unlessclient_options.api_endpointoverrides the host.googleapis.comuniverse.google.api_core.universe.compare_domains.unittest.mockcredentials so caller unit tests continue to work.universe_domainon bothGrpcClientandAsyncGrpcClient.