You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a requirements.txt file which specifies a link to a wheel, with credentials specified as environment variables, the password is output to the console in clear text. With a requirements.txt having:
pip version
21.0.1
Python version
3.7.10
OS
Windows & Linux
Additional information
No response
Description
When using a requirements.txt file which specifies a link to a wheel, with credentials specified as environment variables, the password is output to the console in clear text. With a requirements.txt having:
Where USER and PASS are set as environment variables.
Expected behavior
Password masked in console output.
How to Reproduce
pip install -r requirements.txt
Output
Code of Conduct
Looking at the code, I can see the following:
pip/src/pip/_internal/network/download.py
Lines 44 to 52 in 7ec0fa5
This code is calling a function
redact_auth_from_url
, but the following is not:pip/src/pip/_internal/operations/prepare.py
Lines 335 to 351 in 7ec0fa5
The text was updated successfully, but these errors were encountered: