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

Issue 2858113003: Enable device-wide EAP-TLS networks (Closed)

Created:
3 years, 7 months ago by pmarko
Modified:
3 years, 7 months ago
Reviewers:
stevenjb, emaxx
CC:
chromium-reviews, alemate+watch_chromium.org, tfarina, achuith+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable device-wide EAP-TLS networks Enable device-wide EAP-TLS networks by loading the system TPM slot on chrome start-up and using it as an additional source of client certificates for CertLoader. CertLoader supports working with only one database (e.g. only system token) or both databases (system and user token). If CertLoader works with both databases, it also supports the special case that the user's database allows access to the system token (e.g. for affiliated users) and prevents duplicate certificates in its output. BUG=655266 Review-Url: https://codereview.chromium.org/2858113003 Cr-Commit-Position: refs/heads/master@{#471280} Committed: https://chromium.googlesource.com/chromium/src/+/2f149a05d31ad319ef6b620911b74e390dbee354

Patch Set 1 #

Patch Set 2 : Moved onc validator changes to other CL. #

Patch Set 3 : Rebase. #

Patch Set 4 : initial_load only true on initial load, added tests, fixed comments. #

Total comments: 6

Patch Set 5 : Addressed comments (and accidental rebase). #

Total comments: 44

Patch Set 6 : Addressed comments. #

Patch Set 7 : Fixed minor typo. #

Total comments: 8

Patch Set 8 : Addressed comments #

Patch Set 9 : std::unique_ptr<net::CertificateList> -> net::CertificateList where possible. #

Total comments: 8

Patch Set 10 : Addressed comments and fixed weak_ptr access from wrong thread. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+548 lines, -152 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 6 chunks +91 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/options/cert_library.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chromeos/cert_loader.h View 1 2 3 4 5 6 7 8 5 chunks +56 lines, -36 lines 0 comments Download
M chromeos/cert_loader.cc View 1 2 3 4 5 6 7 8 9 5 chunks +186 lines, -82 lines 0 comments Download
M chromeos/cert_loader_unittest.cc View 1 2 3 4 5 6 chunks +200 lines, -24 lines 0 comments Download
M chromeos/network/auto_connect_handler_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/client_cert_resolver.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/client_cert_resolver_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/network_cert_migrator.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chromeos/network/network_cert_migrator_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/network_connection_handler_impl.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/network_connection_handler_impl_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 34 (15 generated)
pmarko
Hi Maksim and Steven, please review this CL. This is a follow-up to https://codereview.chromium.org/2828713002/ , ...
3 years, 7 months ago (2017-05-09 10:57:59 UTC) #4
stevenjb
Did you mean to include maksim on the review? Unfortunately I'm not as up to ...
3 years, 7 months ago (2017-05-09 17:04:02 UTC) #5
pmarko
Thank you for your review, and indeed I wanted to include Maksim! Sorry for the ...
3 years, 7 months ago (2017-05-10 11:48:01 UTC) #8
emaxx
I'm fine with the chosen approach in general, but I believe the merging logic needs ...
3 years, 7 months ago (2017-05-11 02:57:46 UTC) #9
pmarko
Thank you very much!! I've fixed everything. I was not sure about getting rid of ...
3 years, 7 months ago (2017-05-11 11:49:18 UTC) #10
emaxx
https://codereview.chromium.org/2858113003/diff/100001/chromeos/cert_loader.cc File chromeos/cert_loader.cc (right): https://codereview.chromium.org/2858113003/diff/100001/chromeos/cert_loader.cc#newcode127 chromeos/cert_loader.cc:127: std::unique_ptr<net::CertificateList> cert_list_; On 2017/05/11 11:49:18, pmarko wrote: > On ...
3 years, 7 months ago (2017-05-11 14:36:53 UTC) #11
pmarko
I've addressed the comments and switched from std::uniqute_ptr<net::CertificateList> to net::CertificateList. https://codereview.chromium.org/2858113003/diff/140001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/2858113003/diff/140001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode425 ...
3 years, 7 months ago (2017-05-11 17:24:57 UTC) #12
emaxx
LGTM. And thanks for doing the cleanup of unique_ptr<CertificateList>.
3 years, 7 months ago (2017-05-11 17:58:39 UTC) #13
stevenjb
lgtm https://codereview.chromium.org/2858113003/diff/180001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/2858113003/diff/180001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode395 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:395: base::Bind(&SystemTokenCertDBInitializer::GotSystemSlotOnIOThread, nit: BindRepeating? https://codereview.chromium.org/2858113003/diff/180001/chromeos/cert_loader.cc File chromeos/cert_loader.cc (right): https://codereview.chromium.org/2858113003/diff/180001/chromeos/cert_loader.cc#newcode225 ...
3 years, 7 months ago (2017-05-11 18:25:35 UTC) #14
emaxx
(sorry, just ran across two more nits) https://codereview.chromium.org/2858113003/diff/180001/chromeos/cert_loader.cc File chromeos/cert_loader.cc (right): https://codereview.chromium.org/2858113003/diff/180001/chromeos/cert_loader.cc#newcode320 chromeos/cert_loader.cc:320: std::move(user_cert_cache_->cert_list()), nit: ...
3 years, 7 months ago (2017-05-11 20:24:53 UTC) #15
pmarko
I've addressed the comments and fixed access to weak_ptr_(factory) from the wrong thread in chrome_browser_main_chromeos.cc. ...
3 years, 7 months ago (2017-05-11 21:01:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2858113003/200001
3 years, 7 months ago (2017-05-12 07:23:43 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/382906)
3 years, 7 months ago (2017-05-12 08:35:03 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2858113003/200001
3 years, 7 months ago (2017-05-12 08:38:29 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/382941)
3 years, 7 months ago (2017-05-12 09:54:41 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2858113003/200001
3 years, 7 months ago (2017-05-12 10:04:49 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/383040)
3 years, 7 months ago (2017-05-12 11:09:56 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2858113003/200001
3 years, 7 months ago (2017-05-12 11:57:02 UTC) #31
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 12:22:04 UTC) #34
Message was sent while issue was closed.
Committed patchset #10 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/2f149a05d31ad319ef6b620911b7...

Powered by Google App Engine
This is Rietveld 408576698