Skip to content
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

feat: Disable universe domain check if credentials include an explicit request to do so #1119

Merged
merged 3 commits into from
Oct 15, 2024

Conversation

dazuma
Copy link
Member

@dazuma dazuma commented Oct 9, 2024

This is Ruby's response to internal issue b/349488459. In a separate PR for the auth library (googleapis/google-auth-library-ruby#493), we add a (temporary, optional) attribute (disable_universe_domain_check) to credential objects that signals the credential may incorrectly claim googleapis as its universe domain. This will be used for GCECredentials temporarily; when set (which for now it will be), GCECredentials will not query the metadata server for universe domain but will instead hard-code googleapis.com. Then, this PR for gapic-common will check for the disable_universe_domain_check attribute, and if present and set, will not perform the universe domain consistency check. This will effectively stop universe domain MDS calls and checks for GCE credentials while leaving them active for all other credential types. It will also not break existing normal (googleapis) users because those credential objects will continue to report googleapis.com as the universe. Early testers of non-googleapis universes will simply have to update both the googleauth and gapic-common gems.

Copy link
Member

@viacheslav-rostovtsev viacheslav-rostovtsev left a comment

Choose a reason for hiding this comment

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

LGTM

@dazuma dazuma merged commit 478af43 into googleapis:main Oct 15, 2024
10 checks passed
@dazuma dazuma deleted the pr/universe-relax branch October 15, 2024 20:30
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