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

Issue 2721333005: Reauthorize Keychain to Replace Developer ID Certificate (Closed)

Created:
3 years, 9 months ago by Greg K
Modified:
3 years, 9 months ago
CC:
chromium-reviews, grt+watch_chromium.org, pennymac+watch_chromium.org, wfh+watch_chromium.org, asvitkine+watch_chromium.org, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reauthorize Keychain to Replace Developer ID Certificate This adds the code to reauthorize the Safe Storage Keychain entry to prepare for replacing Chrome's Developer ID certificate. This signs Chrome with a new designated requirement (DR), that includes both the current and new certificate. It then deletes and re-adds our safe storage entry to the keychain. This is because a keychain entry's ACL is the application's DR by default, and an app cannot modify the ACL, but it can delete its own item. The re-authorization code is not yet called at Chrome's launch. BUG=629906 Review-Url: https://codereview.chromium.org/2721333005 Cr-Commit-Position: refs/heads/master@{#454649} Committed: https://chromium.googlesource.com/chromium/src/+/e29cfa202aa6f41e862093ddb24353aa27638afb

Patch Set 1 #

Patch Set 2 : Reauthorize Keychain to Replace Developer ID Certificate #

Total comments: 35

Patch Set 3 : Changes per review #

Total comments: 15

Patch Set 4 : Cleanup the comments, and error handling logic #

Total comments: 8

Patch Set 5 : Updates per review. #

Total comments: 2

Patch Set 6 : Remove histogram.h include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -17 lines) Patch
M chrome/browser/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/mac/keychain_reauthorize.h View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/mac/keychain_reauthorize.mm View 1 2 3 4 5 1 chunk +137 lines, -0 lines 0 comments Download
M chrome/installer/mac/sign_app.sh.in View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/os_crypt/keychain_password_mac.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/os_crypt/keychain_password_mac.mm View 1 2 3 1 chunk +11 lines, -16 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (26 generated)
Greg K
PTAL. Thanks, Greg
3 years, 9 months ago (2017-03-01 19:34:32 UTC) #2
Mark Mentovai
No structural or logical problems really. Should be able to clean these up and land ...
3 years, 9 months ago (2017-03-01 22:00:31 UTC) #8
Greg K
https://codereview.chromium.org/2721333005/diff/20001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/2721333005/diff/20001/chrome/browser/BUILD.gn#newcode1 chrome/browser/BUILD.gn:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
3 years, 9 months ago (2017-03-02 01:28:27 UTC) #10
Mark Mentovai
LGTM otherwise https://codereview.chromium.org/2721333005/diff/40001/chrome/browser/mac/keychain_reauthorize.h File chrome/browser/mac/keychain_reauthorize.h (right): https://codereview.chromium.org/2721333005/diff/40001/chrome/browser/mac/keychain_reauthorize.h#newcode16 chrome/browser/mac/keychain_reauthorize.h:16: // Calls KeychainReauthorize, but only if it's ...
3 years, 9 months ago (2017-03-02 02:59:32 UTC) #11
Greg K
https://codereview.chromium.org/2721333005/diff/40001/chrome/browser/mac/keychain_reauthorize.h File chrome/browser/mac/keychain_reauthorize.h (right): https://codereview.chromium.org/2721333005/diff/40001/chrome/browser/mac/keychain_reauthorize.h#newcode16 chrome/browser/mac/keychain_reauthorize.h:16: // Calls KeychainReauthorize, but only if it's determined that ...
3 years, 9 months ago (2017-03-02 18:54:15 UTC) #14
Greg K
Time for an OWNERS review. haraken@chromium.org: Please review changes in histogram.xml thestig@chromium.org: Please review changes ...
3 years, 9 months ago (2017-03-02 18:55:52 UTC) #16
haraken
+isherman for histograms. (I'm eligible to review UseCounter-only changes.)
3 years, 9 months ago (2017-03-02 23:07:54 UTC) #20
Greg K
sdefresne@chromium.org, can you do an OWNERS review for components/? We are trying to land this ...
3 years, 9 months ago (2017-03-03 01:21:53 UTC) #23
sdefresne
components/ lgtm
3 years, 9 months ago (2017-03-03 01:29:16 UTC) #24
Ilya Sherman
https://codereview.chromium.org/2721333005/diff/60001/chrome/browser/mac/keychain_reauthorize.mm File chrome/browser/mac/keychain_reauthorize.mm (right): https://codereview.chromium.org/2721333005/diff/60001/chrome/browser/mac/keychain_reauthorize.mm#newcode93 chrome/browser/mac/keychain_reauthorize.mm:93: void KeychainReauthorizeIfNeeded(NSString* pref_key, int max_tries) { It looks like ...
3 years, 9 months ago (2017-03-03 01:36:12 UTC) #25
Greg K
https://codereview.chromium.org/2721333005/diff/60001/chrome/browser/mac/keychain_reauthorize.mm File chrome/browser/mac/keychain_reauthorize.mm (right): https://codereview.chromium.org/2721333005/diff/60001/chrome/browser/mac/keychain_reauthorize.mm#newcode93 chrome/browser/mac/keychain_reauthorize.mm:93: void KeychainReauthorizeIfNeeded(NSString* pref_key, int max_tries) { On 2017/03/03 01:36:12, ...
3 years, 9 months ago (2017-03-03 18:18:04 UTC) #28
Ilya Sherman
Thanks. LGTM % a nit: https://codereview.chromium.org/2721333005/diff/80001/chrome/browser/mac/keychain_reauthorize.mm File chrome/browser/mac/keychain_reauthorize.mm (right): https://codereview.chromium.org/2721333005/diff/80001/chrome/browser/mac/keychain_reauthorize.mm#newcode18 chrome/browser/mac/keychain_reauthorize.mm:18: #include "base/metrics/histogram.h" nit: It ...
3 years, 9 months ago (2017-03-03 18:19:55 UTC) #29
Greg K
https://codereview.chromium.org/2721333005/diff/80001/chrome/browser/mac/keychain_reauthorize.mm File chrome/browser/mac/keychain_reauthorize.mm (right): https://codereview.chromium.org/2721333005/diff/80001/chrome/browser/mac/keychain_reauthorize.mm#newcode18 chrome/browser/mac/keychain_reauthorize.mm:18: #include "base/metrics/histogram.h" On 2017/03/03 18:19:55, Ilya Sherman wrote: > ...
3 years, 9 months ago (2017-03-03 18:25:36 UTC) #30
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/2721333005/100001
3 years, 9 months ago (2017-03-03 19:31:06 UTC) #37
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 19:39:41 UTC) #41
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/e29cfa202aa6f41e862093ddb243...

Powered by Google App Engine
This is Rietveld 408576698