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

Issue 2507423002: Remove unnecessary plumbing for policy verification key (Closed)

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

Description

Remove unnecessary plumbing for policy verification key The key is hard-coded anyways, thus there's no benefit in passing it around. BUG=none Committed: https://crrev.com/aea27953b5a2898d62c9114a442dc33a962a98f1 Cr-Commit-Position: refs/heads/master@{#434652}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove unnecessary pass-throughs of the policy verification key #

Patch Set 3 : Polish #

Total comments: 2

Patch Set 4 : git cl format and rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -96 lines) Patch
M chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/policy/cloud/user_cloud_policy_manager_factory.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_constants.h View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_validator.h View 1 2 4 chunks +10 lines, -14 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_validator.cc View 1 2 5 chunks +8 lines, -13 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_validator_unittest.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M components/policy/core/common/cloud/mock_user_cloud_policy_store.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/policy/core/common/cloud/user_cloud_policy_store.h View 1 2 3 4 chunks +0 lines, -6 lines 0 comments Download
M components/policy/core/common/cloud/user_cloud_policy_store.cc View 1 2 3 11 chunks +13 lines, -23 lines 0 comments Download
M components/policy/core/common/cloud/user_cloud_policy_store_unittest.cc View 1 2 3 8 chunks +14 lines, -22 lines 0 comments Download

Messages

Total messages: 31 (18 generated)
Thiemo Nagel
Drew, Maksim, could you please take a look? Thank you, Thiemo
4 years, 1 month ago (2016-11-17 10:12:22 UTC) #4
Thiemo Nagel
If you agree with the change, I'll have to deprecate the corresponding UMA entry, too.
4 years, 1 month ago (2016-11-17 10:14:18 UTC) #5
Thiemo Nagel
https://codereview.chromium.org/2507423002/diff/1/components/policy/core/common/cloud/cloud_policy_validator.cc File components/policy/core/common/cloud/cloud_policy_validator.cc (left): https://codereview.chromium.org/2507423002/diff/1/components/policy/core/common/cloud/cloud_policy_validator.cc#oldcode280 components/policy/core/common/cloud/cloud_policy_validator.cc:280: return true; Actually, maybe best to just return false ...
4 years, 1 month ago (2016-11-17 12:04:50 UTC) #8
Andrew T Wilson (Slow)
https://codereview.chromium.org/2507423002/diff/1/components/policy/core/common/cloud/cloud_policy_validator.cc File components/policy/core/common/cloud/cloud_policy_validator.cc (left): https://codereview.chromium.org/2507423002/diff/1/components/policy/core/common/cloud/cloud_policy_validator.cc#oldcode277 components/policy/core/common/cloud/cloud_policy_validator.cc:277: UMA_HISTOGRAM_ENUMERATION(kMetricPolicyKeyVerification, Note that if verification_key_ is empty, CheckVerificationKeySignature() below ...
4 years, 1 month ago (2016-11-17 12:32:34 UTC) #9
emaxx
Thiemo, Won't this change break the --disable-policy-key-verification command line flag? I think it's still required ...
4 years, 1 month ago (2016-11-17 13:20:37 UTC) #10
Thiemo Nagel
On 2016/11/17 13:20:37, emaxx wrote: > Won't this change break the --disable-policy-key-verification command line flag? ...
4 years, 1 month ago (2016-11-21 16:07:38 UTC) #18
emaxx
I'm fine with this change as it's anyway not clear to me how the verification ...
4 years, 1 month ago (2016-11-21 16:42:17 UTC) #20
Thiemo Nagel
On 2016/11/21 16:42:17, emaxx wrote: > I'm fine with this change as it's anyway not ...
4 years, 1 month ago (2016-11-21 17:02:16 UTC) #21
Andrew T Wilson (Slow)
LGTM, and correct, verification key rotation is done manually. There's not really any facility for ...
4 years ago (2016-11-25 15:20:25 UTC) #22
Thiemo Nagel
https://codereview.chromium.org/2507423002/diff/40001/components/policy/core/common/cloud/user_cloud_policy_store.cc File components/policy/core/common/cloud/user_cloud_policy_store.cc (right): https://codereview.chromium.org/2507423002/diff/40001/components/policy/core/common/cloud/user_cloud_policy_store.cc#newcode331 components/policy/core/common/cloud/user_cloud_policy_store.cc:331: base::Bind(&UserCloudPolicyStore::StorePolicyAfterValidation, On 2016/11/25 15:20:25, Andrew T Wilson (Slow) wrote: ...
4 years ago (2016-11-28 13:17:08 UTC) #23
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/2507423002/60001
4 years ago (2016-11-28 13:17:21 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-28 14:14:19 UTC) #29
commit-bot: I haz the power
4 years ago (2016-11-28 14:17:42 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/aea27953b5a2898d62c9114a442dc33a962a98f1
Cr-Commit-Position: refs/heads/master@{#434652}

Powered by Google App Engine
This is Rietveld 408576698