Skip to content

chore(deps): update dependency google-auth to v2.49.0#846

Open
renovate-bot wants to merge 1 commit intogoogleapis:mainfrom
renovate-bot:renovate/google-auth-2.x
Open

chore(deps): update dependency google-auth to v2.49.0#846
renovate-bot wants to merge 1 commit intogoogleapis:mainfrom
renovate-bot:renovate/google-auth-2.x

Conversation

@renovate-bot
Copy link
Contributor

This PR contains the following updates:

Package Change Age Confidence
google-auth ==2.41.1==2.49.0 age confidence

Release Notes

googleapis/google-auth-library-python (google-auth)

v2.48.0

Compare Source

Features
Bug Fixes

v2.47.0

Compare Source

Features
Bug Fixes

v2.46.0

Compare Source

Documentation
Features
Bug Fixes

v2.45.0

Compare Source

Features

v2.44.0

Compare Source

Features
Bug Fixes

v2.43.0

Compare Source

Features
  • Add public wrapper for _mtls_helper.check_use_client_cert which enables mTLS if GOOGLE_API_USE_CLIENT_CERTIFICATE is not set, when the MWID/X.509 cert sources detected (#​1859) Add public wrapper for check_use_client_cert which enables mTLS if
    GOOGLE_API_USE_CLIENT_CERTIFICATE is not set, when the MWID/X.509 cert
    sources detected. Also, fix check_use_client_cert to return boolean
    value.
    Change #​1848 added the check_use_client_cert method that helps know if
    client cert should be used for mTLS connection. However, that was in a
    private class, thus, created a public wrapper of the same function so
    that it can be used by python Client Libraries. Also, updated
    check_use_client_cert to return a boolean value instead of existing
    string value for better readability and future scope.
    --------- (1535eccbff0ad8f3fd6a9775316ac8b77dca66ba)
  • Enable mTLS if GOOGLE_API_USE_CLIENT_CERTIFICATE is not set, if the MWID/X.509 cert sources detected (#​1848) The Python SDK will use a hybrid approach for mTLS enablement:
  • If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is set
    (either true or false), the SDK will respect that setting. This is
    necessary for test scenarios and users who need to explicitly control
    mTLS behavior.
  • If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is not
    set, the SDK will automatically enable mTLS only if it detects Managed
    Workload Identity (MWID) or X.509 Workforce Identity Federation (WIF)
    certificate sources. In other cases where the variable is not set, mTLS
    will remain disabled.
    ** This change also adds the helper method check_use_client_cert and
    it's unit test, which will be used for checking the criteria for setting
    the mTLS to true
    ** This change is only for Auth-Library, other changes will be created
    for Client-Library use-cases.
    --------- (395e405b64b56ddb82ee639958c2e8056ad2e82b)

v2.42.1

Compare Source

Bug Fixes

v2.42.0

Compare Source

Features
Bug Fixes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot renovate-bot requested a review from a team as a code owner March 7, 2026 01:14
@trusted-contributions-gcf trusted-contributions-gcf bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 7, 2026
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner-sqlalchemy API. label Mar 7, 2026
@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the google-auth Python library to its latest version, 2.49.0. This upgrade incorporates numerous new features, including enhanced mTLS capabilities, improved GCE metadata server interactions, and broader Python version support. It also addresses several bug fixes, improving the library's stability and reliability for authentication processes.

Highlights

  • Dependency Update: Updated the google-auth dependency from version 2.41.1 to 2.49.0, incorporating multiple minor and patch releases.
  • Enhanced mTLS Capabilities: Introduced significant improvements to mTLS (mutual Transport Layer Security), including support for the mTLS IAM domain, automatic enablement when MWID/X.509 certificate sources are detected, and mTLS usage for MDS connections.
  • New Features: Added configurable GCE Metadata Server retries, support for Agent Identity bound tokens, Python 3.14 compatibility, ecdsa p-384 support, and token revocation in the STS client.
  • Bug Fixes and Stability: Resolved several bugs, such as circular import issues, incorrect AWS IMDS headers, improved ADC environment variable detection, and fixes for Python 3.8 support.
  • Dependency Management: The cachetools dependency was dropped in favor of a simpler local implementation, and cryptography was added as a required dependency.
Changelog
  • google-auth
    • v2.48.0
    • Features: Added cryptography as a required dependency.
    • Features: Supported the mTLS IAM domain for Certificate based Access.
    • Features: Added configurable GCE Metadata Server retries.
    • Features: Honored NO_GCE_CHECK environment variable.
    • Bug Fixes: Resolved circular imports.
    • Bug Fixes: Removed content-header from AWS IMDS get request.
    • Bug Fixes: Detected correct auth when ADC env var is set but empty.
    • Bug Fixes: Replaced deprecated utcfromtimestamp.
    • Bug Fixes: Used user_verification=preferred for ReAuth WebAuthn challenge.
    • v2.47.0
    • Features: Dropped cachetools dependency in favor of simple local implementation.
    • Bug Fixes: Fixed Python 3.8 support.
    • v2.46.0
    • Documentation: Updated urllib3 docstrings for v2 compatibility.
    • Features: Recognized workload certificate config in has_default_client_cert_source for mTLS for Agentic Identities.
    • Bug Fixes: Added types to default and verify_token and Request __init__.
    • Bug Fixes: Fixed the document of secure_authorized_session.
    • Bug Fixes: Removed setup.cfg configuration for creating universal wheels.
    • Bug Fixes: Used .read() instead of .content.read() in aiohttp transport.
    • Bug Fixes: Raised RefreshError for missing token in impersonated credentials.
    • Bug Fixes: Fixed test coverage for mtls_helper.
    • v2.45.0
    • Features: Added Agent Identity bound token support and handling certificate mismatches with retries.
    • v2.44.0
    • Features: Supported Python 3.14.
    • Features: Added ecdsa p-384 support.
    • Features: Made MDS connections use mTLS.
    • Features: Implemented token revocation in STS client and added revoke() method.
    • Features: Added shlex to correctly parse executable commands with spaces.
    • Bug Fixes: Used public refresh method for source credentials in ImpersonatedCredentials.
    • Bug Fixes: Added temporary patch to workload cert logic to accommodate Cloud Run mis-configuration.
    • Bug Fixes: Delegated workload cert and key default lookup to helper function.
    • v2.43.0
    • Features: Added public wrapper for _mtls_helper.check_use_client_cert which enables mTLS if GOOGLE_API_USE_CLIENT_CERTIFICATE is not set, when MWID/X.509 cert sources detected.
    • Features: Enabled mTLS if GOOGLE_API_USE_CLIENT_CERTIFICATE is not set, if the MWID/X.509 cert sources detected.
    • Features: Onboarded google-auth to librarian.
    • v2.42.1
    • Bug Fixes: Caught ValueError for json.loads().
    • v2.42.0
    • Features: Added trust boundary support for external accounts.
    • Bug Fixes: Read scopes from ADC json for impersonated cred.
Activity
  • The pull request was opened by renovate-bot to update the google-auth dependency.
  • Automerge is currently disabled, requiring manual merging.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 7, 2026
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the google-auth dependency from version 2.41.1 to 2.49.0. While the update is beneficial, it appears to have been applied in a way that leaves the requirements.txt file in an inconsistent state. Specifically, google-auth version 2.47.0 and later no longer depend on cachetools, but cachetools has not been removed from requirements.txt. I've left a comment suggesting to regenerate the file using pip-compile to ensure all dependencies are correctly resolved.

Note: Security Review has been skipped due to the limited scope of the PR.

Comment on lines +158 to +160
google-auth==2.49.0 \
--hash=sha256:9cc2d9259d3700d7a257681f81052db6737495a1a46b610597f4b8bafe5286ae \
--hash=sha256:f893ef7307f19cf53700b7e2f61b5a6affe3aa0edf9943b13788920ab92d8d87

Choose a reason for hiding this comment

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

medium

While updating google-auth is a good step, this change appears to have been made in a way that leaves the requirements.txt file in an inconsistent state. According to the release notes for google-auth v2.47.0, the dependency on cachetools was removed. However, cachetools is still present in this file (lines 17-20), with a comment indicating it's required by google-auth.

To ensure dependency consistency and remove potentially unnecessary packages, please regenerate this file by running pip-compile --generate-hashes. This will correctly resolve all dependencies and remove cachetools if it's no longer needed by any other package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the googleapis/python-spanner-sqlalchemy API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants