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

fix: Temporarily disable universe domain query from GCE metadata server #493

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dazuma
Copy link
Member

@dazuma dazuma commented Oct 9, 2024

This is Ruby's response to internal issue b/349488459. In this PR, 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, the client libraries (in gapic-common, via googleapis/gapic-generator-ruby#1119) 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 googleapis and gapic-common gems.

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.

1 participant