Skip to content

feat(auth): Ensure new auth SDK versions are backwards compatible with previous SDKs to enable copying to G3#17407

Open
macastelaz wants to merge 6 commits into
mainfrom
copy_updates
Open

feat(auth): Ensure new auth SDK versions are backwards compatible with previous SDKs to enable copying to G3#17407
macastelaz wants to merge 6 commits into
mainfrom
copy_updates

Conversation

@macastelaz

Copy link
Copy Markdown
Contributor

Incorporate universal bug fixes, robustness guardrails, and circular import decoupling

  • Restore fail-fast validation in _mtls_helper.py
  • Add robustness guardrails to impersonated_credentials.py for universe_domain
  • Safeguard RSA Signer & key_id in rsa.py
  • Break circular import in credentials.py
  • Update unit tests in test__mtls_helper.py to match new behavior and run robustly in Google environments.

TAG=agy
CONV=39c1761f-e06b-4e3a-80b6-b4fbc70df0b6

…nd circular import decoupling

- Restore fail-fast validation in _mtls_helper.py
- Add robustness guardrails to impersonated_credentials.py for universe_domain
- Safeguard RSA Signer & key_id in rsa.py
- Break circular import in credentials.py
- Update unit tests in test__mtls_helper.py to match new behavior and run robustly in Google environments.

TAG=agy
CONV=39c1761f-e06b-4e3a-80b6-b4fbc70df0b6

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

Copy link
Copy Markdown
Contributor

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 introduces dynamic imports for regional access boundary lookups, adds robust environment variable validation for client certificates, and improves fallback handling for universe domains and key IDs. The review feedback highlights opportunities to make the code more robust and efficient, such as performing safe None checks before accessing object properties in rsa.py, avoiding falsy value issues when retrieving key_id, and eliminating redundant attribute lookups in impersonated_credentials.py.

Comment thread packages/google-auth/google/auth/crypt/rsa.py Outdated
Comment thread packages/google-auth/google/auth/crypt/rsa.py Outdated
Comment thread packages/google-auth/google/auth/impersonated_credentials.py
…s module attribute

TAG=agy
CONV=39c1761f-e06b-4e3a-80b6-b4fbc70df0b6
…ey_id

TAG=agy
CONV=39c1761f-e06b-4e3a-80b6-b4fbc70df0b6
…impersonated credentials

TAG=agy
CONV=39c1761f-e06b-4e3a-80b6-b4fbc70df0b6
TAG=agy
CONV=39c1761f-e06b-4e3a-80b6-b4fbc70df0b6
TAG=agy
CONV=39c1761f-e06b-4e3a-80b6-b4fbc70df0b6
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