News for hackers. Stuff that matters.
Re:DotCloud.js - Access Cloud Services from the Browser by ww520 on Friday June 08, 2012 @06:40PM (#4086481)
I've looked at the client-side cloud API from time to time and I'm never comfortable with embedding my key/secret credential in the Javascript code. Anyone having access to the client code in the browser, which is everyone, will have access to my secret credential.

If anyone has an idea to deal with this, please elaborate.

Re:DotCloud.js - Access Cloud Services from the Browser by joffreyf on Monday June 11, 2012 @03:27PM (#4096388)
Hi, I'm one of the developers who's been working on this project at dotCloud, and more specifically on the twitter service. The example you're citing shows what I figured was the shortest way to try out the twitter API integration. And you're absolutely right for saying that as soon as your app goes public, it sucks.

This is why this call only has to be made one time ; the key and secret are then securely persisted into the database and the consumer secret can be ommitted in all subsequent calls. Alternatively, we also provide an API endpoint that you can just curl to provide the consumer key/secret. Our "detailed" documentation (http://js.dotcloud.com/doc.html#c4) is more thorough on that matter.

Hope that answers your question!

Edit: sorry for the late response, happened to be out of town for the last three days. Bad timing. :(

Re:DotCloud.js - Access Cloud Services from the Browser by clintjhill on Friday June 08, 2012 @09:37PM (#4086895)
I've thought about this too. For me it's a matter of what somebody really "gets" with those keys. If I'm compromised by someone whose taken my keys and programmed a script against my service are they stealing anything? Well if I've applied some form of ACL and provided some secondary authentication against data they shouldn't be able to query I should be Ok.

Likewise with user accounts. If they take my keys, and somehow get someones password they'd have the same access they would otherwise have through the GUI. If I put user passwords into the code, well yeah that's totally bad on me.

I don't know. I'm not a security expert, however I've not been able to catch a problem with this. I'd love to know better.

Re:DotCloud.js - Access Cloud Services from the Browser by joffreyf on Monday June 11, 2012 @03:40PM (#4096470)
I guess one of the most basic problems that could occur is someone using your keys to make unauthenticated requests and exhaust your rate limit.
Re:DotCloud.js - Access Cloud Services from the Browser by nodesocket on Friday June 08, 2012 @12:34PM (#4084966)
Another entry into this space. Others include:

Meteor - http://www.meteor.com/ FireBase - http://www.firebase.com Parse - https://parse.com/docs/js_guide

Re:DotCloud.js - Access Cloud Services from the Browser by gabrielgrant on Friday June 08, 2012 @12:51PM (#4085057)
I see there being two, somewhat distinct, categories of players: those with a realtime-first, focus (Meteor, Firebase and, now, dotCloud.js) and those that take more of a traditional REST-based approach (Parse, StackMob, Backlift, etc.).

The later have an easier time integrating into existing client-side frameworks (Backbone, Ember, Angular, etc), since those mostly seem to be built with a REST-based model in mind, but it will be interesting to see what patterns emerge to plug push-based updates into these pull-oriented systems. For starters, I suspect we'll need the client-side frameworks to clarify the distinction between the server and client state and the source of changes. Henrik Joreteg's talk at BackboneConf[1] was good overview of this and other problems they've run into.

[1]: https://speakerdeck.com/u/henrikjoreteg/p/real-world-realtim...

Re:DotCloud.js - Access Cloud Services from the Browser by m0th87 on Friday June 08, 2012 @01:06PM (#4085139)
Flattering that you should compare us to them, but this is an early-stage experiment, and we're not quite sure how it'll play out yet!
Re:DotCloud.js - Access Cloud Services from the Browser by bmnick on Friday June 08, 2012 @12:40PM (#4084999)
CloudMine - https://cloudmine.me/ is similar, but more aimed at mobile...
Re:DotCloud.js - Access Cloud Services from the Browser by KaoruAoiShiho on Friday June 08, 2012 @12:35PM (#4084976)
Re:DotCloud.js - Access Cloud Services from the Browser by dsk2012 on Friday June 08, 2012 @06:39PM (#4086479)
What's the security model?
Re:DotCloud.js - Access Cloud Services from the Browser by joffreyf on Monday June 11, 2012 @03:38PM (#4096456)
Hey, this is a very good question. We're currently working out an auth solution that we'll implement directly at the transport level. We haven't figured out every detail yet, but we'll be sure to give more insight on that matter as soon as possible - we understand how important it is as soon as we leave the realm of toy apps.
Re:DotCloud.js - Access Cloud Services from the Browser by trotsky on Friday June 08, 2012 @12:52PM (#4085062)
if you close the video using the (x) on the lightbox the video disappears but you still hear the audio - you have to navigate off the page to silence it.
Re:DotCloud.js - Access Cloud Services from the Browser by m0th87 on Friday June 08, 2012 @12:59PM (#4085090)
What browser / OS are you using? I haven't been able to reproduce it yet.
Re:DotCloud.js - Access Cloud Services from the Browser by pud on Friday June 08, 2012 @02:53PM (#4085633)
I encountered this problem on one of my sites.

The solution was -- rather than using the video player's API to stop or pause the video -- I had to remove the video entirely from the DOM with Jquery.remove()

Re:DotCloud.js - Access Cloud Services from the Browser by trotsky on Friday June 08, 2012 @01:03PM (#4085118)
Chromium 18.0.1025.151 (Developer Build 130497 Linux) Ubuntu 12.04

plugins set to click to play

Re:DotCloud.js - Access Cloud Services from the Browser by KenCochrane on Friday June 08, 2012 @12:59PM (#4085091)
It worked fine for me, what browser you using? I have chrome on a mac.