-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exposed credentials #7841
Comments
The culprit is pip/src/pip/_internal/utils/subprocess.py Line 178 in ce1e0f4
Which is called by pip/src/pip/_internal/vcs/versioncontrol.py Lines 652 to 690 in ce1e0f4
This ties back to #7711, we really need to move away from calling |
Hi @clod6677 This is fixed in #7969 since we now use a custom
Can you verify this as well after installing pip from the latest master and running the original command in the issue. (You can do |
The attempted fix for this had the interesting side effect of completely hiding all vcs errors from the user, except the exit code ? See also #9234. So we'll probably need to revert partially, and I think this particular exposed token issue has to be reported to the |
(annoying "keeping discussions easier to keep track of" note) Can we create a new issue, put down all the context there, and continue the discussion on what to do there? |
@pradyunsg discussion is taking place in #9234. I just wanted to cross-link here and mention that, IMO, this particular issue is not a pip issue. |
Environment:
Execution in a conda env. Installing a package though pip from a private repo (using user + token) located in a subdirectory.
Description
pip expose the credentials in case of Authentication failure. pip logs print the content of the env variable WRONG_TOKEN (see below WRONG_TOKEN_EXPOSED)
Expected behavior
Supplied credentials not shown in the logs nor in the trace-back, even if the authentication fails.
How to Reproduce
conda create -n test python=3
pip install git+https://:${WRONG_TOKEN}@myrepo.git@${LIBS_SHA}#subdirectory=pkg/my-package
Output
The text was updated successfully, but these errors were encountered: