Re:WebRTC file sharing broker using Elixir Phoenix
by finnn on Thursday August 13, 2015 @12:21PM
(#10055317)
They says "secure" but it's trusting the website to not deliver malicious JS. Also trusting the numerous third party domains that javascript is included from (and if you block them the entire thing breaks).
Re:WebRTC file sharing broker using Elixir Phoenix
by mike-cardwell on Thursday August 13, 2015 @12:32PM
(#10055389)
Yeah. It's "secure" as long as none of Filecha, Cloudfare, Google, Facebook, jQuery or Akamai get hacked, compromised or coerced.
There's no reason he can't host all of these javascript resources on the same domain, substantially reducing the attack surface area.
I know people like to use CDNs and third party hosted analytics software, but can we at least come to the compromise that if you're going to say your app is "secure" or "private", that you at least attempt to host what you can on your own domain...
[edit] I'm probably being unfair. He makes the code available so you can host it yourself. I'm sure most people who install it will leave the CDNs in place though.
Re:WebRTC file sharing broker using Elixir Phoenix
by finnn on Thursday August 13, 2015 @12:46PM
(#10055488)
You're not being unfair at all, IMO. The instance he hosts says secure, yet it includes lots of 3rd party resources, and of course you're still trusting his server every time you run it.
Re:WebRTC file sharing broker using Elixir Phoenix
by jasonjayr on Thursday August 13, 2015 @01:42PM
(#10055921)
What would it take to get the w3/html5 folks simply add a src-hash="$algo:$value" to any tag that can load remote resources?
Seems like a low-impact way to significantly boot the usefulness + security of CDN's. If the source page (requested over https, and presumedly not MITM'ed already) declares "I want to load that resource over there, and I expect it to hash to this value", then we get all the benefits of caching + trust that it has not been tampered.
Re:WebRTC file sharing broker using Elixir Phoenix
by zabi_rauf on Thursday August 13, 2015 @01:21PM
(#10055764)
Thanks for pointing it out. It is still in development. The reason i was using CDN was because of bandwidth and reusing the cached JS if the user already has that.
What will be the best way to tackle this? If I put all those under one CDN then I guess the bandwidth problem will be solved but I wont be able to reuse the JS that user might already have. At the end of the day I still have to trust the third party JS.
Re:WebRTC file sharing broker using Elixir Phoenix
by e12e on Thursday August 13, 2015 @08:26PM
(#10057991)
The general consensus is that you won't (meaningfully) be able to "reuse the JS that a user might already have" anyway. The idea of well-know-domain.com/well-known-framework-well-known-version-0-1.js being cashed is interesting -- but a) it doesn't appear to work to well in practice (I seem to recall 30% hit rate for the "best case" of jquery-latest on some big CDN) b) It's not that much data anyway.
Lets say you have 500kb of compressed js. If you have 2 million unique visitors, that'll just eat 1TB of bandwidth -- and if you don't screw up your own cache headers -- that'll be that -- it'll be cached.
Re:WebRTC file sharing broker using Elixir Phoenix
by mmcclure on Thursday August 13, 2015 @01:33PM
(#10055857)
P2P apps are certainly the go to Hello World application for WebRTC, but that makes sense considering that it's a P2P API.
Not trying to be a troll, I just see these comments ("X is the new Hello World!" where X is anything from messaging to algorithmic trading) all the time now. At least this use case makes sense for the tools, I suppose.
Re:WebRTC file sharing broker using Elixir Phoenix
by zabi_rauf on Thursday August 13, 2015 @12:09PM
(#10055220)
Yep you can. There was this http://peercdn.com/ that did that and I remember a post on HN where it served the page from other clients but used web sockets instead.
There's no reason he can't host all of these javascript resources on the same domain, substantially reducing the attack surface area.
I know people like to use CDNs and third party hosted analytics software, but can we at least come to the compromise that if you're going to say your app is "secure" or "private", that you at least attempt to host what you can on your own domain...
[edit] I'm probably being unfair. He makes the code available so you can host it yourself. I'm sure most people who install it will leave the CDNs in place though.
Is there any way to initiate transfers between two browsers over WebRTC without the use of a server?
Since you asked: https://github.com/cjb/serverless-webrtc/
Seems like a low-impact way to significantly boot the usefulness + security of CDN's. If the source page (requested over https, and presumedly not MITM'ed already) declares "I want to load that resource over there, and I expect it to hash to this value", then we get all the benefits of caching + trust that it has not been tampered.
Lets say you have 500kb of compressed js. If you have 2 million unique visitors, that'll just eat 1TB of bandwidth -- and if you don't screw up your own cache headers -- that'll be that -- it'll be cached.
Seems like P2P apps are the new Hello World programs of WebRTC applications.
Not trying to be a troll, I just see these comments ("X is the new Hello World!" where X is anything from messaging to algorithmic trading) all the time now. At least this use case makes sense for the tools, I suppose.
https://news.ycombinator.com/item?id=9112717
https://news.ycombinator.com/item?id=9893561
Also your CDN'ing clients could serve different content, giving some of your visitors a random surprise...
https://news.ycombinator.com/item?id=9531265