-
Notifications
You must be signed in to change notification settings - Fork 879
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
Enabling CRLSets; Capping the maximum component updates per request to go-updater to 1 #1581
Conversation
23cc4ea
to
773fd94
Compare
URLPattern(URLPattern::SCHEME_HTTPS, "https://crxdownload.brave.com/*"), | ||
|
||
// Will be removed when https://github.com/brave/brave-browser/issues/663 | ||
// is fixed | ||
URLPattern(URLPattern::SCHEME_HTTPS, "https://www.gstatic.com/*"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove this line as brave/brave-browser#663 was fixed?
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
// Copyright (c) 2019 The Brave Authors. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think the MPL header is still needed. at least in the reviewer checklist it says New files have MPL-2.0 license header.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc: @bridiver -
Should we remove the New files have MPL-2.0 license header.
item from the reviewer checklist. Or use this header:
/* Copyright (c) 2019 The Brave Authors. All rights reserved.
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
8e374c2
to
8db7b30
Compare
9ddc7fa
to
72e1cba
Compare
7299ee3
to
e1903f9
Compare
PR builder passed: https://staging.ci.brave.com/job/brave-browser-build-pr/job/PR-3452/ |
a46abea
to
f6faf18
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
Revoked certificates don't show certificate error on all platforms. This PR enables CRLSets, a component managed by Google to show certificate errors for domains with revoked certificates. Since, CRLSets is maintained by Google we will be proxying requests for CRLSets through crlsets[n].brave.com, crxdownload.brave.com (resources) and componentupdater.brave.com (component updates) This change: 1. Enables CRLSets 2. Proxies requests for CRLSet resources through brave proxies 3. Removes braveRedirect from brave_common_static_redirect_network_delegate 4. Extension endpoint is set to dev server. Will be reverted after QA-signoff to update go-updater auditors: @bbondy, @bsclifton, @diracdeltas
2. Adding Local Data Updater to the Vetted list
PR builder successful run: https://staging.ci.brave.com/view/all/job/brave-browser-build-pr/job/crlsets/3/ |
Congratulations on landing this, great to see it closed @jumde ! |
🙌 |
Thank you! @bbondy @bsclifton |
fix brave/brave-browser#518
fix brave/brave-browser#2160
fix brave/brave-browser#3615
Description:
Revoked certificates don't show certificate error on all platforms. This PR enables CRLSets, a component managed by Google to show certificate errors for domains with revoked certificates.
Since, CRLSets is maintained by Google we will be proxying requests for CRLSets through crlsets[n].brave.com, crxdownload.brave.com (resources) and componentupdater.brave.com (component updates)
This PR also caps the maximum component updates per request to
go-updater
to 1, sincego-updater
cannot handle an update request with both Google and Brave components.Submitter Checklist:
npm test brave_unit_tests && npm test brave_browser_tests
) ongit rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
For CRLSets
<Data-Dir>/CertificateRevocation/<CRLSET_ID>
For Component Updates
Update Error
MEI Preload
|Brave Local Data Updater
|Brave Ad Block Updater
|Brave Tor Client Updater (OS)
|CRLSet
|PDF Viewer (PDF.js)
andBrave HTTPS Everywhere Updater
have non-zero version numbers by defaultFor QA
On
macOS
the system uses the system CRLSets, so to verify this is working verify that theCertificateRevocation
directory has the correct CRLSet version.Please verify that
revoked.badssl.com
does not show error on Windows/Linux.For devs:
Please use: brave/brave-browser#3452 to verify the network audit passes. The changes to the go-updater are still in dev. Will be transitioned to prod once QA sign-off is received.
Reviewer Checklist: