-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Credentials are leaked in requirements.txt #5134
Labels
Comments
Hey @ImreC here is another refinement requested for the |
Hey hey, |
Thanks for your contribution. The issue is now fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
When I run
pipenv requirements
with an index-url specified in the pipfile according to this page in the docs, pipenv reveals the credentials in the requirements.txt.Expected result
I'd expect the requirements.txt to contain a reference to the environment variable, just like in the
Pipfile.lock
.Actual result
The credentials are clearly visible in the requirements.txt.
Steps to replicate
Add you private pypi repo to the
pipfile
.Please run
$ pipenv --support
, and paste the results here. Don't put backticks (`
) around it! The output already contains Markdown formatting.$ pipenv --support
Pipenv version:
'2022.6.7'
Pipenv location:
'/anaconda/lib/python3.8/site-packages/pipenv'
Python location:
'/anaconda/bin/python'
Python installations found:
3.8.10
:/anaconda/bin/python3
3.8.10
:/anaconda/bin/python
3.8.10
:/anaconda/bin/python3.8
3.6.9
:/usr/bin/python3.6
3.6.9
:/usr/bin/python3.6m
3.6.9
:/usr/bin/python3
2.7.17
:/usr/bin/python2
2.7.17
:/usr/bin/python2.7
2.7.17
:/usr/bin/python
PEP 508 Information:
System environment variables:
CONDA_SHLVL
MSI_ENDPOINT
LS_COLORS
LD_LIBRARY_PATH
CONDA_EXE
JUPYTER_SERVER_ROOT
LESSCLOSE
LANG
AZURE_EXTENSION_DIR
MSI_SECRET_JOB
OLDPWD
INVOCATION_ID
CI_RESOURCE_GROUP
NODE_PATH
OBO_ENDPOINT
COLORTERM
JUPYTER_SERVER_URL
CONDA_PREFIX
VSCODE_GIT_ASKPASS_EXTRA_ARGS
CLASSPATH
USER
AML_CloudName
CI_WORKSPACE
MKL_THREADING_LAYER
PWD
LINES
HOME
CONDA_PYTHON_EXE
BROWSER
JOURNAL_STREAM
VSCODE_GIT_ASKPASS_NODE
TERM_PROGRAM
TERM_PROGRAM_VERSION
CUPIT_LIB_PATH
XDG_DATA_DIRS
DEFAULT_IDENTITY_CLIENT_ID
APPSETTING_WEBSITE_SITE_NAME
VSCODE_IPC_HOOK_CLI
CUDA_ROOT
LIBRARY_PATH
CONDA_PROMPT_MODIFIER
COLUMNS
CI_NAME
VSCODE_GIT_ASKPASS_MAIN
SHELL
TERM
MSI_SECRET
AZURE_ARTIFACTS_PAT
PYXTERM_DIMENSIONS
SHLVL
CI_LOCAL_UBUNTU_USER
VSCODE_GIT_IPC_HANDLE
MANPATH
LOGNAME
MLFLOW_TRACKING_URI
GIT_ASKPASS
ENABLE_MLFLOW_AUTOLOG
PATH
CONDA_DEFAULT_ENV
I_MPI_ROOT
LESSOPEN
_
PIP_SHIMS_BASE_MODULE
PIP_DISABLE_PIP_VERSION_CHECK
PIP_PYTHON_PATH
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
Contents of
Pipfile
:Contents of
Pipfile.lock
:The text was updated successfully, but these errors were encountered: