Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Issue 8762007: Implement a whitelist for code-signing certificates. (Closed)

Created:
9 years ago by Brian Ryner
Modified:
9 years ago
Reviewers:
noelutz, mattm
CC:
chromium-reviews, Paweł Hajdan Jr., Ryan Sleevi
Visibility:
Public.

Description

Implement a whitelist for code-signing certificates. With this change, only downloads that match a whitelisted URL or certificate will be exempt from the download protection pingback. The certificate whitelist format allows matching on the certificate issuer along with the CN, O, or OU attributes of the certificate. BUG=102540 TEST=DownloadProtectionServiceTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112604

Patch Set 1 #

Patch Set 2 : Fix unittest #

Total comments: 8

Patch Set 3 : Address review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -6 lines) Patch
M chrome/browser/safe_browsing/download_protection_service.h View 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/download_protection_service.cc View 1 2 5 chunks +128 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/download_protection_service_unittest.cc View 1 9 chunks +158 lines, -2 lines 1 comment Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Brian Ryner
9 years ago (2011-12-01 06:34:33 UTC) #1
noelutz
lgtm really nicely done! thanks, noé. http://codereview.chromium.org/8762007/diff/2001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/8762007/diff/2001/chrome/browser/safe_browsing/download_protection_service.cc#newcode629 chrome/browser/safe_browsing/download_protection_service.cc:629: if (chain.element_size() < ...
9 years ago (2011-12-01 06:46:13 UTC) #2
mattm
http://codereview.chromium.org/8762007/diff/2001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/8762007/diff/2001/chrome/browser/safe_browsing/download_protection_service.cc#newcode781 chrome/browser/safe_browsing/download_protection_service.cc:781: // [/CN=common_name][/O=organization][/OU=organizational unit] Was a bit worried until I ...
9 years ago (2011-12-01 22:27:19 UTC) #3
Brian Ryner
Please take another look. http://codereview.chromium.org/8762007/diff/2001/chrome/browser/safe_browsing/download_protection_service.cc File chrome/browser/safe_browsing/download_protection_service.cc (right): http://codereview.chromium.org/8762007/diff/2001/chrome/browser/safe_browsing/download_protection_service.cc#newcode629 chrome/browser/safe_browsing/download_protection_service.cc:629: if (chain.element_size() < 2) { ...
9 years ago (2011-12-01 22:35:12 UTC) #4
mattm
lgtm
9 years ago (2011-12-01 22:45:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bryner@chromium.org/8762007/6001
9 years ago (2011-12-01 22:49:29 UTC) #6
commit-bot: I haz the power
Change committed as 112604
9 years ago (2011-12-02 02:23:42 UTC) #7
Ryan Sleevi
http://codereview.chromium.org/8762007/diff/6001/chrome/browser/safe_browsing/download_protection_service_unittest.cc File chrome/browser/safe_browsing/download_protection_service_unittest.cc (right): http://codereview.chromium.org/8762007/diff/6001/chrome/browser/safe_browsing/download_protection_service_unittest.cc#newcode744 chrome/browser/safe_browsing/download_protection_service_unittest.cc:744: crypto::RSAPrivateKey::Create(1024)); Just a drive-by: Over on the net/ side, ...
9 years ago (2011-12-02 03:03:05 UTC) #8
Brian Ryner
9 years ago (2011-12-02 03:30:53 UTC) #9
Thanks Ryan.  I'll send out a follow-up that switches this to use pre-generated
certificates.

On 2011/12/02 03:03:05, Ryan Sleevi wrote:
>
http://codereview.chromium.org/8762007/diff/6001/chrome/browser/safe_browsing...
> File chrome/browser/safe_browsing/download_protection_service_unittest.cc
> (right):
> 
>
http://codereview.chromium.org/8762007/diff/6001/chrome/browser/safe_browsing...
> chrome/browser/safe_browsing/download_protection_service_unittest.cc:744:
> crypto::RSAPrivateKey::Create(1024));
> Just a drive-by: Over on the net/ side, we've found this to be expensive when
> running under Valgrind.
> 
> It seems to me that just using some well-known certificates from
testdata_path_
> would be a better/less expensive way.
> 
> Under Valgrind, it's not at all uncommon to see timeouts > 60 seconds for
these
> tests - even at relatively small keysizes.

Powered by Google App Engine
This is Rietveld 408576698