Skip to content

Fix handling of universe domains with service key#657

Merged
stanhu merged 1 commit intomasterfrom
sh-service-key-universe-domain
Feb 10, 2026
Merged

Fix handling of universe domains with service key#657
stanhu merged 1 commit intomasterfrom
sh-service-key-universe-domain

Conversation

@stanhu
Copy link
Contributor

@stanhu stanhu commented Feb 9, 2026

The Google API already extracts the universe domain from the service key, if available. We don't need to set it.

Note that we still need to set the universe domain in client options because the Ruby client does not yet do this automatically unless you set the disable_universe_domain_check flag to false due to googleapis/google-auth-library-ruby#493:

require 'googleauth'
creds = Google::Auth.get_application_default
creds.disable_universe_domain_check = false
creds.fetch_access_token!

The Google API already extracts the universe domain from the service
key, if available. We don't need to set it.

Note that we still need to set the universe domain in client options
because the Ruby client does not yet do this automatically unless you
set the `disable_universe_domain_check` flag to false due to
googleapis/google-auth-library-ruby#493:

```
require 'googleauth'
creds = Google::Auth.get_application_default
creds.disable_universe_domain_check = false
creds.fetch_access_token!
```
@stanhu stanhu merged commit 42907df into master Feb 10, 2026
7 checks passed
@geemus
Copy link
Member

geemus commented Feb 10, 2026

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants