René's URL Explorer Experiment


Title: google-auth: mTLS token refresh blindspot due to unconfigured internal helper transport · Issue #17680 · googleapis/google-cloud-python · GitHub

Open Graph Title: google-auth: mTLS token refresh blindspot due to unconfigured internal helper transport · Issue #17680 · googleapis/google-cloud-python

X Title: google-auth: mTLS token refresh blindspot due to unconfigured internal helper transport · Issue #17680 · googleapis/google-cloud-python

Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue When a developer calls configure_mtls_channel() on AuthorizedSession or AuthorizedHttp, the client certi...

Open Graph Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue When a developer calls configure_mtls_channel() on AuthorizedSes...

X Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue When a developer calls configure_mtls_channel() on AuthorizedSes...

Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/17680

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"google-auth: mTLS token refresh blindspot due to unconfigured internal helper transport","articleBody":"### Determine this is the right repository\n\n\n\n- [x] I determined this is the correct repository in which to report this bug.\n\n\n\n### Summary of the issue\n\n\n\nWhen a developer calls `configure_mtls_channel()` on `AuthorizedSession` or `AuthorizedHttp`, the client certificates are only mounted onto the **outer client session**. \n\n\n\nTo prevent infinite recursion loops, the credentials class delegates out-of-band network requests (such as token refreshing and internal IAM requests like `signBlob` or `generateAccessToken`) to a **separate internal helper session** (`self._auth_request_session`). \n\n\n\nBecause this internal transport is omitted during configuration, it lacks the client certificate. Consequently, any internal token exchanges or IAM requests bypass the mTLS channel entirely. \n\n* If GFE allows optional client certificates, the TLS handshake succeeds but silently falls back to standard one-way TLS.\n\n* If the token endpoint enforces strict Certificate-Based Access (CBA) policies, the connection is blocked, resulting in runtime outages.\n\n\n\n### Proposed fix\n\n\n\nEnsure the client certificate configuration propagates to the inner helper transport during channel setup.\n\n\n\n**For Requests (`google/auth/transport/requests.py`):**\n\nExplicitly mount the adapter to the inner session during configuration:\n\n```python\n\nif self._is_mtls:\n\n    mtls_adapter = _MutualTlsAdapter(cert, key)\n\n    self.mount(\"https://\", mtls_adapter)\n\n    if self._auth_request_session is not None:\n\n        self._auth_request_session.mount(\"https://\", mtls_adapter)\n\n```\n\n\n\n**For Urllib3 (`google/auth/transport/urllib3.py`):**\n\nEnsure the inner request transport is also configured with the mTLS http instance:\n\n```python\n\nif found_cert_key:\n\n    self.http = _make_mutual_tls_http(cert, key)\n\n    self._request = Request(self.http)\n\n```","author":{"url":"https://github.com/nbayati","@type":"Person","name":"nbayati"},"datePublished":"2026-07-09T05:29:43Z","url":"https://github.com/googleapis/google-cloud-python/issues/17680"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:733b3aa5-fa1f-60aa-8aa1-f97d7a171b94
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC774:2B73A8:6D31BB:9A3DAA:6AFE120A
html-safe-nonce8fe4b61bec40b717ebf77d018e26131b1fe768f60c5f2f2667c73cec5f9b4dba
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzc0OjJCNzNBODo2RDMxQkI6OUEzREFBOjZBRkUxMjBBIiwidmlzaXRvcl9pZCI6IjE2NzM4NjgzNDUwOTEwNzcyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6c4ad67254026c01f0b338b804402fdbe17c9b1d5e763495cc8cbca94ddd7369
hovercard-subject-tagissue:4843470992
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/17680/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d7d6732f16ae1926d49a3015a939ea954eb6c6a5f54e1e37ba4e2d1f2633f979/googleapis/google-cloud-python/issues/17680
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d7d6732f16ae1926d49a3015a939ea954eb6c6a5f54e1e37ba4e2d1f2633f979/googleapis/google-cloud-python/issues/17680
og:image:altDetermine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue When a developer calls configure_mtls_channel() on AuthorizedSes...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenbayati
hostnamegithub.com
expected-hostnamegithub.com
None3cd8a1d79ccbf9aecac62781f79072482a49047fb982b8c9e2ad4aca8bf6a9af
turbo-cache-controlno-preview
go-importgithub.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id16316451
octolytics-dimension-repository_nwogoogleapis/google-cloud-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id16316451
octolytics-dimension-repository_network_root_nwogoogleapis/google-cloud-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release05539640a34afe6142a519483d78ddd766a1304a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/googleapis/google-cloud-python/issues/17680#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F17680
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F17680
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fgoogle-cloud-python
Reloadhttps://github.com/googleapis/google-cloud-python/issues/17680
Reloadhttps://github.com/googleapis/google-cloud-python/issues/17680
Reloadhttps://github.com/googleapis/google-cloud-python/issues/17680
googleapishttps://github.com/googleapis
google-cloud-pythonhttps://github.com/googleapis/google-cloud-python
Codehttps://github.com/googleapis/google-cloud-python
Issues448 (448)https://github.com/googleapis/google-cloud-python/issues
Pull requests199 (199)https://github.com/googleapis/google-cloud-python/pulls
Discussionshttps://github.com/googleapis/google-cloud-python/discussions
Actionshttps://github.com/googleapis/google-cloud-python/actions
Projectshttps://github.com/googleapis/google-cloud-python/projects
Security and qualityhttps://github.com/googleapis/google-cloud-python/security
Insightshttps://github.com/googleapis/google-cloud-python/insights
https://github.com/googleapis/google-cloud-python
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/17680
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/17680
google-auth: mTLS token refresh blindspot due to unconfigured internal helper transporthttps://github.com/googleapis/google-cloud-python/issues/17680#top
authhttps://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22auth%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/nbayati
nbayatihttps://github.com/nbayati
on Jul 9, 2026https://github.com/googleapis/google-cloud-python/issues/17680#issue-4843470992
nbayatihttps://github.com/nbayati
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
triage meI really want to be triaged.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22triage%20me%22
triage meI really want to be triaged.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22triage%20me%22
on Jul 9, 2026https://github.com/googleapis/google-cloud-python/issues/17680#event-27748936753
nbayatihttps://github.com/nbayati
on Jul 17, 2026https://github.com/googleapis/google-cloud-python/issues/17680#event-28138581626
fix(transport): propagate mTLS adapter to auth session and fix connec…https://github.com/googleapis/google-cloud-python/commit/8289d328f9a1eb2abb766644e4f6748198679c80
8289d32https://github.com/googleapis/google-cloud-python/commit/8289d328f9a1eb2abb766644e4f6748198679c80
hebaalazzehhttps://github.com/hebaalazzeh
on Jul 17, 2026https://github.com/googleapis/google-cloud-python/issues/17680#event-28138992442
fix(transport): propagate mTLS adapter to auth session and fix connec…https://github.com/googleapis/google-cloud-python/commit/c0c5a6738e915f2b8e130e2077d7ea9b73e4486c
c0c5a67https://github.com/googleapis/google-cloud-python/commit/c0c5a6738e915f2b8e130e2077d7ea9b73e4486c
fix(transport): propagate mTLS adapter to auth session and fix connec…https://github.com/googleapis/google-cloud-python/commit/81b9ae4f24954821053119308227da9978a7fca7
81b9ae4https://github.com/googleapis/google-cloud-python/commit/81b9ae4f24954821053119308227da9978a7fca7
daniel-sanchehttps://github.com/daniel-sanche
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
authhttps://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22auth%22
on Jul 21, 2026https://github.com/googleapis/google-cloud-python/issues/17680#event-28284213752
https://github.com/nbayati
nbayatihttps://github.com/nbayati
on Aug 4, 2026https://github.com/googleapis/google-cloud-python/issues/17680#issuecomment-5185057049
#17689https://github.com/googleapis/google-cloud-python/pull/17689
nbayatihttps://github.com/nbayati
completedhttps://github.com/googleapis/google-cloud-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 4, 2026https://github.com/googleapis/google-cloud-python/issues/17680#event-28976591230
Sign up for freehttps://github.com/signup?return_to=https://github.com/googleapis/google-cloud-python/issues/17680
Sign in to commenthttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/17680
authhttps://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22auth%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.