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

Issue 2493603002: Implement component cloud policy signature validation (Closed)

Created:
4 years, 1 month ago by emaxx
Modified:
4 years ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement component cloud policy signature validation This adds signature validation for the component cloud policy (e.g. policy for extensions). The signature is validated against the same key that is used for the "superior" policy (e.g. the user policy, the device local account policy, etc.). This CL also adds keeping a copy of the most recent component cloud policy and rechecking it when some of the credentials change. This allows to handle key rotations gracefully: even though the component cloud policy may fail the validation immediately after the cloud policy refresh with the rotated key, it will be re-validated and applied when the superior policy gets processed and the credentials get propagated. BUG=644632 TEST=existing tests (now with the signature checks enabled), new unit tests and new browser test Committed: https://crrev.com/4df0d565e3cd9258f0a5fc4517bfb739a7b28d4f Cr-Commit-Position: refs/heads/master@{#434730}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove owning domain passing #

Patch Set 3 : Remove owning domain passing #

Patch Set 4 : Rebase, add comment #

Patch Set 5 : Rebase, disable the new test temporarily #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase on top of policy test server change #

Total comments: 16

Patch Set 8 : Fix nits. Add more tests #

Patch Set 9 : Add comment #

Messages

Total messages: 62 (52 generated)
emaxx
Drew, PTAL. This is the second part of the bigger change. This CL relies on ...
4 years, 1 month ago (2016-11-09 22:16:56 UTC) #6
emaxx
Removed passing of the owning domain as per http://crrev.com/2488573003 and http://crrev.com/2494843002 .
4 years, 1 month ago (2016-11-11 17:39:07 UTC) #15
emaxx
Drew, friendly ping. I've updated the CL to rebase on top of changes in other ...
4 years, 1 month ago (2016-11-21 16:33:35 UTC) #20
emaxx
Rebased again after the first half has landed ( http://crrev.com/cc11f1e65bc21e264ec3a763e9c0d36f2d9025b1 ) has landed. I also ...
4 years ago (2016-11-24 16:54:31 UTC) #26
emaxx
Enabled test back due to rebasing on top http://crrev.com/2530023002 .
4 years ago (2016-11-24 23:25:31 UTC) #45
Andrew T Wilson (Slow)
LGTM with nits/comments https://codereview.chromium.org/2493603002/diff/120001/components/policy/core/common/cloud/component_cloud_policy_service.cc File components/policy/core/common/cloud/component_cloud_policy_service.cc (right): https://codereview.chromium.org/2493603002/diff/120001/components/policy/core/common/cloud/component_cloud_policy_service.cc#newcode86 components/policy/core/common/cloud/component_cloud_policy_service.cc:86: void ClearCache(); Useful to document what ...
4 years ago (2016-11-25 16:13:24 UTC) #46
emaxx
https://codereview.chromium.org/2493603002/diff/120001/components/policy/core/common/cloud/component_cloud_policy_service.cc File components/policy/core/common/cloud/component_cloud_policy_service.cc (right): https://codereview.chromium.org/2493603002/diff/120001/components/policy/core/common/cloud/component_cloud_policy_service.cc#newcode86 components/policy/core/common/cloud/component_cloud_policy_service.cc:86: void ClearCache(); On 2016/11/25 16:13:24, Andrew T Wilson (Slow) ...
4 years ago (2016-11-25 23:30:05 UTC) #54
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/2493603002/160001
4 years ago (2016-11-28 18:14:29 UTC) #57
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years ago (2016-11-28 21:55:00 UTC) #60
commit-bot: I haz the power
4 years ago (2016-11-28 21:56:50 UTC) #62
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/4df0d565e3cd9258f0a5fc4517bfb739a7b28d4f
Cr-Commit-Position: refs/heads/master@{#434730}

Powered by Google App Engine
This is Rietveld 408576698