fix(google-auth): remove deprecated rsa dependency by daniel-sanche · Pull Request #16020 · googleapis/google-cloud-python · GitHub
Skip to content

fix(google-auth): remove deprecated rsa dependency#16020

Merged
daniel-sanche merged 8 commits intomainfrom
auth_remove_rsa
Mar 6, 2026
Merged

fix(google-auth): remove deprecated rsa dependency#16020
daniel-sanche merged 8 commits intomainfrom
auth_remove_rsa

Conversation

@daniel-sanche
Copy link
Copy Markdown
Contributor

@daniel-sanche daniel-sanche commented Mar 3, 2026

Coping over googleapis/google-auth-library-python#1930 to the new repo

This PR removes rsa as a required dependency, now that it has been replaced with cryptography (with warnings issued)

This change has been released as the 2.49.0.dev0 pre-release

@daniel-sanche daniel-sanche requested review from a team as code owners March 3, 2026 23:37
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor

@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 correctly removes rsa as a required dependency and makes it an optional extra. The lazy-loading of _python_rsa in google/auth/crypt/rsa.py is implemented well. However, I've identified a critical issue in setup.py where the new rsa extra is incorrectly added to the testing requirements. This would break the test environment setup. My review comment provides a fix for this issue.

Comment thread packages/google-auth/setup.py Outdated
@parthea parthea changed the title fix: remove deprecated rsa dependency fix(google-auth): remove deprecated rsa dependency Mar 5, 2026
@parthea parthea marked this pull request as draft March 5, 2026 17:29
@daniel-sanche daniel-sanche marked this pull request as ready for review March 6, 2026 18:53
@daniel-sanche daniel-sanche merged commit e8927b9 into main Mar 6, 2026
27 checks passed
@daniel-sanche daniel-sanche deleted the auth_remove_rsa branch March 6, 2026 19:57
parthea added a commit that referenced this pull request Mar 12, 2026
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.0.0-20260216162532-e323d455c92b
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:160860d189ff1c2f7515638478823712fa5b243e27ccc33a2728669fa1e2ed0c
<details><summary>google-ads-datamanager: v0.6.0</summary>

##
[v0.6.0](google-ads-datamanager-v0.5.0...google-ads-datamanager-v0.6.0)
(2026-03-12)

### Documentation

* update filter field documentation to clarify case requirements and
improve examples
([505bc97](505bc97))


### Features

* deprecate INVALID_COUNTRY_CODE and add MEMBERSHIP_DURATION_TOO_LONG to
the ErrorReason enum
([505bc97](505bc97))


### Bug Fixes

* feat: update advertiser_identifier_count in PairIdInfo to be optional
([505bc97](505bc97))
* update publisher_name in PairIdInfo to be required
([505bc97](505bc97))
* update match_rate_percentage in PairIdInfo to be required
([505bc97](505bc97))

</details>


<details><summary>google-auth: v2.49.1</summary>

##
[v2.49.1](google-auth-v2.49.0...google-auth-v2.49.1)
(2026-03-12)

### Bug Fixes

* fix request session error (#16050)
([bfd9322](bfd93225))

* remove deprecated rsa dependency (#16020)
([e8927b9](e8927b9c))

</details>


<details><summary>google-cloud-ces: v0.2.0</summary>

##
[v0.2.0](google-cloud-ces-v0.1.0...google-cloud-ces-v0.2.0)
(2026-03-12)

### Documentation

* A comment for field `cert` in message
`.google.cloud.ces.v1beta.TlsConfig` is changed
([505bc97](505bc97))
* A comment for field `name` in message `.google.cloud.ces.v1beta.Tool`
is changed PiperOrigin-RevId: 878047537
([505bc97](505bc97))
* A comment for field `entry_agent` in message
`.google.cloud.ces.v1beta.SessionConfig` is changed
([505bc97](505bc97))


### Features

* update public libraries for CES v1beta
([505bc97](505bc97))


### Bug Fixes

* An existing field `app` is renamed to `name` in message
`.google.cloud.ces.v1beta.UploadEvaluationAudioRequest`
([505bc97](505bc97))
* An existing field `audio_transcript` is renamed to `transcript` in
message `.google.cloud.ces.v1beta.UploadEvaluationAudioResponse`
([505bc97](505bc97))
* An existing field `audio_duration` is renamed to `duration` in message
`.google.cloud.ces.v1beta.UploadEvaluationAudioResponse`
([505bc97](505bc97))
* An existing field `variables` is moved in to oneof in message
`.google.cloud.ces.v1beta.ExecuteToolRequest`
([505bc97](505bc97))
* An existing method_signature `app,audio_content` is removed from
method `UploadEvaluationAudio` in service `EvaluationService`
([505bc97](505bc97))
* An existing google.api.http annotation `http_uri` is changed for
method `UploadEvaluationAudio` in service `EvaluationService`
([505bc97](505bc97))

</details>


<details><summary>google-cloud-compute: v1.46.0</summary>

##
[1.46.0](google-cloud-compute-v1.45.0...google-cloud-compute-v1.46.0)
(2026-03-12)


### Features

* Update Compute Engine v1 API to revision 20260227
([7b22ea2](7b22ea2))

</details>


<details><summary>google-cloud-compute-v1beta: v0.9.0</summary>

##
[0.9.0](google-cloud-compute-v1beta-v0.8.0...google-cloud-compute-v1beta-v0.9.0)
(2026-03-12)


### Features

* Update Compute Engine v1beta API to revision 20260227
([bf43768](bf43768))

</details>


<details><summary>google-cloud-firestore: v2.25.0</summary>

##
[v2.25.0](google-cloud-firestore-v2.24.0...google-cloud-firestore-v2.25.0)
(2026-03-12)

### Features

* support array_agg(), array_agg_distinct(), first(), last() (#16029)
([d04a241](d04a241d))

</details>


<details><summary>google-cloud-gdchardwaremanagement: v0.4.0</summary>

##
[0.4.0](google-cloud-gdchardwaremanagement-v0.3.0...google-cloud-gdchardwaremanagement-v0.4.0)
(2026-03-12)


### Features

* Add `OFFLINE` state to Zone resources A new `OFFLINE` state has been
added to the `Zone.State` enum. This state indicates that the zone is
temporarily not operational, for example, while undergoing maintenance
or repair
([505bc97](505bc97))

</details>


<details><summary>google-cloud-geminidataanalytics: v0.11.0</summary>

##
[0.11.0](google-cloud-geminidataanalytics-v0.10.0...google-cloud-geminidataanalytics-v0.11.0)
(2026-03-12)


### Documentation

* update field comments for `generated_looker_query` in `DataMessage`
([505bc97](505bc97))


### Features

* add `ParameterizedSecureViewParameters` message and field for PSV
support
([505bc97](505bc97))
* add `ThinkingMode` enum and field to control agent thinking mode
([505bc97](505bc97))

</details>


<details><summary>google-cloud-gke-hub: v1.22.0</summary>

##
[1.22.0](google-cloud-gke-hub-v1.21.0...google-cloud-gke-hub-v1.22.0)
(2026-03-12)


### Features

* upgrade protobuf from v25.7 to v31.0
([505bc97](505bc97))
</details>


<details><summary>google-cloud-pubsub: v2.36.0</summary>

##
[2.36.0](google-cloud-pubsub-v2.35.0...google-cloud-pubsub-v2.36.0)
(2026-03-12)


### Features

* Add BigtableConfig type
([ec1a676](ec1a676))

</details>


<details><summary>google-maps-routing: v0.9.0</summary>

##
[0.9.0](google-maps-routing-v0.8.0...google-maps-routing-v0.9.0)
(2026-03-12)


### Documentation

* regenerated documentation for fields
([505bc97](505bc97))


### Features

* add a new Waypoint source to accept a token that identifies a
Navigation Point obtained from the `SearchDestinations` method of the
Geocoding API
([505bc97](505bc97))

</details>


<details><summary>google-resumable-media: v2.8.1</summary>

##
[v2.8.1](google-resumable-media-v2.8.0...google-resumable-media-v2.8.1)
(2026-03-12)

### Bug Fixes

* add max_length support to Gzip/Brotli decoders for urllib3 2.6&#43;
(#495)
([cb90060](cb900605))

</details>


<details><summary>google-shopping-type: v1.3.0</summary>

##
[1.3.0](google-shopping-type-v1.2.0...google-shopping-type-v1.3.0)
(2026-03-12)


### Documentation

* A comment for message `DestintionEnum` is changed
([505bc97](505bc97))


### Features

* add more values in DestintionEnum
([505bc97](505bc97))

</details>

---------

Co-authored-by: Anthonios Partheniou <partheniou@google.com>
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