This is Ruby's response to internal issue b/349488459. In a separate PR for the auth library (https://github.com/googleapis/google-auth-library-ruby/pull/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.
This is Ruby's response to internal issue b/349488459. In a separate PR for the auth library (https://github.com/googleapis/google-auth-library-ruby/pull/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-codegoogleapis.com
. Then, this PR for gapic-common will check for thedisable_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 reportgoogleapis.com
as the universe. Early testers of non-googleapis universes will simply have to update both the googleauth and gapic-common gems.