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

docs.python.org is prone to political blocking in Russia #66420

Closed
AlexanderPatrakov mannequin opened this issue Aug 18, 2014 · 15 comments
Closed

docs.python.org is prone to political blocking in Russia #66420

AlexanderPatrakov mannequin opened this issue Aug 18, 2014 · 15 comments
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error

Comments

@AlexanderPatrakov
Copy link
Mannequin

AlexanderPatrakov mannequin commented Aug 18, 2014

BPO 22224
Nosy @malemburg, @birkenfeld, @jcea, @tiran, @ezio-melotti, @dstufft

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2014-08-18.13:43:08.033>
created_at = <Date 2014-08-18.10:57:24.457>
labels = ['type-bug', 'docs']
title = 'docs.python.org is prone to political blocking in Russia'
updated_at = <Date 2014-09-12.04:30:45.770>
user = 'https://bugs.python.org/AlexanderPatrakov'

bugs.python.org fields:

activity = <Date 2014-09-12.04:30:45.770>
actor = 'dstufft'
assignee = 'docs@python'
closed = True
closed_date = <Date 2014-08-18.13:43:08.033>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2014-08-18.10:57:24.457>
creator = 'Alexander.Patrakov'
dependencies = []
files = []
hgrepos = []
issue_num = 22224
keywords = []
message_count = 15.0
messages = ['225487', '225488', '225491', '225492', '225495', '225556', '225557', '225559', '225560', '225571', '225575', '225577', '225580', '225596', '226807']
nosy_count = 8.0
nosy_names = ['lemburg', 'georg.brandl', 'jcea', 'christian.heimes', 'ezio.melotti', 'docs@python', 'dstufft', 'Alexander.Patrakov']
pr_nums = []
priority = 'normal'
resolution = 'third party'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue22224'
versions = []

@AlexanderPatrakov
Copy link
Mannequin Author

AlexanderPatrakov mannequin commented Aug 18, 2014

I could not access http://docs.python.org/ from work today. Upon investigation, it appears that the ISP has blocked all sites on the IP address 185.31.17.175, because of the court order unrelated to docs.python.org. Many other ISPs in Russia also don't know any methods of site blocking except by IP address.

Even if the bad site removes the offending materials, the situation is doomed to repeat itself in the future.

To avoid this, please obtain an IPv4 or IPv6 address for docs.python.org that is not shared with any site not controlled by PSF.

@AlexanderPatrakov AlexanderPatrakov mannequin added docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error labels Aug 18, 2014
@tiran
Copy link
Member

tiran commented Aug 18, 2014

Dmitry Chestnykh has pointed me to https://antizapret.info/site.php?id=5903

@dstufft
Copy link
Member

dstufft commented Aug 18, 2014

Just a FYI, I've let Fastly know about this.

@birkenfeld
Copy link
Member

Not much more we can do from here.

@malemburg
Copy link
Member

It looks like the IP address is being used by some viruses/trojans:

https://www.virustotal.com/en/ip-address/185.31.17.175/information/

It may help using e.g. b.global-ssl.fastly.net as CNAME for docs.python.org (e.g. by adding it to the /etc/hosts).

@AlexanderPatrakov
Copy link
Mannequin Author

AlexanderPatrakov mannequin commented Aug 20, 2014

The site is now accessible. But this case is going to repeat itself.

@birkenfeld
Copy link
Member

We know, but this will happen to any sites that have content hosted by a CDN such as Fastly.

In this specific case, you can download the docs or build them yourself for offline usage. Our Mercurial server hg.python.org is (obviously :) not hosted on a CDN, so this scenario can't happen there.

@ezio-melotti
Copy link
Member

See also bpo-21072.

@malemburg
Copy link
Member

On 20.08.2014 09:28, Georg Brandl wrote:

We know, but this will happen to any sites that have content hosted by a CDN such as Fastly.

I think we should have additional fallback domains setup
that go to frontend.python.org and then also get mapped to
the right backend server in order to be able to easily
work around this.

This would also help with some other issues such as Fastly
cache invalidation not working properly (which most likely is due
to the website not providing the right information for this work
rather than Fastly's fault).

@dstufft
Copy link
Member

dstufft commented Aug 20, 2014

I think we should have additional fallback domains setup
that go to frontend.python.org and then also get mapped to
the right backend server in order to be able to easily
work around this.

I'm not sure it's worth it tbh. It's certainly going to be error prone to store
the frontend configuration in two locations (Fastly and front.python.org).
There might be additional things we can do on the Fastly side of things, I know
the have the ability to have dedicated IP addresses in all their DCs (typically
this is in use for providing EV SSL certs and the like). We don't have that
and generally this costs like $1500/month for the SSL cert stuff. I can ping
them about it and see if they have any other ideas.

This would also help with some other issues such as Fastly
cache invalidation not working properly (which most likely is due
to the website not providing the right information for this work
rather than Fastly's fault).

Right, it's basically that there is no cache invalidation as far as I know.
Actually invalidating the cache pretty much always works in my experience.

@dstufft
Copy link
Member

dstufft commented Aug 20, 2014

I've heard back from Fastly!

Specific to this particular incident, they've identified a few places where their own internal procedures fell short and they've rectified them. Specifically:

  1. Their ticketing software saw the notifications from the Russian government/ISP as spam, most likely due to the Cryllic character set. This lead them to miss seeing the reports initially until later. They've resolved this by whitelisting those domains.
  2. They notified the customers and then told the Russian government/ISP that the owner of the content as been notified. Instead they are going to ensure that the content in the future.

In the long term they are evaluating their own policies for how they host customer sites which allow user uploaded content (since those types of sites are the most likely to have these kinds of issues) and determining if it makes sense for them to require dedicated IP addresses for those customers.

For now I think Fastly has sufficiently handled the issue to not require some sort of backup system to need to be put in place. They are going to let me know how they are going to handle it long term and what, if any changes, we can make in our use of their service to help isolate from those kinds of issues.

@birkenfeld
Copy link
Member

Very nice, thanks for the update.

@malemburg
Copy link
Member

On 20.08.2014 19:14, Donald Stufft wrote:

For now I think Fastly has sufficiently handled the issue to not require some sort of backup system to need to be put in place. They are going to let me know how they are going to handle it long term and what, if any changes, we can make in our use of their service to help isolate from those kinds of issues.

Sounds good.

@dstufft
Copy link
Member

dstufft commented Aug 21, 2014

I just heard back from Fastly again. They are going to donate a dedicated IP
address setup on top of the rest of the stuff they are already donating to us.
It's not setup yet and the exact details are not sorted out yet. This should
more or less eliminate this problem (unless of course one of our own services
get banned somewhere).

I believe the sticker cost of this is $1500/month (Normally this is used for
custom SSL certificates, not sure if it'd be cheaper w/o that) on top of the
~$12k/month they already donate to the PSF. So that's incredibly awesome IMO
and a big thanks to them!

@dstufft
Copy link
Member

dstufft commented Sep 12, 2014

Just to close the gap on this, most of the PSF web properties that go through Fastly have been switched over to a set of IP addresses that are dedicated to the PSF. So if someone does an IP ban they are blocking us.

I just made the switch in DNS so it'll take hold as that propagates.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

5 participants