fix(google-auth): raise rsa extra lower bound to 4.0#17652
Merged
Conversation
1842257 to
371c0ac
Compare
371c0ac to
8d19f96
Compare
daniel-sanche
approved these changes
Jul 7, 2026
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 of Changes
setup.py:rsa_extra_requirefrom"rsa>=3.1.4,<5"to"rsa>=4.0.0,<5".testing/constraints-3.10.txt:rsa==4.0.0to lower-bound test constraints.Technical Rationale
Python 3.8+ Standard Library Removal (
base64.decodestring):base64.decodestring()function was completely removed from Python's standard library in favor ofbase64.b64decode().rsa < 4.0.0(such asrsa 3.1.4/3.4.2) calledbase64.decodestring()internally inrsa/pem.py:92during PEM certificate and key decoding.google-authunit tests or loading PEM keys on supported Python versions (Python 3.10+),rsa==3.1.4fails with:Non-breaking: rsa 4.0.0 was released in 2018. Virtually all active Python environments using google-auth[rsa] or google-auth[testing] already use rsa 4.x.
Primary Auth Flow Unaffected: google-auth uses cryptography as its primary required dependency for RSA/EC signing; rsa is only an optional extra (google-auth[rsa]).