Closed
Bug 1400913
Opened 8 years ago
Closed 8 years ago
find a way to prefer roots with bug 1364159 or revert bug 1364159
Categories
(Core :: Security: PSM, defect, P1)
Core
Security: PSM
Tracking
()
VERIFIED
FIXED
mozilla57
| Tracking | Status | |
|---|---|---|
| firefox-esr52 | --- | unaffected |
| firefox55 | --- | wontfix |
| firefox56 | --- | wontfix |
| firefox57 | + | fixed |
People
(Reporter: keeler, Assigned: keeler)
References
Details
(Keywords: regression, Whiteboard: [psm-assigned])
Attachments
(1 file)
Bug 1364159 introduced an optimization to not search the user's certificate databases (both the built-in roots module and the cached certificate database, as well as whatever other PKCS#11 modules are loaded) when it can build a verified chain out of the list the server sends. This has the side-effect that if a server sends a number of cross-signed CAs, Firefox will traverse all of them and build a long chain rather than quickly finding a trust anchor.
e.g. server sends EE, Intermediate, CA1-signed-by-CA2, CA2-signed-by-CA3 (where CA1, CA2, and CA3 are all trust anchors) -> Firefox will build EE -> Intermediate -> CA1 -> CA2 -> CA3 (as built-in root).
Since CA1 is a trust anchor, we should be able to find EE -> Intermediate -> CA1 (as built-in root).
We could expand bug 1364159 to look in the built-in roots module as well as the list sent by the server, but at that point this optimization may be too complex for the benefit it provides.
[Tracking Requested - why for this release]: potential performance regression in TLS handshakes
| Comment hidden (mozreview-request) |
Comment 2•8 years ago
|
||
(I think the ship has sailed for 55, possibly 56 as well...)
Comment 3•8 years ago
|
||
| mozreview-review | ||
Comment on attachment 8909428 [details]
bug 1400913 - back out the functionality changes from bug 1364159 (but keep the test)
https://reviewboard.mozilla.org/r/180926/#review186208
I've confirmed that this is a partial backout of https://hg.mozilla.org/mozilla-central/rev/600b709c2634 . I don't see anything dangerous in here.
Attachment #8909428 -
Flags: review?(jjones) → review+
| Assignee | ||
Comment 4•8 years ago
|
||
Thanks! try looks good: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c556fab5e805
Pushed by dkeeler@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/11b46d2109c4
back out the functionality changes from bug 1364159 (but keep the test) r=jcj
Comment 6•8 years ago
|
||
Target Milestone: --- → mozilla57
Updated•8 years ago
|
Updated•8 years ago
|
| Assignee | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment 7•8 years ago
|
||
This had the desired effect of reversing the data change we saw back in May: https://mzl.la/2kLbF9p
There's but one thing left to do: add an alert_emails and bug_numbers field for CERT_VALIDATION_SUCCESS_BY_CA in Histograms.json so that you can receive (and respond to) future alerts without waiting for me to get around to triaging them.
Would you like me to file a separate bug for this work?
Status: RESOLVED → VERIFIED
Flags: needinfo?(dkeeler)
| Assignee | ||
Comment 8•8 years ago
|
||
Sure - thanks!
(although note we do have bug 1369747 already filed)
Flags: needinfo?(dkeeler)
You need to log in
before you can comment on or make changes to this bug.
Description
•