Skip to content

[3.14] gh-158907: Do not send proxy credentials to a direct origin on 407 (GH-158956) - #161920

Open
miss-islington wants to merge 1 commit into
python:3.14from
miss-islington:backport-ab48ba8-3.14
Open

miss-islington wants to merge 1 commit into
python:3.14from
miss-islington:backport-ab48ba8-3.14

Conversation

@miss-islington

Copy link
Copy Markdown
Contributor

ProxyBasicAuthHandler and ProxyDigestAuthHandler looked up passwords with the scheme-less origin host, so an HTTP 407 could match credentials stored for HTTPS and retry in cleartext.


(cherry picked from commit ab48ba8)

Co-authored-by: rajorin 167426833+rajorin@users.noreply.github.com
Co-authored-by: Senthil Kumaran senthil@python.org

…407 (pythonGH-158956)

* pythongh-158907: Do not send proxy credentials to a direct origin on 407

ProxyBasicAuthHandler and ProxyDigestAuthHandler looked up passwords with the scheme-less origin host, so an HTTP 407 could match credentials stored for HTTPS and retry in cleartext.

---------
(cherry picked from commit ab48ba8)

Co-authored-by: rajorin <167426833+rajorin@users.noreply.github.com>
Co-authored-by: Senthil Kumaran <senthil@python.org>
@python-cla-bot

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

@orsenthil
orsenthil enabled auto-merge (squash) November 13, 2026 01:44
@StanFromIreland

Copy link
Copy Markdown
Member

@rajorin can you please sign the CLA again, you can read more about why this is necessary in the devguide.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants