[DoH] Debounce heuristics and include network ID in heuristics telemetry
Categories
(Firefox :: Security, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox80 | --- | fixed |
People
(Reporter: nhnt11, Assigned: nhnt11)
References
Details
Attachments
(3 files, 1 obsolete file)
We want to look into caching heuristics results using network ID as the key. In order to be able to experiment on this effectively we should debounce heuristics runs as well as include the network ID (or some anonymized form of it if necessary) in the heuristics telemetry event.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Depends on D84647
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
Comment 3•5 years ago
|
||
What is networkId a hash of? Unless it's profile-specific it sounds like a hardware identifier, which we don't want to collect (and would require escalated review).
I think it would be safer to collect a HMAC of the networkId keyed with the clientId so that the networkId doesn't allow us to link distinct clientId's on the same hardware.
See hmac() and hmacLegacy() at https://searchfox.org/mozilla-central/rev/828f2319c0195d7f561ed35533aef6fe183e68e3/services/crypto/modules/utils.js#169.
Comment 4•5 years ago
|
||
(I think knowing hmac(m1, key1), hmac(m2, key2), and both key1 and key2 doesn't allow you to assert that m1 and m2 are the same or not 🤔)
Assignee | ||
Comment 5•5 years ago
|
||
(In reply to Tim Smith 👨🔬 [:tdsmith] from comment #3)
What is networkId a hash of? Unless it's profile-specific it sounds like a hardware identifier, which we don't want to collect (and would require escalated review).
I think it would be safer to collect a HMAC of the networkId keyed with the clientId so that the networkId doesn't allow us to link distinct clientId's on the same hardware.
See hmac() and hmacLegacy() at https://searchfox.org/mozilla-central/rev/828f2319c0195d7f561ed35533aef6fe183e68e3/services/crypto/modules/utils.js#169.
Bah! We are salting the hash but with a fixed set of bytes, so the hashes indeed won't vary profile to profile: https://searchfox.org/mozilla-central/rev/828f2319c0195d7f561ed35533aef6fe183e68e3/netwerk/system/mac/nsNetworkLinkService.mm#747
I'll update the patch with a fix.
Assignee | ||
Comment 6•5 years ago
|
||
Assignee | ||
Comment 8•5 years ago
|
||
Updated the description of network ID in the doc.
Comment 9•5 years ago
|
||
Comment 10•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2bb0f85b7a8e
https://hg.mozilla.org/mozilla-central/rev/a3f770663a9a
Description
•