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

Issue 471183002: Migrate Slot ID of client certs in network configuration. (Closed)

Created:
6 years, 4 months ago by pneubeck (no reviews)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org, mukesh agrawal
Project:
chromium
Visibility:
Public.

Description

Migrate slot ID of client certs in network configuration. If a network was configured with a client certificate before R38, the slot ID will either be missing or not be valid in R38 and later because of the added device wide token. This migration code will look up a configured client certificate by its PKCS#11 ID and update the slot id. If the certificate can't be found, the client configuration will be removed in order to trigger a clean 'missing configuration' error in the UI. This change is primarily targeted for manually configured networks and not policy-configured networks. The latter are automatically updated by the chromeos::ClientCertResolver. BUG=403900 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290044

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed feedback. #

Patch Set 3 : Updated more comments. #

Patch Set 4 : Fix ethernet EAP. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+456 lines, -45 lines) Patch
M chrome/browser/chromeos/options/wifi_config_view.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chromeos/dbus/fake_shill_manager_client.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chromeos/network/client_cert_util.h View 1 2 1 chunk +20 lines, -4 lines 0 comments Download
M chromeos/network/client_cert_util.cc View 1 2 2 chunks +67 lines, -1 line 0 comments Download
M chromeos/network/network_cert_migrator.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/network/network_cert_migrator.cc View 1 2 3 9 chunks +118 lines, -35 lines 0 comments Download
M chromeos/network/network_cert_migrator_unittest.cc View 1 2 3 10 chunks +244 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
pneubeck (no reviews)
Steven, if you have a chance please take a rough view at it. Tomorrow someone ...
6 years, 4 months ago (2014-08-14 19:39:05 UTC) #1
armansito
quiche@, can you help verify this?
6 years, 4 months ago (2014-08-14 19:49:26 UTC) #2
Paul Stewart
Pardon my fly-by. https://codereview.chromium.org/471183002/diff/1/chromeos/network/client_cert_util.cc File chromeos/network/client_cert_util.cc (right): https://codereview.chromium.org/471183002/diff/1/chromeos/network/client_cert_util.cc#newcode167 chromeos/network/client_cert_util.cc:167: } else if (security == shill::kSecurity8021x) ...
6 years, 4 months ago (2014-08-14 20:09:18 UTC) #3
pneubeck (no reviews)
Thanks Paul https://codereview.chromium.org/471183002/diff/1/chromeos/network/client_cert_util.cc File chromeos/network/client_cert_util.cc (right): https://codereview.chromium.org/471183002/diff/1/chromeos/network/client_cert_util.cc#newcode167 chromeos/network/client_cert_util.cc:167: } else if (security == shill::kSecurity8021x) { ...
6 years, 4 months ago (2014-08-14 23:06:00 UTC) #4
stevenjb
Quick flyby since I'm OOO this week. an OK by Arman + Paul is fine ...
6 years, 4 months ago (2014-08-14 23:58:39 UTC) #5
pneubeck (no reviews)
https://codereview.chromium.org/471183002/diff/1/chromeos/network/client_cert_util.cc File chromeos/network/client_cert_util.cc (right): https://codereview.chromium.org/471183002/diff/1/chromeos/network/client_cert_util.cc#newcode167 chromeos/network/client_cert_util.cc:167: } else if (security == shill::kSecurity8021x) { On 2014/08/14 ...
6 years, 4 months ago (2014-08-15 13:15:21 UTC) #6
pneubeck (no reviews)
@Paul, please take another look.
6 years, 4 months ago (2014-08-15 15:45:31 UTC) #7
pneubeck (no reviews)
Ethernet EAP is now also working. Also added a unit test for that, which required ...
6 years, 4 months ago (2014-08-15 17:16:01 UTC) #8
Paul Stewart
LGTM, from my limited perspective.
6 years, 4 months ago (2014-08-15 21:51:28 UTC) #9
pneubeck (no reviews)
The CQ bit was checked by pneubeck@chromium.org
6 years, 4 months ago (2014-08-15 22:18:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/471183002/60001
6 years, 4 months ago (2014-08-15 22:20:40 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-15 22:20:42 UTC) #12
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 4 months ago (2014-08-15 22:20:43 UTC) #13
stevenjb
lgtm
6 years, 4 months ago (2014-08-15 22:24:23 UTC) #14
stevenjb
The CQ bit was checked by stevenjb@chromium.org
6 years, 4 months ago (2014-08-15 22:24:27 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pneubeck@chromium.org/471183002/60001
6 years, 4 months ago (2014-08-15 22:25:59 UTC) #16
commit-bot: I haz the power
6 years, 4 months ago (2014-08-15 23:21:56 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (60001) as 290044

Powered by Google App Engine
This is Rietveld 408576698