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

Issue 2261763002: Device enterprise registration with a certificate. (Closed)

Created:
4 years, 4 months ago by The one and only Dr. Crash
Modified:
4 years, 4 months ago
CC:
chromium-reviews, sdefresne+watchlist_chromium.org, droger+watchlist_chromium.org, blundell+watchlist_chromium.org, dzhioev+watch_chromium.org, achuith+watch_chromium.org, dkrahn+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, dkalin1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DM server client flow to register a device with an enrollment (a.k.a. registration) certificate. See go/zero-touch-chrome for design. (The author hasn't updated the name of the protos, but the document explains the signed request.) BUG=624187 TEST=unit tests Committed: https://crrev.com/26a5d631d5bc4f18e604d9ea9dc12c2dc5990437 Cr-Commit-Position: refs/heads/master@{#414236}

Patch Set 1 #

Patch Set 2 : Initial registration with a certificate. #

Patch Set 3 : Added unit tests. #

Patch Set 4 : Tiny refactoring. #

Patch Set 5 : Err, don't crash. #

Patch Set 6 : Updated proto doc. #

Patch Set 7 : Do not call directly into Chrome OS. Add a field to SignedData to account for extra data like nonce… #

Total comments: 15

Patch Set 8 : Addressed review feedback. #

Total comments: 4

Patch Set 9 : Addressed more feedback. #

Total comments: 34

Patch Set 10 : Addressed achuithb's feedback. #

Patch Set 11 : Typo in URLs in TODO. #

Patch Set 12 : Use weak ptrs. #

Patch Set 13 : Use the new attestation enrollment flavors. #

Total comments: 4

Patch Set 14 : Initialize pointers to nullptr. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+390 lines, -66 lines) Patch
M chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/attestation/attestation_flow.h View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -0 lines 0 comments Download
M chromeos/attestation/attestation_flow.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -9 lines 0 comments Download
M components/policy/core/browser/cloud/message_util.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +50 lines, -10 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client.cc View 1 2 3 4 5 6 7 8 9 10 11 13 chunks +91 lines, -29 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +106 lines, -3 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_constants.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_constants.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/device_management_service.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/device_management_service.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/device_management_service_unittest.cc View 1 2 4 chunks +64 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/enterprise_metrics.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/mock_cloud_policy_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M components/policy/core/common/cloud/user_cloud_policy_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M components/policy/core/common/remote_commands/remote_commands_service_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M components/policy/proto/device_management_backend.proto View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +21 lines, -10 lines 0 comments Download
M components/policy_strings.grdp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 69 (42 generated)
The one and only Dr. Crash
4 years, 4 months ago (2016-08-19 21:04:26 UTC) #3
The one and only Dr. Crash
4 years, 4 months ago (2016-08-20 04:35:16 UTC) #6
The one and only Dr. Crash
4 years, 4 months ago (2016-08-20 05:34:59 UTC) #7
The one and only Dr. Crash
4 years, 4 months ago (2016-08-20 16:06:18 UTC) #16
The one and only Dr. Crash
+dkrahn for AttestationFlow.
4 years, 4 months ago (2016-08-22 00:34:23 UTC) #27
pastarmovj
mostly nits. https://codereview.chromium.org/2261763002/diff/120001/chromeos/attestation/attestation_flow.h File chromeos/attestation/attestation_flow.h (right): https://codereview.chromium.org/2261763002/diff/120001/chromeos/attestation/attestation_flow.h#newcode60 chromeos/attestation/attestation_flow.h:60: static AttestationKeyType GetKeyTypeForProfile( If those are becoming ...
4 years, 4 months ago (2016-08-22 15:09:43 UTC) #30
The one and only Dr. Crash
https://codereview.chromium.org/2261763002/diff/120001/chromeos/attestation/attestation_flow.h File chromeos/attestation/attestation_flow.h (right): https://codereview.chromium.org/2261763002/diff/120001/chromeos/attestation/attestation_flow.h#newcode60 chromeos/attestation/attestation_flow.h:60: static AttestationKeyType GetKeyTypeForProfile( On 2016/08/22 15:09:43, pastarmovj wrote: > ...
4 years, 4 months ago (2016-08-22 16:00:02 UTC) #31
The one and only Dr. Crash
4 years, 4 months ago (2016-08-22 16:00:04 UTC) #32
pastarmovj
https://codereview.chromium.org/2261763002/diff/120001/components/policy/core/common/cloud/cloud_policy_client.cc File components/policy/core/common/cloud/cloud_policy_client.cc (right): https://codereview.chromium.org/2261763002/diff/120001/components/policy/core/common/cloud/cloud_policy_client.cc#newcode169 components/policy/core/common/cloud/cloud_policy_client.cc:169: if (!signing_service_) { On 2016/08/22 16:00:01, The one and ...
4 years, 4 months ago (2016-08-23 08:46:02 UTC) #33
pastarmovj
lgtm for policy files.
4 years, 4 months ago (2016-08-23 15:03:43 UTC) #34
The one and only Dr. Crash
https://codereview.chromium.org/2261763002/diff/140001/chromeos/attestation/attestation_flow.h File chromeos/attestation/attestation_flow.h (right): https://codereview.chromium.org/2261763002/diff/140001/chromeos/attestation/attestation_flow.h#newcode63 chromeos/attestation/attestation_flow.h:63: // certificate_profile - Specifies what kind of certificate the ...
4 years, 4 months ago (2016-08-23 15:05:10 UTC) #35
The one and only Dr. Crash
+dkrahn, could you have a look at attestation_flow.h and attestation_flow.cc? (Exposed the GetKey* methods since ...
4 years, 4 months ago (2016-08-23 15:16:51 UTC) #36
achuithb
https://codereview.chromium.org/2261763002/diff/160001/components/policy/core/common/cloud/cloud_policy_client.cc File components/policy/core/common/cloud/cloud_policy_client.cc (right): https://codereview.chromium.org/2261763002/diff/160001/components/policy/core/common/cloud/cloud_policy_client.cc#newcode61 components/policy/core/common/cloud/cloud_policy_client.cc:61: device_mode_(DEVICE_MODE_NOT_SET), Move this to header https://codereview.chromium.org/2261763002/diff/160001/components/policy/core/common/cloud/cloud_policy_client.cc#newcode73 components/policy/core/common/cloud/cloud_policy_client.cc:73: CloudPolicyClient::CloudPolicyClient( Get ...
4 years, 4 months ago (2016-08-23 18:40:28 UTC) #37
The one and only Dr. Crash
https://codereview.chromium.org/2261763002/diff/160001/components/policy/core/common/cloud/cloud_policy_client.cc File components/policy/core/common/cloud/cloud_policy_client.cc (right): https://codereview.chromium.org/2261763002/diff/160001/components/policy/core/common/cloud/cloud_policy_client.cc#newcode61 components/policy/core/common/cloud/cloud_policy_client.cc:61: device_mode_(DEVICE_MODE_NOT_SET), On 2016/08/23 18:40:28, achuithb wrote: > Move this ...
4 years, 4 months ago (2016-08-24 05:53:45 UTC) #39
achuithb
https://codereview.chromium.org/2261763002/diff/160001/components/policy/core/common/cloud/cloud_policy_client.cc File components/policy/core/common/cloud/cloud_policy_client.cc (right): https://codereview.chromium.org/2261763002/diff/160001/components/policy/core/common/cloud/cloud_policy_client.cc#newcode193 components/policy/core/common/cloud/cloud_policy_client.cc:193: base::Unretained(this))); On 2016/08/24 05:53:44, The one and only Dr. ...
4 years, 4 months ago (2016-08-24 06:05:36 UTC) #43
The one and only Dr. Crash
https://codereview.chromium.org/2261763002/diff/160001/components/policy/core/common/cloud/cloud_policy_client.cc File components/policy/core/common/cloud/cloud_policy_client.cc (right): https://codereview.chromium.org/2261763002/diff/160001/components/policy/core/common/cloud/cloud_policy_client.cc#newcode193 components/policy/core/common/cloud/cloud_policy_client.cc:193: base::Unretained(this))); On 2016/08/24 06:05:36, achuithb wrote: > On 2016/08/24 ...
4 years, 4 months ago (2016-08-24 08:19:16 UTC) #44
The one and only Dr. Crash
4 years, 4 months ago (2016-08-24 18:30:09 UTC) #53
Darren Krahn
On 2016/08/24 18:30:09, The one and only Dr. Crash wrote: lgm for chromeos/attestation
4 years, 4 months ago (2016-08-24 19:48:14 UTC) #54
Darren Krahn
On 2016/08/24 19:48:14, Darren Krahn wrote: > On 2016/08/24 18:30:09, The one and only Dr. ...
4 years, 4 months ago (2016-08-24 19:48:41 UTC) #55
achuithb
lgtm https://codereview.chromium.org/2261763002/diff/240001/components/policy/core/common/cloud/cloud_policy_client.h File components/policy/core/common/cloud/cloud_policy_client.h (right): https://codereview.chromium.org/2261763002/diff/240001/components/policy/core/common/cloud/cloud_policy_client.h#newcode409 components/policy/core/common/cloud/cloud_policy_client.h:409: DeviceManagementService* service_; = nullptr https://codereview.chromium.org/2261763002/diff/240001/components/policy/core/common/cloud/cloud_policy_client.h#newcode412 components/policy/core/common/cloud/cloud_policy_client.h:412: SigningService* signing_service_; ...
4 years, 4 months ago (2016-08-24 21:46:18 UTC) #56
The one and only Dr. Crash
https://codereview.chromium.org/2261763002/diff/240001/components/policy/core/common/cloud/cloud_policy_client.h File components/policy/core/common/cloud/cloud_policy_client.h (right): https://codereview.chromium.org/2261763002/diff/240001/components/policy/core/common/cloud/cloud_policy_client.h#newcode409 components/policy/core/common/cloud/cloud_policy_client.h:409: DeviceManagementService* service_; On 2016/08/24 21:46:18, achuithb wrote: > = ...
4 years, 4 months ago (2016-08-24 22:17:52 UTC) #57
The one and only Dr. Crash
4 years, 4 months ago (2016-08-24 22:17:54 UTC) #58
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/2261763002/260001
4 years, 4 months ago (2016-08-24 22:19:35 UTC) #61
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/268101)
4 years, 4 months ago (2016-08-24 23:30:48 UTC) #63
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/2261763002/260001
4 years, 4 months ago (2016-08-24 23:35:32 UTC) #65
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 4 months ago (2016-08-25 00:58:46 UTC) #67
commit-bot: I haz the power
4 years, 4 months ago (2016-08-25 01:01:30 UTC) #69
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/26a5d631d5bc4f18e604d9ea9dc12c2dc5990437
Cr-Commit-Position: refs/heads/master@{#414236}

Powered by Google App Engine
This is Rietveld 408576698