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

Issue 8949056: This adds support for encrypted ONC import (Closed)

Created:
9 years ago by Greg Spencer (Chromium)
Modified:
8 years, 11 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, Paweł Hajdan Jr., kmixter1
Visibility:
Public.

Description

This adds support for encrypted ONC import to Chrome. We now can import standalone ONC files that are encrypted by the Spigots management app. TBR=joaodasilva@chromium.org BUG=chromium-os:19397 TEST=Ran new unit tests, imported encrypted ONC on device. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117321

Patch Set 1 #

Total comments: 7

Patch Set 2 : Review changes #

Patch Set 3 : More review changes #

Patch Set 4 : Handling decryption errors better #

Total comments: 16

Patch Set 5 : More Review Changes #

Total comments: 5

Patch Set 6 : Adding ONC Type support #

Total comments: 10

Patch Set 7 : fixing minor things #

Patch Set 8 : upload after merge #

Patch Set 9 : Fix memory leak in unit test #

Patch Set 10 : upload after merge #

Patch Set 11 : Fixed merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -24 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/network_library.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/cros/onc_network_parser.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/onc_network_parser.cc View 1 2 3 4 5 6 7 8 9 4 chunks +129 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/cros/onc_network_parser_unittest.cc View 1 2 3 4 5 6 7 8 9 10 17 chunks +57 lines, -16 lines 0 comments Download
M chrome/browser/policy/configuration_policy_handler_chromeos.cc View 1 chunk +2 lines, -1 line 0 comments Download
M crypto/hmac.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M crypto/hmac.cc View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Greg Spencer (Chromium)
9 years ago (2011-12-21 23:04:23 UTC) #1
Charlie Lee
lgtm with nits http://codereview.chromium.org/8949056/diff/1/chrome/browser/chromeos/cros/onc_network_parser.cc File chrome/browser/chromeos/cros/onc_network_parser.cc (right): http://codereview.chromium.org/8949056/diff/1/chrome/browser/chromeos/cros/onc_network_parser.cc#newcode250 chrome/browser/chromeos/cros/onc_network_parser.cc:250: return false; should add a log ...
9 years ago (2011-12-22 20:55:15 UTC) #2
Ryan Sleevi
I'd like to raise some security concerns with this implementation, in the hopes of double-checking ...
9 years ago (2011-12-24 07:34:08 UTC) #3
Greg Spencer (Chromium)
On 2011/12/24 07:34:08, Ryan Sleevi wrote: > You may want to reach out to Adam ...
8 years, 11 months ago (2012-01-03 19:40:12 UTC) #4
Ryan Sleevi
On 2012/01/03 19:40:12, Greg Spencer (Chromium) wrote: > On 2011/12/24 07:34:08, Ryan Sleevi wrote: http://codereview.chromium.org/8949056/diff/1/chrome/browser/chromeos/cros/onc_network_parser.cc#newcode384 ...
8 years, 11 months ago (2012-01-03 20:15:14 UTC) #5
Greg Spencer (Chromium)
http://codereview.chromium.org/8949056/diff/1/chrome/browser/chromeos/cros/onc_network_parser.cc File chrome/browser/chromeos/cros/onc_network_parser.cc (right): http://codereview.chromium.org/8949056/diff/1/chrome/browser/chromeos/cros/onc_network_parser.cc#newcode394 chrome/browser/chromeos/cros/onc_network_parser.cc:394: if (parse_error_.empty()) On 2011/12/22 20:55:17, Charlie Lee wrote: > ...
8 years, 11 months ago (2012-01-03 21:54:21 UTC) #6
Greg Spencer (Chromium)
On 2012/01/03 20:15:14, Ryan Sleevi wrote: > > If you still think this is important, ...
8 years, 11 months ago (2012-01-03 22:42:40 UTC) #7
Ryan Sleevi
On 2012/01/03 22:42:40, Greg Spencer (Chromium) wrote: > Yes, the designs are still in draft. ...
8 years, 11 months ago (2012-01-03 23:07:51 UTC) #8
Greg Spencer (Chromium)
On 2012/01/03 23:07:51, Ryan Sleevi wrote: > In the current implementation for ChromiumOS, because the ...
8 years, 11 months ago (2012-01-04 00:00:43 UTC) #9
Ryan Sleevi
On 2012/01/04 00:00:43, Greg Spencer (Chromium) wrote: > So for purposes of this change, would ...
8 years, 11 months ago (2012-01-04 00:12:50 UTC) #10
Greg Spencer (Chromium)
On 2012/01/04 00:12:50, Ryan Sleevi wrote: > Specifying Encrypt-then-HMAC in the spec should be sufficient ...
8 years, 11 months ago (2012-01-04 00:22:54 UTC) #11
Greg Spencer (Chromium)
Adding Adam for review, since this implementation involves encryption/security issues.
8 years, 11 months ago (2012-01-04 00:53:28 UTC) #12
Ryan Sleevi
http://codereview.chromium.org/8949056/diff/13010/chrome/browser/chromeos/cros/onc_network_parser.cc File chrome/browser/chromeos/cros/onc_network_parser.cc (right): http://codereview.chromium.org/8949056/diff/13010/chrome/browser/chromeos/cros/onc_network_parser.cc#newcode23 chrome/browser/chromeos/cros/onc_network_parser.cc:23: #include "crypto/encryptor.h" nit: lexicographical sort http://codereview.chromium.org/8949056/diff/13010/chrome/browser/chromeos/cros/onc_network_parser.cc#newcode319 chrome/browser/chromeos/cros/onc_network_parser.cc:319: if (!base::Base64Decode(hmac, ...
8 years, 11 months ago (2012-01-04 01:33:43 UTC) #13
Greg Spencer (Chromium)
http://codereview.chromium.org/8949056/diff/13010/chrome/browser/chromeos/cros/onc_network_parser.cc File chrome/browser/chromeos/cros/onc_network_parser.cc (right): http://codereview.chromium.org/8949056/diff/13010/chrome/browser/chromeos/cros/onc_network_parser.cc#newcode23 chrome/browser/chromeos/cros/onc_network_parser.cc:23: #include "crypto/encryptor.h" On 2012/01/04 01:33:43, Ryan Sleevi wrote: > ...
8 years, 11 months ago (2012-01-05 22:18:03 UTC) #14
Ryan Sleevi
I'll leave Adam and Charlie to give the final LGs, but all of my concerns ...
8 years, 11 months ago (2012-01-05 22:34:10 UTC) #15
kmixter1
http://codereview.chromium.org/8949056/diff/20001/chrome/browser/chromeos/cros/network_library.cc File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/8949056/diff/20001/chrome/browser/chromeos/cros/network_library.cc#newcode1771 chrome/browser/chromeos/cros/network_library.cc:1771: virtual bool LoadOncNetworks(const std::string& onc_blob, Where is the code ...
8 years, 11 months ago (2012-01-05 23:27:53 UTC) #16
Greg Spencer (Chromium)
http://codereview.chromium.org/8949056/diff/20001/chrome/browser/chromeos/cros/network_library.cc File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/8949056/diff/20001/chrome/browser/chromeos/cros/network_library.cc#newcode1771 chrome/browser/chromeos/cros/network_library.cc:1771: virtual bool LoadOncNetworks(const std::string& onc_blob, On 2012/01/05 23:27:53, kmixter1 ...
8 years, 11 months ago (2012-01-05 23:41:05 UTC) #17
agl
LGTM http://codereview.chromium.org/8949056/diff/23002/chrome/browser/chromeos/cros/onc_network_parser.cc File chrome/browser/chromeos/cros/onc_network_parser.cc (right): http://codereview.chromium.org/8949056/diff/23002/chrome/browser/chromeos/cros/onc_network_parser.cc#newcode260 chrome/browser/chromeos/cros/onc_network_parser.cc:260: const int key_size_in_bits = 256; (ignore if you ...
8 years, 11 months ago (2012-01-06 15:59:56 UTC) #18
kmixter1
http://codereview.chromium.org/8949056/diff/20001/crypto/hmac.cc File crypto/hmac.cc (right): http://codereview.chromium.org/8949056/diff/20001/crypto/hmac.cc#newcode18 crypto/hmac.cc:18: // Zero out key copy. This probably just gets ...
8 years, 11 months ago (2012-01-06 17:55:58 UTC) #19
kmixter1
LGTM
8 years, 11 months ago (2012-01-06 17:56:30 UTC) #20
Greg Spencer (Chromium)
On 2012/01/06 17:55:58, kmixter1 wrote: > I was trying to use data() to get at ...
8 years, 11 months ago (2012-01-06 18:00:28 UTC) #21
Greg Spencer (Chromium)
Thanks for the reviews! http://codereview.chromium.org/8949056/diff/23002/chrome/browser/chromeos/cros/onc_network_parser.cc File chrome/browser/chromeos/cros/onc_network_parser.cc (right): http://codereview.chromium.org/8949056/diff/23002/chrome/browser/chromeos/cros/onc_network_parser.cc#newcode260 chrome/browser/chromeos/cros/onc_network_parser.cc:260: const int key_size_in_bits = 256; ...
8 years, 11 months ago (2012-01-06 21:45:55 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gspencer@chromium.org/8949056/31002
8 years, 11 months ago (2012-01-06 21:46:31 UTC) #23
commit-bot: I haz the power
Presubmit check for 8949056-31002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 11 months ago (2012-01-06 21:46:38 UTC) #24
Greg Spencer (Chromium)
Mattias, I need an OWNERS review for chrome/browser/policy/configuration_policy_handler_chromeos.cc It's a really simple change...
8 years, 11 months ago (2012-01-06 21:48:14 UTC) #25
Greg Spencer (Chromium)
Ping, and adding the other two policy owners. Can one of you please review this ...
8 years, 11 months ago (2012-01-11 17:11:21 UTC) #26
Greg Spencer (Chromium)
Ping, and adding the other two policy owners. Can one of you please review this ...
8 years, 11 months ago (2012-01-11 17:11:22 UTC) #27
Greg Spencer (Chromium)
(now actually adding the other two policy owners.) Can one of you please review this ...
8 years, 11 months ago (2012-01-11 17:12:38 UTC) #28
Greg Spencer (Chromium)
Sorry for the repeated requests: that was rietveld, not me. On Wed, Jan 11, 2012 ...
8 years, 11 months ago (2012-01-11 17:13:56 UTC) #29
Greg Spencer (Chromium)
Looks like Joao is the only policy OWNER that isn't on vacation. Per Zel, I'm ...
8 years, 11 months ago (2012-01-11 18:57:58 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gspencer@chromium.org/8949056/30006
8 years, 11 months ago (2012-01-11 18:58:32 UTC) #31
commit-bot: I haz the power
Can't apply patch for file chrome/browser/chromeos/cros/onc_network_parser_unittest.cc. While running patch -p1 --forward --force; patching file chrome/browser/chromeos/cros/onc_network_parser_unittest.cc ...
8 years, 11 months ago (2012-01-11 18:58:35 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gspencer@chromium.org/8949056/35002
8 years, 11 months ago (2012-01-11 22:03:26 UTC) #33
commit-bot: I haz the power
Change committed as 117321
8 years, 11 months ago (2012-01-11 23:17:16 UTC) #34
Joao da Silva
8 years, 11 months ago (2012-01-12 17:47:20 UTC) #35
policy/ changes lgtm

Powered by Google App Engine
This is Rietveld 408576698