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

Issue 1737693002: Allow command-line arguments to override EF public key (Closed)

Created:
4 years, 10 months ago by iclelland
Modified:
4 years, 8 months ago
CC:
chromium-reviews, chasej+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow command-line arguments to override EF public key This adds a command-line flag, --origin-trial-public-key, which can be used by developers to override the public key used to verify the signed tokens for origin trials. BUG=603588 Committed: https://crrev.com/ee4f4a742db6b3e5c8bb8462f9da270c26be491c Cr-Commit-Position: refs/heads/master@{#389832}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressing comments from PS#1 #

Total comments: 19

Patch Set 3 : Addressing comments from PS#2 #

Patch Set 4 : Fix use-after-free due to StringPiece shared state #

Total comments: 15

Patch Set 5 : Addressing feedback from PS#4 #

Total comments: 2

Patch Set 6 : Remove finch integration from this CL #

Patch Set 7 : Rebase #

Total comments: 8

Patch Set 8 : Remove new method from content API #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -7 lines) Patch
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_content_client.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/origin_trials/origin_trial_key_manager.h View 1 2 3 4 5 1 chunk +13 lines, -1 line 0 comments Download
M chrome/common/origin_trials/origin_trial_key_manager.cc View 1 2 3 4 5 1 chunk +23 lines, -6 lines 0 comments Download
A chrome/common/origin_trials/origin_trial_key_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +82 lines, -0 lines 0 comments Download

Messages

