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

Issue 424523002: Enable system NSS key slot. (Closed)

Created:
6 years, 5 months ago by pneubeck (no reviews)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Enable system NSS key slot. This only affects users of domains that the device is registered to for policy. All other users are unaffected (EnableNSSSystemKeySlotForResourceContext is only called for USER_AFFILIATION_MANAGED) For the affected users, this enables and uses the slot for - client authentication for TSL (see ClientCertStoreChromeOS) - client authentication for 802.1x networks - listing/removing certificates on the settings page (see CertificateManager) In a follow up, also the enterprise.platformKeys API will be updated. Depends on: https://codereview.chromium.org/426983002/ https://codereview.chromium.org/428933002/ BUG=210525 R=mattm@chromium.org, rsleevi@chromium.org, willchan@chromium.org, xiyuan@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287175

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Addressed comments. #

Patch Set 3 : Removed skip_tpm_initialization (inlined 'true'). #

Patch Set 4 : Splitted smaller changes into separate CLs. #

Patch Set 5 : Move nss_cert_database_chromeos_unittest.cc changes to another CL. #

Total comments: 12

Patch Set 6 : Minor changes. #

Total comments: 9

Patch Set 7 : Addressed Matt's comment: trigger callback list, add a comment. #

Patch Set 8 : Fix compilation of profile_io_data on !OS_CHROMEOS. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+415 lines, -87 lines) Patch
M chrome/browser/chromeos/net/cert_verify_proc_chromeos.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/net/nss_context.h View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/net/nss_context_chromeos.cc View 5 chunks +53 lines, -12 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 6 chunks +22 lines, -0 lines 0 comments Download
M crypto/nss_util.cc View 1 2 3 4 5 6 3 chunks +19 lines, -10 lines 0 comments Download
M crypto/nss_util_internal.h View 1 2 3 4 5 1 chunk +4 lines, -5 lines 0 comments Download
M crypto/scoped_test_nss_db.h View 1 chunk +2 lines, -2 lines 0 comments Download
M crypto/scoped_test_system_nss_key_slot.h View 1 2 2 chunks +9 lines, -5 lines 0 comments Download
M crypto/scoped_test_system_nss_key_slot.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M net/cert/nss_cert_database.h View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M net/cert/nss_cert_database.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M net/cert/nss_cert_database_chromeos.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M net/cert/nss_cert_database_chromeos.cc View 2 chunks +17 lines, -1 line 0 comments Download
M net/cert/nss_profile_filter_chromeos.h View 2 chunks +3 lines, -1 line 0 comments Download
M net/cert/nss_profile_filter_chromeos.cc View 4 chunks +21 lines, -5 lines 0 comments Download
M net/cert/nss_profile_filter_chromeos_unittest.cc View 8 chunks +30 lines, -3 lines 0 comments Download
M net/ssl/client_cert_store_chromeos.h View 1 2 chunks +10 lines, -6 lines 0 comments Download
M net/ssl/client_cert_store_chromeos.cc View 1 3 chunks +56 lines, -14 lines 0 comments Download
M net/ssl/client_cert_store_chromeos_unittest.cc View 1 2 12 chunks +127 lines, -22 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
pneubeck (no reviews)
Finally the CL that enables the system slot for parts of ChromeOS. This is still ...
6 years, 4 months ago (2014-07-28 19:52:33 UTC) #1
pneubeck (no reviews)
+Will: please take a look at the profile_io_data change. Note that I'm not happy with ...
6 years, 4 months ago (2014-07-28 19:55:38 UTC) #2
Ryan Sleevi
https://codereview.chromium.org/424523002/diff/40001/crypto/nss_util_internal.h File crypto/nss_util_internal.h (right): https://codereview.chromium.org/424523002/diff/40001/crypto/nss_util_internal.h#newcode63 crypto/nss_util_internal.h:63: // module, then this test slot will be used ...
6 years, 4 months ago (2014-07-29 00:23:17 UTC) #3
pneubeck (no reviews)
https://codereview.chromium.org/424523002/diff/40001/crypto/nss_util_internal.h File crypto/nss_util_internal.h (right): https://codereview.chromium.org/424523002/diff/40001/crypto/nss_util_internal.h#newcode63 crypto/nss_util_internal.h:63: // module, then this test slot will be used ...
6 years, 4 months ago (2014-07-29 16:00:16 UTC) #4
willchan no longer on Chromium
chrome/browser/profiles lgtm
6 years, 4 months ago (2014-07-29 16:02:37 UTC) #5
pneubeck (no reviews)
A unit tests for NSSCertDatabaseChromeOS will be added with this CL: https://codereview.chromium.org/429633004/
6 years, 4 months ago (2014-07-29 18:09:13 UTC) #6
Ryan Sleevi
I think it's mostly good, and a few comments regarding layering concerns/assumptions that should be ...
6 years, 4 months ago (2014-07-29 23:53:15 UTC) #7
pneubeck (no reviews)
https://codereview.chromium.org/424523002/diff/180001/crypto/nss_util_internal.h File crypto/nss_util_internal.h (right): https://codereview.chromium.org/424523002/diff/180001/crypto/nss_util_internal.h#newcode59 crypto/nss_util_internal.h:59: // does not have to be called if the ...
6 years, 4 months ago (2014-07-30 06:27:40 UTC) #8
Ryan Sleevi
https://codereview.chromium.org/424523002/diff/180001/net/cert/nss_cert_database.h File net/cert/nss_cert_database.h (right): https://codereview.chromium.org/424523002/diff/180001/net/cert/nss_cert_database.h#newcode133 net/cert/nss_cert_database.h:133: #if defined(OS_CHROMEOS) On 2014/07/30 06:27:39, pneubeck wrote: > On ...
6 years, 4 months ago (2014-07-30 06:45:30 UTC) #9
pneubeck (no reviews)
https://codereview.chromium.org/424523002/diff/180001/net/cert/nss_cert_database_chromeos.h File net/cert/nss_cert_database_chromeos.h (right): https://codereview.chromium.org/424523002/diff/180001/net/cert/nss_cert_database_chromeos.h#newcode19 net/cert/nss_cert_database_chromeos.h:19: // |public_slot| is the NSS software slot for the ...
6 years, 4 months ago (2014-07-30 13:54:11 UTC) #10
mattm
https://codereview.chromium.org/424523002/diff/200001/crypto/nss_util.cc File crypto/nss_util.cc (right): https://codereview.chromium.org/424523002/diff/200001/crypto/nss_util.cc#newcode584 crypto/nss_util.cc:584: tpm_slot_.reset(PK11_ReferenceSlot(test_system_slot_.get())); need to call tpm_ready_callback_list_ callbacks too? https://codereview.chromium.org/424523002/diff/200001/net/cert/nss_cert_database_chromeos.cc File ...
6 years, 4 months ago (2014-07-30 22:57:34 UTC) #11
pneubeck (no reviews)
https://codereview.chromium.org/424523002/diff/200001/crypto/nss_util.cc File crypto/nss_util.cc (right): https://codereview.chromium.org/424523002/diff/200001/crypto/nss_util.cc#newcode583 crypto/nss_util.cc:583: EnableTPMTokenForNSS(); This one should actually not be necessary and ...
6 years, 4 months ago (2014-07-31 06:31:25 UTC) #12
mattm
https://codereview.chromium.org/424523002/diff/200001/crypto/nss_util.cc File crypto/nss_util.cc (right): https://codereview.chromium.org/424523002/diff/200001/crypto/nss_util.cc#newcode584 crypto/nss_util.cc:584: tpm_slot_.reset(PK11_ReferenceSlot(test_system_slot_.get())); On 2014/07/31 06:31:25, pneubeck wrote: > On 2014/07/30 ...
6 years, 4 months ago (2014-07-31 10:29:30 UTC) #13
pneubeck (no reviews)
https://codereview.chromium.org/424523002/diff/200001/crypto/nss_util.cc File crypto/nss_util.cc (right): https://codereview.chromium.org/424523002/diff/200001/crypto/nss_util.cc#newcode584 crypto/nss_util.cc:584: tpm_slot_.reset(PK11_ReferenceSlot(test_system_slot_.get())); On 2014/07/31 10:29:30, mattm wrote: > On 2014/07/31 ...
6 years, 4 months ago (2014-07-31 10:48:54 UTC) #14
mattm
lgtm, but maybe add some TODOs or comments about the current limitations.
6 years, 4 months ago (2014-07-31 20:27:43 UTC) #15
pneubeck (no reviews)
https://codereview.chromium.org/424523002/diff/200001/crypto/nss_util.cc File crypto/nss_util.cc (right): https://codereview.chromium.org/424523002/diff/200001/crypto/nss_util.cc#newcode584 crypto/nss_util.cc:584: tpm_slot_.reset(PK11_ReferenceSlot(test_system_slot_.get())); Thinking about this again, I see now what ...
6 years, 4 months ago (2014-08-01 10:02:28 UTC) #16
pneubeck (no reviews)
@Jochen: Can you owner lgtm chrome/browser/chromeos/net/cert_verify_proc_chromeos.cc ? Matt&Ryan are already the best reviewer of this ...
6 years, 4 months ago (2014-08-01 10:06:51 UTC) #17
pneubeck (no reviews)
@Ryan, ping
6 years, 4 months ago (2014-08-01 10:07:15 UTC) #18
Ryan Sleevi
lgtm
6 years, 4 months ago (2014-08-01 17:31:19 UTC) #19
pneubeck (no reviews)
Conditionally initializing the use_system_key_slot members in profile_io_data.cc as discussed with Will per chat. I'm working ...
6 years, 4 months ago (2014-08-01 23:36:47 UTC) #20
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 4 months ago (2014-08-01 23:36:56 UTC) #21
pneubeck (no reviews)
The CQ bit was unchecked by pneubeck@chromium.org
6 years, 4 months ago (2014-08-01 23:36:59 UTC) #22
pneubeck (no reviews)
+David for OWNER review of chrome/browser/chromeos/net/cert_verify_proc_chromeos.cc
6 years, 4 months ago (2014-08-02 00:08:39 UTC) #23
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 4 months ago (2014-08-02 00:24:35 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/424523002/240001
6 years, 4 months ago (2014-08-02 00:27:15 UTC) #25
xiyuan
lgtm
6 years, 4 months ago (2014-08-02 00:28:00 UTC) #26
pneubeck (no reviews)
6 years, 4 months ago (2014-08-02 07:37:35 UTC) #27
Message was sent while issue was closed.
Committed patchset #8 manually as 287175 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698