91 points · by samber · 10y ago · 32 comments
However, I'm quite surprised Netflix went with Intel's ISA-L library for AES-GCM given Intel's perf gains were so very marginal compared to BoringSSL. I would have gone with the library that had more eyeballs on it, and in general I'd give Google the edge over writing solid, secure code than I would Intel.
ISA-L: There will be some more recent results presented next week at IDF: http://myeventagenda.com/sessions/0B9F4191-1C29-408A-8B61-65...
Hacking sendfile:
Note that only the bulk encryption for a limited number of ciphers is done in the kernel. All the TLS setup still happens in the userspace SSL library. So the kernel part is quite small. So it is more like hacking the bulk encryption into the kernel, not the entire library.
I'm afraid that most of the interesting "configuration" is to run patched kernel (async sendfile vs aio + sendfile, tls sendfile vs read/encrypt/send, etc). Of course, I work on the kernel, so I'm biased :)
1) Expose ISPs who limit your bandwidth to the service. 2) Protect against manipulation/degradation of the video stream quality.
I suspect netflix still has limited source IPs. If you see netflix like steady bandwidth from a known netflix IP, pretty sure it would be trivial to throttle.
Netflix does not publish viewership information. But a large ISP could run DPI on Netflix traffic to determine what content is being viewed. And since many ISPs have their own TV product, they would be really interested in that information themselves.
But if Netflix streams at TLSed, then good luck figuring out Archer from The Lust of the Dead.
Not necessarily that hard. TLS won't hide the sizes of the files being downloaded. You may even be able to estimate the size of each segment as they're downloaded, which should give you a pretty accurate fingerprint.
You'd need to spend resources to play each movie with different devices and bandwidths and record the traffic pattern, which raises the bar a fair bit.
Most ISPs, it's just easier to get an OCA in their data center that going through the process of throttling traffic or whatever else they want to do with it.
TLS SNI is still a way that an ISP could identify the traffic when it's routing folks on the net to an OCA in a different AS.
2. the CDN cache in fact is the place where this encryption (for the purpose of TLS) takes place. It therefore does not interfere with the CDN function.
[1] http://money.cnn.com/2013/01/10/technology/social/netflix-vp...
But the stated purpose was more benign: they couldn't add "share" buttons that would let you one-click-post "I'm watching House of Cards on Netflix" because they were supposed to have written consent to release that information.
I am OK with Netflix getting permission to build useful features. And I am absolutely OK with Netflix using my anonymized viewing data to, for example, build better content predictors to make my experience with their service better.
The law protected judges with sketchy video rentals from nosy journalists. It has almost nothing to do with protecting Netflix viewers from ISP and government surveillance. This measure deals with the latter.
A potential downside is that my predictions are less effective because I don't get to find that because you and I both liked Monk and Pink Panther, I would probably also like Psych, or another show you liked.
If this required mailing in a letter to Netflix so they could use your data, it would never work.
I would be fine with it being opt-out, or even opt-in. I would be curious what the response would be if you had to opt in to get useful recommendations.
Can you add a item to the ToS that says: Vendor is allowed to kill customer at any time during contract term?
Maybe that is a bad example, since assisted suicide is basically that.