Total messages: 62 (19 generated)
iclelland
+r chasej -- PTAL at all of it, thanks :) +r asvitkine -- can you ...
4 years, 10 months ago (2016-02-25 15:35:00 UTC) #2
chasej
Looking good, with minor comments. https://codereview.chromium.org/1737693002/diff/1/chrome/browser/origin_trials/origin_trial_controller.h File chrome/browser/origin_trials/origin_trial_controller.h (right): https://codereview.chromium.org/1737693002/diff/1/chrome/browser/origin_trials/origin_trial_controller.h#newcode8 chrome/browser/origin_trials/origin_trial_controller.h:8: #include "base/command_line.h" Can this ...
4 years, 10 months ago (2016-02-26 06:10:34 UTC) #3
iclelland
https://codereview.chromium.org/1737693002/diff/1/chrome/browser/origin_trials/origin_trial_controller.h File chrome/browser/origin_trials/origin_trial_controller.h (right): https://codereview.chromium.org/1737693002/diff/1/chrome/browser/origin_trials/origin_trial_controller.h#newcode8 chrome/browser/origin_trials/origin_trial_controller.h:8: #include "base/command_line.h" On 2016/02/26 06:10:34, chasej wrote: > Can ...
4 years, 10 months ago (2016-02-26 15:24:47 UTC) #4
Alexei Svitkine (slow)
General override approach seems fine to me - some comments about the implementation. https://codereview.chromium.org/1737693002/diff/20001/chrome/browser/origin_trials/origin_trial_controller.cc File ...
4 years, 10 months ago (2016-02-26 16:29:08 UTC) #6
iclelland
https://codereview.chromium.org/1737693002/diff/20001/chrome/browser/origin_trials/origin_trial_controller.cc File chrome/browser/origin_trials/origin_trial_controller.cc (right): https://codereview.chromium.org/1737693002/diff/20001/chrome/browser/origin_trials/origin_trial_controller.cc#newcode29 chrome/browser/origin_trials/origin_trial_controller.cc:29: override_public_key); On 2016/02/26 16:29:08, Alexei Svitkine (slow) wrote: > ...
4 years, 10 months ago (2016-02-26 16:49:14 UTC) #7
Alexei Svitkine (slow)
https://codereview.chromium.org/1737693002/diff/20001/chrome/browser/origin_trials/origin_trial_controller.cc File chrome/browser/origin_trials/origin_trial_controller.cc (right): https://codereview.chromium.org/1737693002/diff/20001/chrome/browser/origin_trials/origin_trial_controller.cc#newcode29 chrome/browser/origin_trials/origin_trial_controller.cc:29: override_public_key); On 2016/02/26 16:49:14, iclelland wrote: > On 2016/02/26 ...
4 years, 10 months ago (2016-02-26 17:32:20 UTC) #8
iclelland
https://codereview.chromium.org/1737693002/diff/20001/chrome/browser/origin_trials/origin_trial_controller.cc File chrome/browser/origin_trials/origin_trial_controller.cc (right): https://codereview.chromium.org/1737693002/diff/20001/chrome/browser/origin_trials/origin_trial_controller.cc#newcode19 chrome/browser/origin_trials/origin_trial_controller.cc:19: DCHECK(command_line); On 2016/02/26 16:29:08, Alexei Svitkine (slow) wrote: > ...
4 years, 10 months ago (2016-02-26 19:55:05 UTC) #9
Alexei Svitkine (slow)
lgtm
4 years, 10 months ago (2016-02-26 19:57:32 UTC) #10
chasej
lgtm
4 years, 10 months ago (2016-02-26 20:05:15 UTC) #11
iclelland
+r jam -- Can you PTAL? Thanks
4 years, 9 months ago (2016-02-29 15:44:35 UTC) #14
iclelland
(Somehow the +r didn't actually take effect last time. Trying again)
4 years, 9 months ago (2016-03-03 16:06:46 UTC) #16
jam
On 2016/02/29 15:44:35, iclelland wrote: > +r jam -- Can you PTAL? Thanks please pick ...
4 years, 9 months ago (2016-03-03 16:40:36 UTC) #17
iclelland
On 2016/03/03 16:40:36, jam wrote: > On 2016/02/29 15:44:35, iclelland wrote: > > +r jam ...
4 years, 9 months ago (2016-03-03 17:02:31 UTC) #19
sky
This seems like there could be security implications here. Has this gone through a security ...
4 years, 9 months ago (2016-03-03 20:48:37 UTC) #20
sky
https://codereview.chromium.org/1737693002/diff/60001/chrome/browser/origin_trials/origin_trial_controller.h File chrome/browser/origin_trials/origin_trial_controller.h (right): https://codereview.chromium.org/1737693002/diff/60001/chrome/browser/origin_trials/origin_trial_controller.h#newcode1 chrome/browser/origin_trials/origin_trial_controller.h:1: // Copyright (c) 2016 The Chromium Authors. All rights ...
4 years, 9 months ago (2016-03-03 20:55:30 UTC) #21
iclelland
On 2016/03/03 20:48:37, sky wrote: > This seems like there could be security implications here. ...
4 years, 9 months ago (2016-03-04 16:23:06 UTC) #22
iclelland
https://codereview.chromium.org/1737693002/diff/60001/chrome/browser/origin_trials/origin_trial_controller.h File chrome/browser/origin_trials/origin_trial_controller.h (right): https://codereview.chromium.org/1737693002/diff/60001/chrome/browser/origin_trials/origin_trial_controller.h#newcode1 chrome/browser/origin_trials/origin_trial_controller.h:1: // Copyright (c) 2016 The Chromium Authors. All rights ...
4 years, 9 months ago (2016-03-07 14:48:19 UTC) #23
palmer
https://codereview.chromium.org/1737693002/diff/80001/chrome/renderer/origin_trials/origin_trial_key_manager.cc File chrome/renderer/origin_trials/origin_trial_key_manager.cc (right): https://codereview.chromium.org/1737693002/diff/80001/chrome/renderer/origin_trials/origin_trial_key_manager.cc#newcode28 chrome/renderer/origin_trials/origin_trial_key_manager.cc:28: // Base64-decode the incoming string. Set the key if ...
4 years, 9 months ago (2016-03-16 23:02:39 UTC) #25
palmer
+estark; I think she's a better crypto friend than I am, and EF may already ...
4 years, 9 months ago (2016-03-16 23:06:35 UTC) #27
palmer
estark tells me your using Ed25519, not RSA; same principle likely applies. There does exist ...
4 years, 9 months ago (2016-03-16 23:23:17 UTC) #28
estark
I think the crypto parts of this look okay to me. AFAIK there's not much ...
4 years, 9 months ago (2016-03-17 00:23:28 UTC) #29
iclelland
On 2016/03/17 00:23:28, estark wrote: > I think the crypto parts of this look okay ...
4 years, 9 months ago (2016-03-17 03:06:37 UTC) #30
estark
On 2016/03/17 03:06:37, iclelland wrote: > On 2016/03/17 00:23:28, estark wrote: > > I think ...
4 years, 9 months ago (2016-03-18 02:59:01 UTC) #31
iclelland
On 2016/03/18 02:59:01, estark wrote: > On 2016/03/17 03:06:37, iclelland wrote: > > On 2016/03/17 ...
4 years, 8 months ago (2016-04-06 19:38:52 UTC) #32
iclelland
On 2016/04/06 19:38:52, iclelland wrote: > On 2016/03/18 02:59:01, estark wrote: > > On 2016/03/17 ...
4 years, 8 months ago (2016-04-07 14:14:21 UTC) #33
iclelland
> > estark -- Do you have any other issues with this code (besides the ...
4 years, 8 months ago (2016-04-14 15:34:18 UTC) #36
estark
lgtm
4 years, 8 months ago (2016-04-14 15:57:28 UTC) #37
iclelland
On 2016/04/14 15:57:28, estark wrote: > lgtm Thanks! sky -- can you take a look?
4 years, 8 months ago (2016-04-14 16:02:34 UTC) #38
sky
https://codereview.chromium.org/1737693002/diff/60001/chrome/renderer/origin_trials/origin_trial_key_manager.h File chrome/renderer/origin_trials/origin_trial_key_manager.h (right): https://codereview.chromium.org/1737693002/diff/60001/chrome/renderer/origin_trials/origin_trial_key_manager.h#newcode19 chrome/renderer/origin_trials/origin_trial_key_manager.h:19: base::StringPiece GetPublicKey() const; On 2016/03/07 14:48:19, iclelland wrote: > ...
4 years, 8 months ago (2016-04-14 16:19:52 UTC) #39
iclelland
https://codereview.chromium.org/1737693002/diff/60001/chrome/renderer/origin_trials/origin_trial_key_manager.h File chrome/renderer/origin_trials/origin_trial_key_manager.h (right): https://codereview.chromium.org/1737693002/diff/60001/chrome/renderer/origin_trials/origin_trial_key_manager.h#newcode19 chrome/renderer/origin_trials/origin_trial_key_manager.h:19: base::StringPiece GetPublicKey() const; On 2016/04/14 16:19:51, sky wrote: > ...
4 years, 8 months ago (2016-04-14 19:29:07 UTC) #40
sky
https://codereview.chromium.org/1737693002/diff/60001/chrome/renderer/origin_trials/origin_trial_key_manager.h File chrome/renderer/origin_trials/origin_trial_key_manager.h (right): https://codereview.chromium.org/1737693002/diff/60001/chrome/renderer/origin_trials/origin_trial_key_manager.h#newcode19 chrome/renderer/origin_trials/origin_trial_key_manager.h:19: base::StringPiece GetPublicKey() const; On 2016/04/14 19:29:07, iclelland wrote: > ...
4 years, 8 months ago (2016-04-14 20:58:05 UTC) #41
iclelland
https://codereview.chromium.org/1737693002/diff/60001/chrome/renderer/origin_trials/origin_trial_key_manager.h File chrome/renderer/origin_trials/origin_trial_key_manager.h (right): https://codereview.chromium.org/1737693002/diff/60001/chrome/renderer/origin_trials/origin_trial_key_manager.h#newcode19 chrome/renderer/origin_trials/origin_trial_key_manager.h:19: base::StringPiece GetPublicKey() const; On 2016/04/14 20:58:04, sky wrote: > ...
4 years, 8 months ago (2016-04-15 03:09:46 UTC) #42
sky
LGTM https://codereview.chromium.org/1737693002/diff/60001/chrome/renderer/origin_trials/origin_trial_key_manager.h File chrome/renderer/origin_trials/origin_trial_key_manager.h (right): https://codereview.chromium.org/1737693002/diff/60001/chrome/renderer/origin_trials/origin_trial_key_manager.h#newcode19 chrome/renderer/origin_trials/origin_trial_key_manager.h:19: base::StringPiece GetPublicKey() const; On 2016/04/15 03:09:46, iclelland wrote: ...
4 years, 8 months ago (2016-04-15 16:08:46 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737693002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737693002/120001
4 years, 8 months ago (2016-04-15 17:43:26 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/169237)
4 years, 8 months ago (2016-04-15 17:53:38 UTC) #48
iclelland
(Just when I thought I had all the reviews covered :( ) +r jam (again, ...
4 years, 8 months ago (2016-04-15 18:02:36 UTC) #50
iclelland
-aj +jam (typo, sorry for the noise)
4 years, 8 months ago (2016-04-15 18:03:14 UTC) #52
jam
sorry for the delay, I missed this cl. in the future please IM me if ...
4 years, 8 months ago (2016-04-21 17:56:19 UTC) #53
iclelland
> sorry for the delay, I missed this cl. in the future please IM me ...
4 years, 8 months ago (2016-04-25 15:26:18 UTC) #54
jam
On 2016/04/25 15:26:18, iclelland wrote: > > sorry for the delay, I missed this cl. ...
4 years, 8 months ago (2016-04-26 17:30:59 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737693002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737693002/140001
4 years, 8 months ago (2016-04-26 17:49:32 UTC) #58
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 8 months ago (2016-04-26 18:59:13 UTC) #60
commit-bot: I haz the power
4 years, 8 months ago (2016-04-26 19:01:31 UTC) #62
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ee4f4a742db6b3e5c8bb8462f9da270c26be491c
Cr-Commit-Position: refs/heads/master@{#389832}

Powered by Google App Engine
This is Rietveld 408576698