Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708654 - Insecure download links
Summary: Insecure download links
Status: RESOLVED FIXED
Alias: None
Product: Websites
Classification: Unclassified
Component: Gentoo Website (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Website Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-07 19:04 UTC by Hanno Böck
Modified: 2020-02-10 14:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bouncer-www.patch (bouncer-www.patch,8.88 KB, patch)
2020-02-07 20:39 UTC, Brian Evans (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hanno Böck gentoo-dev 2020-02-07 19:04:41 UTC
I wanted to make people aware of this:
https://security.googleblog.com/2020/02/protecting-users-from-insecure_6.html

tl;dr Google will soon start blocking insecure downloads from secure webpages, with the goal of eventually deprecating insecure downloads.

This affects us, as e.g. the downloads we provide here
https://gentoo.org/downloads/
would be blocked, as they provide iso/tar files over http - and also of course well, because it's insecure. (Warnings for tar/iso files would start with Chrome 83, blocks with 84, I expect other browser to implement similar measures going forward.)

To avoid conflating this discussion with other things I think we need to separate two things:
a) Downloads that we offer that are meant to be manually downloaded by users, like stage tarballs and iso images.
b) Downloads that happen in an automated process, particularly distfiles, and that have separate security measures.

I think discussing whether distfiles should be https is a separate discussion and also of less urgency. Primarily I think files that we offer for download where we expect that users download them with a browser should be moved to https, and if we don't browsers will start blocking those downloads.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2020-02-07 19:11:27 UTC
(In reply to Hanno Böck from comment #0)
> I wanted to make people aware of this:
> https://security.googleblog.com/2020/02/protecting-users-from-insecure_6.html
> 
> tl;dr Google will soon start blocking insecure downloads from secure
> webpages, with the goal of eventually deprecating insecure downloads.
> 
> This affects us, as e.g. the downloads we provide here
> https://gentoo.org/downloads/
> would be blocked, as they provide iso/tar files over http - and also of
> course well, because it's insecure. (Warnings for tar/iso files would start
> with Chrome 83, blocks with 84, I expect other browser to implement similar
> measures going forward.)
> 
> To avoid conflating this discussion with other things I think we need to
> separate two things:
> a) Downloads that we offer that are meant to be manually downloaded by
> users, like stage tarballs and iso images.
> b) Downloads that happen in an automated process, particularly distfiles,
> and that have separate security measures.
> 
> I think discussing whether distfiles should be https is a separate
> discussion and also of less urgency. Primarily I think files that we offer
> for download where we expect that users download them with a browser should
> be moved to https, and if we don't browsers will start blocking those
> downloads.

The real problem is we use a round-robin DNS for distfiles.gentoo.org not a redirector to the closest mirror.

Because of this DNS, it CANNOT be https due to name matching.  Some other method is required to be in place if any such action is to be done.

Mirror policies may need updated as well as not all have https listed
Comment 2 Brian Evans (RETIRED) gentoo-dev 2020-02-07 19:59:55 UTC
Looks like our bouncer can do it as is.  E.g. https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/20200205T214502Z/install-amd64-minimal-20200205T214502Z.iso
Comment 3 Brian Evans (RETIRED) gentoo-dev 2020-02-07 20:39:00 UTC
Created attachment 612594 [details, diff]
bouncer-www.patch

Proposed patch to use bouncer instead of distfiles for ISO and stage3
Comment 4 Brian Evans (RETIRED) gentoo-dev 2020-02-10 14:11:03 UTC
(In reply to Brian Evans from comment #3)
> Created attachment 612594 [details, diff] [details, diff]
> bouncer-www.patch
> 
> Proposed patch to use bouncer instead of distfiles for ISO and stage3

Patch committed.