Skip to content

Makes NO_PROXY, HTTP_PROXY, HTTPS_PROXY, PYMANAGER_USERNAME and _PASSWORD values configurable in settings - #430

Open
zooba wants to merge 8 commits into
python:mainfrom
zooba:gh-425
Open

zooba wants to merge 8 commits into
python:mainfrom
zooba:gh-425

Conversation

@zooba

@zooba zooba commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Also ignores (and warns about) values of NO_PROXY that aren't a simple true/false value (1/0/yes/no/etc.).

Related to #425 but not a complete fix.

…tings.

Also ignores values of NO_PROXY that aren't a simple 'true'.

Fixes python#425
@zooba

zooba commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

No tests yet, just wanted to get the change started.

@zooba
zooba marked this pull request as ready for review October 22, 2026 20:22
@zooba
zooba requested a balanced review from Copilot October 23, 2026 10:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Credential exposure in configuration logging and incomplete proxy configuration handling block approval.

5 open issues
What changed in this PR

This PR adds configuration-backed proxy settings to PyManager and addresses the global proxy bypass reported in #425 by warning on unsupported NO_PROXY values rather than treating them as a blanket bypass.

Changes:

  • Adds proxy and download credential settings with environment-variable defaults.
  • Introduces explicit proxy information for download helpers and boolean-style NO_PROXY handling.
  • Updates proxy tests to pass settings directly and check bypass values and warnings.
File Description
tests/​test_urlutils.py Updates proxy tests and adds NO_PROXY value coverage.
src/​pymanager.json Adds environment-backed proxy and credential defaults.
src/​manage/​urlutils.py Adds proxy configuration arguments and revised bypass parsing.
src/​manage/​install_command.py Uses configured credentials and removes unused parameters.
src/​manage/​commands.py Defines proxy and credential configuration fields.

Review effort: Balanced

Comment thread src/manage/commands.py Outdated
Comment thread src/manage/commands.py Outdated
Comment thread src/manage/commands.py Outdated
Comment thread src/manage/urlutils.py
Comment thread src/pymanager.json Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/manage/config.py Outdated
Comment thread src/manage/commands.py Outdated
@zooba zooba changed the title Makes NO_PROXY, HTTP_PROXY and HTTPS_PROXY values configurable in settings Makes NO_PROXY, HTTP_PROXY, HTTPS_PROXY, PYMANAGER_USERNAME and _PASSWORD values configurable in settings Oct 23, 2026
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