Skip to content
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

Document providing credentials in index, index-url, and extra-index-url #6797

Closed
chrahunt opened this issue Jul 27, 2019 · 1 comment
Closed
Labels
auto-locked Outdated issues that have been locked by automation help wanted For requesting inputs from other members of the community state: awaiting PR Feature discussed, PR is needed type: docs Documentation related

Comments

@chrahunt
Copy link
Member

chrahunt commented Jul 27, 2019

What's the problem this feature will solve?

Currently the user guide does not mention that basic auth credentials are supported in index, index-url, and extra-index-url. This situation is common in enterprise environments using e.g. devpi, Nexus, or Artifactory.

Describe the solution you'd like

Document that <username> or <username>:<password> are supported in the above arguments (like https://[username[:password]]@pypi.company.com/simple). We should also mention:

  • any URL special characters must be percent encoded (and maybe provide an example of doing that e.g. cat password.txt | python3 -c 'import sys; from urllib.parse import quote; print(quote(sys.stdin.read()))').
  • percent encoding is only supported as of 10.0.0 (Failure to authenticate private repository when URL-encoded character in password #3236) and URL special characters are not supported in credentials for versions of pip below that
  • explicit examples, with at least one case where the username is an email address to demonstrate the encoding of @

The description should mention "username", "password", "credentials", and "authentication" so it is easily found via search and google.

One place this could fit is in a dedicated section above or below Using a Proxy Server in the user guide, with links to it from the description of the arguments in:

It may be good to mention that the pip configuration file can hold these values so they can be used without exposing the arguments on the command-line.

And examples in

Alternative Solutions

Each repository manager and company maintains this information in their individual knowledge bases.

Additional context

@triage-new-issues triage-new-issues bot added the S: needs triage Issues/PRs that need to be triaged label Jul 27, 2019
@chrahunt chrahunt added the type: docs Documentation related label Jul 27, 2019
@triage-new-issues triage-new-issues bot removed the S: needs triage Issues/PRs that need to be triaged label Jul 27, 2019
@chrahunt chrahunt added state: awaiting PR Feature discussed, PR is needed help wanted For requesting inputs from other members of the community labels Jul 27, 2019
@chrahunt
Copy link
Member Author

chrahunt commented Dec 7, 2019

Fixed by #7201.

@chrahunt chrahunt closed this as completed Dec 7, 2019
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jan 6, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation help wanted For requesting inputs from other members of the community state: awaiting PR Feature discussed, PR is needed type: docs Documentation related
Projects
None yet
Development

No branches or pull requests

1 participant