Skip to content

Describe dependency confusion mitigations in "Secure installs" docs #11722

@di

Description

@di

What's the problem this feature will solve?

The docs at https://pip.pypa.io/en/stable/topics/secure-installs/ do not describe how to avoid dependency confusion attacks that can arise when using --extra-index-url (as described in #8606).

Describe the solution you'd like

The docs at https://pip.pypa.io/en/stable/topics/secure-installs/ should describe how to avoid dependency confusion attacks (e.g., don't use --extra-index-url, use --index-url instead, or --find-links combined with --no-index)

Alternative Solutions

One alternative is to resolve #8606 or deprecate/remove --extra-index-url instead. Without stating an opinion on whether either of those should happen, I think we should document this in the short term regardless.

Additional context

#11694 is related, but is about adding this to the --extra-index-url docs instead. IMO, we should do both (likely link to one from the other).

Happy to work on this if it's agreed this is worthwhile!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueA good item for first time contributors to work ontype: docsDocumentation related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions