News for hackers. Stuff that matters.
Re:Can Firebase/Meteor ever be secure? by shykes on Saturday April 14, 2012 @01:45AM (#3840039)
I think it's perfectly doable - but it will require custom validation to run on the server. I like that Meteor embraces that reality, although their implementation is not complete nor documented.

The Firebase/Parse/Stackmob approach of API-driven ACLs and "zero code in the backend" adequately covers certain common use cases, but completely breaks down when you need something more custom - and, inevitably, you will. Sooner or later these guys will need to run your code on their servers (or their API will expose a dsl for querying/transformation/acl complex enough to be called "code").

I do like that mayop100 mentions they'll "make it easy to hook up your own servers too", although I'm not sure what that means in practice?

Re:Can Firebase/Meteor ever be secure? by mayop100 on Saturday April 14, 2012 @03:47AM (#3840215)
The basic idea for hooking up a server, is that the server will act like any other client, except it will authenticate with an API key and have full read / write access.

This server can perform data validation for you. All you need to do is have a "unvalidated" bucket where clients put their data, and then have your server have callbacks that validate that data and copy it over into the "validated" bucket (where clients do not have write access) when everything checks out.

This would need to be in concert with ACL's to prevent clients from writing in each other's buckets.

Note that you still get the major advantages of Firebase -- simpler code, easy scaling, data accessibility, and real-time, even though you're running a server.

Re:Can Firebase/Meteor ever be secure? by jamroom on Saturday April 14, 2012 @10:45AM (#3840960)
Check out Trestle:

https://www.trestleapp.com/services/custom

we're already running custom NodeJS code for our customers - along with the 14 other API services we have (including our Chain server) you can do a ton. It all is tied in to our ACL's too, so your custom service works the same as any other API service.

We're also super happy to run it on DotCloud too ;)

Re:Can Firebase/Meteor ever be secure? by shykes on Sunday April 15, 2012 @06:59PM (#3845071)
Nice! I'll check it out.