Skip to content

pip freeze prints out username and password from URLs with them #11410

Open
@sbhattathiri

Description

@sbhattathiri

Description

When I do pip freeze, it prints out the username and password that I included while cloning the local modules \ repositories

Similar to : #4746

Expected behavior

Passwords should'nt be shown

pip version

21.1.1

Python version

3.8.10

OS

Centos7

How to Reproduce

  1. Clone a repository to local using username and password :
    git clone -b my_branch https://$gusr:$gpwd@gitlab.com/my-repo.git
  2. Do a local install of the repo
    cd my-repo
    pip install -e .
  3. Do pip freeze

Output

prints out my user credentials

-e git+https://gusr:gpwd@gitlab.com/my-repo#egg=repo_name

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: editableEditable installationsC: vcspip's interaction with version control systems like git, svn and bzrstate: awaiting PRFeature discussed, PR is neededtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions