Skip to content

Remove direct support for PEP381 Mirrors - #1098

Merged
jezdez merged 2 commits into
pypa:developfrom
dstufft:remove-mirror-support
Jul 30, 2013
Merged

jezdez merged 2 commits into
pypa:developfrom
dstufft:remove-mirror-support

Conversation

@dstufft

@dstufft dstufft commented Jul 29, 2013

Copy link
Copy Markdown
Member
  • PEP381 Mirroring support was never fully implemented leaving users of it trivially exploitable to a MITM or malicious mirror operator.
  • 2 out of 6 of the mirrors have been removed from the pool and will never resolve.
  • The remaining mirrors often fall behind
  • The mirrors will likely never be available under HTTPS
  • People who wish to use a mirror of PyPI can still do so by manually specifying a mirror url for --index-url or --extra-index-url which is more flexible, allowing for mirrors to be hosted under any domain.

Additionally Richard has proposed (and I agree with him) demphasizing (and ideally removing) the official public mirrors as they are now more or less superseded by the CDN as well as being a security risk for PyPI itself (an attacker controlling z.pypi.python.org can attack the cookies from pypi.python.org).

Comment thread pip/cmdoptions.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we please not own code like that?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I can remove it. I didn't really think about it. It's the format we use at work so that there's some notion of who added the TODO which is easy to get at and survives refactoring and such :)

@dstufft

dstufft commented Jul 29, 2013

Copy link
Copy Markdown
Member Author

The CI failure on this PR is limited to Python 2.6 and doesn't appear to be directly related to the changes. I personally consider this PR as having passed the tests based on that.

* PEP381 Mirroring support was never fully implemented leaving
  users of it trivially exploitable to a MITM or malicious mirror
  operator.
* 2 out of 6 of the mirrors have been removed from the pool and
  will never resolve.
* The remaining mirrors often fall behind
* The mirrors will likely never be available under HTTPS
* People who wish to use a mirror of PyPI can still do so by
  manually specifying a mirror url for --index-url or
  --extra-index-url which is more flexible, allowing for
  mirrors to be hosted under any domain.
@pnasrat

pnasrat commented Jul 29, 2013

Copy link
Copy Markdown
Contributor

I think with the CDN and the issues above we should certainly deprecate/remove mirror support as is.

jezdez added a commit that referenced this pull request Jul 30, 2013
Remove direct support for PEP381 Mirrors
@jezdez
jezdez merged commit c2b799d into pypa:develop Jul 30, 2013
@dstufft
dstufft deleted the remove-mirror-support branch July 30, 2013 11:03
doismellburning added a commit to pyroven/django-pyroven that referenced this pull request Jan 7, 2015
pypa/pip#1098 - unsupported, dangerous, slow,
etc.
JamieMagee added a commit to JamieMagee/praw that referenced this pull request Apr 9, 2015
This flag has been deprecated in pip for a long time now
pypa/pip#1098
micbou added a commit to micbou/ycmd that referenced this pull request May 18, 2015
Pip no longer supports --use-mirrors since version 1.5. See
pypa/pip#1098.
micbou added a commit to micbou/YouCompleteMe that referenced this pull request May 18, 2015
Pip no longer supports --use-mirrors since version 1.5. See
pypa/pip#1098.
adamkal added a commit to adamkal/django-environ that referenced this pull request Sep 29, 2015
fredkingham added a commit to openhealthcare/opal-referral that referenced this pull request Nov 10, 2015
FND added a commit to FND/markdown-checklist that referenced this pull request Oct 1, 2016
rbubley added a commit to rbubley/pycallgraph that referenced this pull request Mar 15, 2017
`--use-mirrors` was removed as a `pip` option (pypa/pip#1098)
psolyca added a commit to psolyca/totalopenstation that referenced this pull request Oct 21, 2017
As per the following: pypa/pip#1098

The --use-mirrors argument for travis.yml was deprecated in 2015.

pip builds for 2.7 used before this change fail during automated
testing with 'no option --use-mirrors'
peldszus added a commit to peldszus/supercell that referenced this pull request Feb 23, 2018
* This option to `pip install` is now deprecated.
  See: pypa/pip#1098
aspiers pushed a commit to aspiers/rapport that referenced this pull request Mar 5, 2018
Apparently this is no longer available:

pypa/pip#1098
@aspiers aspiers mentioned this pull request Mar 5, 2018
drotschmann pushed a commit to retresco/supercell that referenced this pull request Mar 8, 2018
* This option to `pip install` is now deprecated.
  See: pypa/pip#1098
scottwoodall pushed a commit to scottwoodall/django-redis that referenced this pull request Mar 22, 2018
JoshRosen added a commit to databricks/spark-pr-dashboard that referenced this pull request Sep 3, 2018
JoshRosen added a commit to databricks/spark-pr-dashboard that referenced this pull request Sep 3, 2018
@lock lock Bot added the auto-locked Outdated issues that have been locked by automation label Jun 5, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Jun 5, 2019
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants