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

Issue 2558543003: Fix handling of device cloud signing policy key rotation (Closed)

Created:
4 years ago by emaxx
Modified:
3 years, 9 months ago
CC:
chromium-reviews, hashimoto+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, Mattias Nissler (ping if slow)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix handling of device cloud signing policy key rotation This CL fixes issues with handling of the signing key rotation for the device policy. There were some issues with not loading the updated owner key right after the new policy is stored. Even though the key would eventually be loaded thanks to the OwnerKeySet signal emitted by the session manager, there may be some window during which the old key is still used on the Chrome side. Also the CL adds a browser end-to-end test for browser policy key rotation (using a local policy test server). Some fake testing-only stubs were also fixed in order to support changing the signing keys (similar to how this is handled by the session manager). BUG=671659, 668716 TEST=new browser test Review-Url: https://codereview.chromium.org/2558543003 Cr-Commit-Position: refs/heads/master@{#454506} Committed: https://chromium.googlesource.com/chromium/src/+/6581fa97d9ac35a9c541856a0acc04c8be2cfc20

Patch Set 1 #

Patch Set 2 : Fix DEPS issue #

Patch Set 3 : Fire OwnerKeySet from FakeSessionManagerClient #

Total comments: 1

Patch Set 4 : Rebased #

Total comments: 3

Patch Set 5 : Replace std::unique_ptr<int> with int #

Total comments: 2

Patch Set 6 : Rebase #

Total comments: 2

Patch Set 7 : Add comment for the fake impl #

Total comments: 2

Patch Set 8 : Comment update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -20 lines) Patch
M chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc View 1 2 3 4 5 chunks +179 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/settings/session_manager_operation.cc View 5 chunks +12 lines, -12 lines 0 comments Download
M chromeos/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/fake_session_manager_client.cc View 1 2 3 4 5 6 7 2 chunks +49 lines, -3 lines 0 comments Download

Messages

Total messages: 56 (34 generated)
emaxx
Drew, PTAL.
4 years ago (2016-12-06 21:58:38 UTC) #8
emaxx
Mattias, CC'ing you in case you would have interest to take a look.
4 years ago (2016-12-07 16:31:29 UTC) #14
Mattias Nissler (ping if slow)
Haven't done a thorough review, but looks great at a high level. Thanks for fixing ...
4 years ago (2016-12-08 12:32:21 UTC) #18
emaxx
3 years, 10 months ago (2017-02-13 18:46:53 UTC) #24
emaxx
Drew, ping. This is not high-priority as this shouldn't hit any real life usages (unless ...
3 years, 10 months ago (2017-02-22 16:59:30 UTC) #25
Andrew T Wilson (Slow)
LGTM https://codereview.chromium.org/2558543003/diff/60001/chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc File chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc (right): https://codereview.chromium.org/2558543003/diff/60001/chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc#newcode224 chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc:224: std::unique_ptr<int> awaited_policy_value_; hrm, not clear why this is ...
3 years, 10 months ago (2017-02-23 12:20:38 UTC) #26
emaxx
https://codereview.chromium.org/2558543003/diff/60001/chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc File chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc (right): https://codereview.chromium.org/2558543003/diff/60001/chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc#newcode224 chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc:224: std::unique_ptr<int> awaited_policy_value_; On 2017/02/23 12:20:38, Andrew T Wilson (Slow) ...
3 years, 10 months ago (2017-02-23 15:32:35 UTC) #27
emaxx
stevenjb@: PTAL at changes under chromeos/.
3 years, 10 months ago (2017-02-23 15:33:59 UTC) #31
Andrew T Wilson (Slow)
https://codereview.chromium.org/2558543003/diff/60001/chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc File chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc (right): https://codereview.chromium.org/2558543003/diff/60001/chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc#newcode224 chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc:224: std::unique_ptr<int> awaited_policy_value_; On 2017/02/23 15:32:34, emaxx wrote: > On ...
3 years, 10 months ago (2017-02-23 15:51:20 UTC) #32
stevenjb
https://codereview.chromium.org/2558543003/diff/80001/chromeos/dbus/fake_session_manager_client.cc File chromeos/dbus/fake_session_manager_client.cc (right): https://codereview.chromium.org/2558543003/diff/80001/chromeos/dbus/fake_session_manager_client.cc#newcode18 chromeos/dbus/fake_session_manager_client.cc:18: #include "components/policy/proto/device_management_backend.pb.h" I'm not super keen on adding this ...
3 years, 10 months ago (2017-02-23 18:14:28 UTC) #35
emaxx
https://codereview.chromium.org/2558543003/diff/80001/chromeos/dbus/fake_session_manager_client.cc File chromeos/dbus/fake_session_manager_client.cc (right): https://codereview.chromium.org/2558543003/diff/80001/chromeos/dbus/fake_session_manager_client.cc#newcode18 chromeos/dbus/fake_session_manager_client.cc:18: #include "components/policy/proto/device_management_backend.pb.h" On 2017/02/23 18:14:28, stevenjb wrote: > I'm ...
3 years, 10 months ago (2017-02-23 19:20:42 UTC) #36
stevenjb
Actually, the Fake implementations exist largely to allow Chrome OS to run on Linux. We ...
3 years, 10 months ago (2017-02-23 19:27:34 UTC) #37
emaxx
Steven, On 2017/02/23 19:27:34, stevenjb wrote: > Actually, the Fake implementations exist largely to allow ...
3 years, 9 months ago (2017-03-02 22:06:05 UTC) #38
stevenjb
On 2017/03/02 22:06:05, emaxx wrote: > Steven, > > On 2017/02/23 19:27:34, stevenjb wrote: > ...
3 years, 9 months ago (2017-03-02 22:14:14 UTC) #39
stevenjb
https://codereview.chromium.org/2558543003/diff/100001/chromeos/dbus/fake_session_manager_client.cc File chromeos/dbus/fake_session_manager_client.cc (right): https://codereview.chromium.org/2558543003/diff/100001/chromeos/dbus/fake_session_manager_client.cc#newcode23 chromeos/dbus/fake_session_manager_client.cc:23: Can you explain in a comment why we need ...
3 years, 9 months ago (2017-03-02 22:23:43 UTC) #40
emaxx
https://codereview.chromium.org/2558543003/diff/100001/chromeos/dbus/fake_session_manager_client.cc File chromeos/dbus/fake_session_manager_client.cc (right): https://codereview.chromium.org/2558543003/diff/100001/chromeos/dbus/fake_session_manager_client.cc#newcode23 chromeos/dbus/fake_session_manager_client.cc:23: On 2017/03/02 22:23:43, stevenjb wrote: > Can you explain ...
3 years, 9 months ago (2017-03-02 22:47:13 UTC) #43
stevenjb
crhomeos/dbus lgtm It would be wonderful if someone were to eliminate the StubImpl and integrate ...
3 years, 9 months ago (2017-03-02 23:10:16 UTC) #44
emaxx
On 2017/03/02 23:10:16, stevenjb wrote: > It would be wonderful if someone were to eliminate ...
3 years, 9 months ago (2017-03-03 02:57:44 UTC) #47
emaxx
https://codereview.chromium.org/2558543003/diff/120001/chromeos/dbus/fake_session_manager_client.cc File chromeos/dbus/fake_session_manager_client.cc (right): https://codereview.chromium.org/2558543003/diff/120001/chromeos/dbus/fake_session_manager_client.cc#newcode27 chromeos/dbus/fake_session_manager_client.cc:27: // manages the owner key file on Chrome OS. ...
3 years, 9 months ago (2017-03-03 02:57:57 UTC) #48
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/2558543003/140001
3 years, 9 months ago (2017-03-03 02:58:23 UTC) #51
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/6581fa97d9ac35a9c541856a0acc04c8be2cfc20
3 years, 9 months ago (2017-03-03 03:54:53 UTC) #54
alph
3 years, 9 months ago (2017-03-03 07:58:32 UTC) #55
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2727863004/ by alph@chromium.org.

The reason for reverting is: Broke KeyRotationDeviceCloudPolicyTest.Basic test
https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%....

Powered by Google App Engine
This is Rietveld 408576698