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

Issue 13532005: Added a PolicyCertVerifier that uses the trust anchors from the ONC policies. (Closed)

Created:
7 years, 8 months ago by Joao da Silva
Modified:
7 years, 8 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, gspencer+watch_chromium.org, gauravsh+watch_chromium.org, sail+watch_chromium.org, eroman, mmenke, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Added a PolicyCertVerifier that uses the trust anchors from the ONC policies. The MultiThreadedCertVerifier can optionally use a CertTrustAnchorProvider to get a list of additional certificates to trust, without importing them into the NSS database. This CL wraps the MultiThreadedCertVerifier with a custom verifier that includes a trust anchor provider. The trust anchor provider returns all the certificates from the user ONC policy that have the Web trust flag. The PolicyCertVerifier also writes a preference in the Profile once any such certificate is used. This feature is currently behind a flag, until a warning UI is implemented. The warning should be displayed if UsedPolicyCertificates() is true for the given profile. TBR=pneubeck@chromium.org BUG=216495 NOTE: this is a reland of https://codereview.chromium.org/13035003, with tests fixed. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192324

Patch Set 1 #

Patch Set 2 : skip tests when NSS version is too old #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+832 lines, -119 lines) Patch
M chrome/browser/chromeos/cros/mock_network_library.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/cros/network_library.h View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_base.h View 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_impl_base.cc View 2 chunks +10 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library_unittest.cc View 6 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater.h View 3 chunks +22 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater.cc View 5 chunks +64 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc View 7 chunks +71 lines, -14 lines 0 comments Download
A chrome/browser/chromeos/policy/policy_cert_verifier.h View 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/policy_cert_verifier.cc View 1 1 chunk +97 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/policy_cert_verifier_browsertest.cc View 1 1 chunk +297 lines, -0 lines 2 comments Download
M chrome/browser/policy/browser_policy_connector.h View 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 7 chunks +27 lines, -3 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 5 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M chromeos/network/onc/onc_certificate_importer.h View 2 chunks +18 lines, -11 lines 0 comments Download
M chromeos/network/onc/onc_certificate_importer.cc View 8 chunks +52 lines, -42 lines 0 comments Download
M chromeos/network/onc/onc_certificate_importer_unittest.cc View 4 chunks +34 lines, -5 lines 0 comments Download
A + chromeos/test/data/network/certificate-authority.onc View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Joao da Silva
This is the same CL as https://codereview.chromium.org/13035003, which was reverted because the tests fail on ...
7 years, 8 months ago (2013-04-04 10:35:35 UTC) #1
pneubeck (no reviews)
lgtm https://codereview.chromium.org/13532005/diff/3001/chrome/browser/chromeos/policy/policy_cert_verifier_browsertest.cc File chrome/browser/chromeos/policy/policy_cert_verifier_browsertest.cc (right): https://codereview.chromium.org/13532005/diff/3001/chrome/browser/chromeos/policy/policy_cert_verifier_browsertest.cc#newcode75 chrome/browser/chromeos/policy/policy_cert_verifier_browsertest.cc:75: scoped_refptr<net::CertVerifyProc> proc = nit: you might drop the ...
7 years, 8 months ago (2013-04-04 11:22:22 UTC) #2
Joao da Silva
https://codereview.chromium.org/13532005/diff/3001/chrome/browser/chromeos/policy/policy_cert_verifier_browsertest.cc File chrome/browser/chromeos/policy/policy_cert_verifier_browsertest.cc (right): https://codereview.chromium.org/13532005/diff/3001/chrome/browser/chromeos/policy/policy_cert_verifier_browsertest.cc#newcode75 chrome/browser/chromeos/policy/policy_cert_verifier_browsertest.cc:75: scoped_refptr<net::CertVerifyProc> proc = On 2013/04/04 11:22:22, pneubeck wrote: > ...
7 years, 8 months ago (2013-04-04 11:25:35 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/13532005/3001
7 years, 8 months ago (2013-04-04 12:08:16 UTC) #4
commit-bot: I haz the power
7 years, 8 months ago (2013-04-04 14:12:17 UTC) #5
Message was sent while issue was closed.
Change committed as 192324

Powered by Google App Engine
This is Rietveld 408576698