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

Issue 1109283003: Change connection info strings (e.g. SHA-1 cert warnings) to be more clear. (Closed)

Created:
5 years, 7 months ago by lgarron
Modified:
5 years, 7 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, Eran Messeri
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change connection info strings (e.g. SHA-1 cert warnings) to be more clear to developers. This commit includes 5 changes that make OIB connection info strings more clear to developers (and advanced users). Since it has become impractical to target "normal" users with these strings, the focus is on using exact terminology instead of "friendly" alternatives. This should help developers to understand the page's issues at a glance: https://docs.google.com/document/d/1YgavRvC7_6PoOYHjUuKQL1Mlc718z7F1AnTNGrM92W4/edit#heading=h.kldzb7b775ri Changes in this commit: 1. The identity section explicitly mentions when an error was caused by SHA-1 in the certificate chain, instead of referencing "outdated security settings" (there are no such settings apart from SHA-1 signatures right now). (https://crbug.com/437466) 2. Mentions of "public audit records" have been replaced with mentions of "Certificate Transparency". The phrase "Public audit records" was hinting at the implications of CT, but a full understanding the string requires knowledge of CT. Also, the mention of CT has been split into a separate sentence. The presence of "but" had a strong but incorrect implication that this affects the lock icon (which will not be the case for non-EV sites in the near future). 3. The phrase "modern cryptography" is now "modern cipher suite" in order to distinguish the kind of cryptography in question. (Similarly for "obsolete cryptography".) This technically doesn't mention the protocol; however, the main problem usually lies with the cipher suite rather than the protocol, and all the cipher suites we currently consider good require TLS 1.2 (or, say, QUIC) as a prerequisite. 4. Mixed content message: Instead of "However", the sentence now starts with "Further" so that it still makes sense when the protocol/cipher suite is obsolete (https://crbug.com/434617). 5. The "SHA1 for message authentication" string (for ciphers with a MAC) now displays SHA1 as HMAC-SHA1, to be more suggestive that this a different use of SHA-1 than for cert signatures. (Similarly for other TLS MACs.) Design constraint: In order to make this change as simple as possible, the code logic has not been touched. The string contents have been changed, but all strings keep their identifiers and semantics. Also, these changes are definitely meant as a band-aid. In the medium-long term, the plan is to remove the connection tab from the OIB and offer the information in DevTools. (However, we have yet to decide on a plan to supplant it on mobile.) Test pages: #1: https://sha1.badssl.com/ #2: - DV, no SCT: https://garron.net/ - DV, SCT: https://embed.ct.digicert.com/ - EV, no SCT: https://www.mozilla.org/ - EV, SCT: https://www.bankofamerica.com/ #3: - "modern": https://garron.net/ - "obsolete": https://rc4.badssl.com/ #4: https://mixed.badssl.com/ #5: https://rc4.badssl.com/ Note that this commit roughly coincides with the reintroduction of connection info on Android: - https://crbug.com/425158#c41 - https://chromium.googlesource.com/chromium/src/+/f21c52aeafa701b18ed505347ee0e7a7d07e5d53 Android Chrome users haven't been able to access this information for the last half year, and will see these new strings directly. BUG=461045, 434617, 437466 TEST=Visit the test pages (listed above). Committed: https://crrev.com/46bd40a1b93154cc62dbda84f7f446c47f575cde Cr-Commit-Position: refs/heads/master@{#328502}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Add Chris's suggested changes. #

Total comments: 2

Patch Set 3 : Improve the wording when there are SCT issues. #

Total comments: 5

Patch Set 4 : Change SCTs to plural. #

Total comments: 11

Patch Set 5 : Reduce SCT strings. #

Total comments: 2

Patch Set 6 : Call SHA-1 sigs deprecated instead of outright insecure. #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : Update CT strings based on email discussion. #

Total comments: 1

Patch Set 9 : Change outdated (cipher quites) to obsolete. #

Patch Set 10 : Update unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -20 lines) Patch
M chrome/app/chromium_strings.grd View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 4 chunks +13 lines, -13 lines 0 comments Download
M net/ssl/ssl_cipher_suite_names.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M net/ssl/ssl_cipher_suite_names_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 55 (12 generated)
lgarron
Starting with Enamel folks. Here's a strawman.
5 years, 7 months ago (2015-04-29 02:57:35 UTC) #2
palmer
LGTM, with arguable nits. https://codereview.chromium.org/1109283003/diff/1/chrome/app/chromium_strings.grd File chrome/app/chromium_strings.grd (right): https://codereview.chromium.org/1109283003/diff/1/chrome/app/chromium_strings.grd#newcode614 chrome/app/chromium_strings.grd:614: The certificate chain for this ...
5 years, 7 months ago (2015-04-30 00:30:19 UTC) #4
lgarron
https://codereview.chromium.org/1109283003/diff/1/chrome/app/chromium_strings.grd File chrome/app/chromium_strings.grd (right): https://codereview.chromium.org/1109283003/diff/1/chrome/app/chromium_strings.grd#newcode614 chrome/app/chromium_strings.grd:614: The certificate chain for this website contains at least ...
5 years, 7 months ago (2015-04-30 00:58:32 UTC) #5
palmer
Keeping the change small is a fine trade-off. SGTM.
5 years, 7 months ago (2015-04-30 01:01:50 UTC) #6
lgarron
https://codereview.chromium.org/1109283003/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1109283003/diff/1/chrome/app/generated_resources.grd#newcode9757 chrome/app/generated_resources.grd:9757: + Your connection to <ph name="DOMAIN">$1<ex>www.google.com</ex></ph> is encrypted with ...
5 years, 7 months ago (2015-04-30 01:02:21 UTC) #7
felt
hey lucas, small nit: can you wrap your descriptions to 80char in the future? descriptions ...
5 years, 7 months ago (2015-04-30 02:17:44 UTC) #8
felt
https://codereview.chromium.org/1109283003/diff/40001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1109283003/diff/40001/chrome/app/generated_resources.grd#newcode9709 chrome/app/generated_resources.grd:9709: + The identity of this website has been verified ...
5 years, 7 months ago (2015-04-30 02:22:28 UTC) #9
lgarron
On 2015/04/30 at 02:22:28, felt wrote: > https://codereview.chromium.org/1109283003/diff/40001/chrome/app/generated_resources.grd > File chrome/app/generated_resources.grd (right): > > https://codereview.chromium.org/1109283003/diff/40001/chrome/app/generated_resources.grd#newcode9709 ...
5 years, 7 months ago (2015-04-30 04:50:13 UTC) #10
felt
On 2015/04/30 04:50:13, lgarron wrote: > On 2015/04/30 at 02:22:28, felt wrote: > > > ...
5 years, 7 months ago (2015-04-30 04:56:43 UTC) #11
felt
lgtm, I agree that adding the SCT bit clears it up.
5 years, 7 months ago (2015-04-30 04:58:00 UTC) #12
Ryan Sleevi
Your net changes will get reverted the next time we re-run the script - they ...
5 years, 7 months ago (2015-04-30 05:54:00 UTC) #14
Ryan Sleevi
https://codereview.chromium.org/1109283003/diff/60001/chrome/app/chromium_strings.grd File chrome/app/chromium_strings.grd (right): https://codereview.chromium.org/1109283003/diff/60001/chrome/app/chromium_strings.grd#newcode614 chrome/app/chromium_strings.grd:614: The certificate chain for this website contains at least ...
5 years, 7 months ago (2015-04-30 05:56:33 UTC) #15
Ryan Sleevi
https://codereview.chromium.org/1109283003/diff/60001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (left): https://codereview.chromium.org/1109283003/diff/60001/chrome/app/generated_resources.grd#oldcode9713 chrome/app/generated_resources.grd:9713: </message> This is not technically accurate. A single SCT ...
5 years, 7 months ago (2015-04-30 05:59:55 UTC) #16
lgarron
Thanks for pointing out the regeneration comment, but ssl_cipher_suite_names_generate.go doesn't appear to be in the ...
5 years, 7 months ago (2015-04-30 20:59:08 UTC) #17
Ryan Sleevi
David knows where the go script is located. The go script uses the IANA database ...
5 years, 7 months ago (2015-04-30 21:15:57 UTC) #19
davidben
I'm not sure that Go script even exists anymore. Pretty sure we've just been editing ...
5 years, 7 months ago (2015-04-30 21:26:31 UTC) #20
lgarron
Here are my goals: https://docs.google.com/document/d/1YgavRvC7_6PoOYHjUuKQL1Mlc718z7F1AnTNGrM92W4/edit#heading=h.kldzb7b775ri This is for DevTools, but I'm trying to make a ...
5 years, 7 months ago (2015-04-30 22:48:42 UTC) #21
davidben
https://codereview.chromium.org/1109283003/diff/80001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1109283003/diff/80001/chrome/app/generated_resources.grd#newcode9703 chrome/app/generated_resources.grd:9703: + The identity of this website has been verified ...
5 years, 7 months ago (2015-04-30 23:19:29 UTC) #22
lgarron
rsleevi@: How's the latest version? felt@: linewrap4u!
5 years, 7 months ago (2015-05-01 00:29:11 UTC) #23
lgarron
5 years, 7 months ago (2015-05-01 00:29:25 UTC) #24
Ryan Sleevi
On 2015/05/01 00:29:11, lgarron wrote: > rsleevi@: How's the latest version? Did you forget to ...
5 years, 7 months ago (2015-05-01 00:32:22 UTC) #25
lgarron
Apparently. Patch #5 is up now.
5 years, 7 months ago (2015-05-01 00:35:17 UTC) #26
Ryan Sleevi
Works for me. I left a few more options in case you wanted to revisit ...
5 years, 7 months ago (2015-05-01 01:01:28 UTC) #27
lgarron
I don't know if we've defined them anywhere, but my interpretations of the terms are: ...
5 years, 7 months ago (2015-05-01 04:46:31 UTC) #28
lgarron
I think I've addressed everyone's comments. felt@, palmer@, rsleevi@: Could you take one more look ...
5 years, 7 months ago (2015-05-01 23:12:08 UTC) #30
Ryan Sleevi
https://codereview.chromium.org/1109283003/diff/160001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1109283003/diff/160001/chrome/app/generated_resources.grd#newcode9709 chrome/app/generated_resources.grd:9709: + The identity of this website has been verified ...
5 years, 7 months ago (2015-05-01 23:50:49 UTC) #31
felt
https://codereview.chromium.org/1109283003/diff/160001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1109283003/diff/160001/chrome/app/generated_resources.grd#newcode9709 chrome/app/generated_resources.grd:9709: + The identity of this website has been verified ...
5 years, 7 months ago (2015-05-02 00:00:30 UTC) #32
Ryan Sleevi
On 2015/05/02 00:00:30, felt wrote: > These strings are not perfect, but they are strictly ...
5 years, 7 months ago (2015-05-02 00:02:19 UTC) #33
felt
On 2015/05/02 00:02:19, Ryan Sleevi wrote: > On 2015/05/02 00:00:30, felt wrote: > > These ...
5 years, 7 months ago (2015-05-02 00:04:27 UTC) #34
lgarron
I've updated the strings based on the email with CT folks. There are no more ...
5 years, 7 months ago (2015-05-05 22:18:32 UTC) #35
Ryan Sleevi
lgtm https://codereview.chromium.org/1109283003/diff/180001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1109283003/diff/180001/chrome/app/generated_resources.grd#newcode9757 chrome/app/generated_resources.grd:9757: + Your connection to <ph name="DOMAIN">$1<ex>www.google.com</ex></ph> is encrypted ...
5 years, 7 months ago (2015-05-05 23:21:17 UTC) #36
lgarron
On 2015/05/05 at 23:21:17, rsleevi wrote: > lgtm > > https://codereview.chromium.org/1109283003/diff/180001/chrome/app/generated_resources.grd > File chrome/app/generated_resources.grd (right): ...
5 years, 7 months ago (2015-05-05 23:31:24 UTC) #37
Ryan Sleevi
On 2015/05/05 23:31:24, lgarron wrote: > As I mentioned above, Chrome has not obsoleted them ...
5 years, 7 months ago (2015-05-05 23:37:58 UTC) #38
Ryan Sleevi
On 2015/05/01 04:46:31, lgarron wrote: > I don't know if we've defined them anywhere, but ...
5 years, 7 months ago (2015-05-05 23:40:54 UTC) #39
palmer
LGTM.
5 years, 7 months ago (2015-05-05 23:43:23 UTC) #40
lgarron
On 2015/05/05 at 23:43:23, palmer wrote: > LGTM. Alright, if we don't have a good ...
5 years, 7 months ago (2015-05-06 00:46:47 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1109283003/200001
5 years, 7 months ago (2015-05-06 00:55:58 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1109283003/240001
5 years, 7 months ago (2015-05-06 01:14:21 UTC) #47
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-06 02:18:16 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1109283003/240001
5 years, 7 months ago (2015-05-06 08:05:30 UTC) #52
commit-bot: I haz the power
Committed patchset #10 (id:240001)
5 years, 7 months ago (2015-05-06 08:08:46 UTC) #53
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/46bd40a1b93154cc62dbda84f7f446c47f575cde Cr-Commit-Position: refs/heads/master@{#328502}
5 years, 7 months ago (2015-05-06 08:09:47 UTC) #54
lgarron
5 years, 7 months ago (2015-05-15 23:13:39 UTC) #55
Message was sent while issue was closed.
On 2015/05/06 08:09:47, I haz the power (commit-bot) wrote:
> Patchset 10 (id:??) landed as
> https://crrev.com/46bd40a1b93154cc62dbda84f7f446c47f575cde
> Cr-Commit-Position: refs/heads/master@{#328502}

For the record, this CL missed the Chrome string file. That part landed here:
https://codereview.chromium.org/1131123002/

Powered by Google App Engine
This is Rietveld 408576698