Skip to content

fix(deps): require google-auth>=2.63.2 - #1531

Open
kgala2 wants to merge 1 commit into
mainfrom
fix/require-google-auth-2-63-2
Open

kgala2 wants to merge 1 commit into
mainfrom
fix/require-google-auth-2-63-2

Conversation

@kgala2

@kgala2 kgala2 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Testing

  • pytest tests/unit in 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, and python -m build + twine check --strict (the nox -s lint steps): all pass. Built wheel and sdist metadata contain Requires-Dist: google-auth>=2.63.2.
  • Resolver checks, each in a fresh venv:
    • pip install . google-auth==2.63.1 fails with ResolutionImpossible (cloud-sql-python-connector 1.24.2 depends on google-auth>=2.63.2). The same command against main installs google-auth 2.63.1.
    • pip install . resolves google-auth 2.63.2, and pip check is clean.
    • Starting from an env with cloud-sql-python-connector 1.24.2 and google-auth 2.63.1, pip install . upgrades google-auth to 2.63.2, and pip check is clean.
  • Ran Connector() with sovereign-universe credential files under google-auth 2.63.1 and 2.63.2. HTTP was faked and real network was blocked.
    • With 2.63.2, an impersonated credential file with a top-level universe_domain gets that universe. Without a matching universe_domain setting, the connector raises the existing mismatch ValueError.
    • With 2.63.2, an external account file with a non-default token endpoint makes no default-universe project lookup before that check.
    • With 2.63.1, neither of these held.

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.
@kgala2
kgala2 requested a review from a team as a code owner December 4, 2026 01:00
@kgala2
kgala2 requested a review from hessjcg December 4, 2026 01:01
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