Repository navigation
Conversation
The connector validates the configured universe domain against credentials.universe_domain. google-auth 2.63.2 fixes two cases where that value, or the project ID lookup done by google.auth.default(), did not respect a non-default universe domain: - impersonated service account credentials keep the top-level universe_domain from the credentials file (googleapis/google-cloud-python#19221) - external account credentials skip the default-universe Cloud Resource Manager project lookup when their token endpoint is in another universe (googleapis/google-cloud-python#19200) Raise the minimum google-auth version so installs can no longer resolve an older release. requirements.txt already pins 2.63.2 for CI.
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
google-authversion inpyproject.tomlfrom2.28.0to2.63.2. No connector code changes.credentials.universe_domain. google-auth 2.63.2 fixes two cases where that value, or the project ID lookup done bygoogle.auth.default(), did not respect a non-default universe domain:universe_domainfrom the credentials file (fix(auth): propagate top-level universe_domain in impersonated creds googleapis/google-cloud-python#19221);requirements.txtalready pinsgoogle-auth==2.63.2for CI, so this only changes what users can resolve when installing the connector. Environments that pingoogle-authbelow 2.63.2 will need to upgrade it together with the connector.googleapis.combehavior is unchanged.Testing
pytest tests/unitin a fresh Python 3.13 venv (google-auth 2.63.2): 294 passed. The local run used the previous patch releases of cryptography, filelock, virtualenv, and pg8000 because the newest pins were not available in my environment yet; CI uses the pinned versions.ruff check google tests noxfile.py,mypy -p google, andpython -m build+twine check --strict(thenox -s lintsteps): all pass. Built wheel and sdist metadata containRequires-Dist: google-auth>=2.63.2.pip install . google-auth==2.63.1fails withResolutionImpossible(cloud-sql-python-connector 1.24.2 depends on google-auth>=2.63.2). The same command againstmaininstalls google-auth 2.63.1.pip install .resolves google-auth 2.63.2, andpip checkis clean.pip install .upgrades google-auth to 2.63.2, andpip checkis clean.Connector()with sovereign-universe credential files under google-auth 2.63.1 and 2.63.2. HTTP was faked and real network was blocked.universe_domaingets that universe. Without a matchinguniverse_domainsetting, the connector raises the existing mismatchValueError.