Re:Google Cloud Firestore NoSQL database is in GA
by badestrand on Thursday January 31, 2019 @02:26PM
(#19047877)
How would an automatic system even prevent unwanted deletion of database entries or that users access others' data? Maybe I am lacking imagination but without server-side validation the practical use cases seem very limited.
[ Parent
| on HN ]
Re:Google Cloud Firestore NoSQL database is in GA
by dillondoyle on Thursday January 31, 2019 @02:35PM
(#19047962)
When I last looked at Firebase, it seems like they bake auth into database so in this case a user is limited on what data they can read, like a select where uuid === uuid https://firebase.google.com/docs/database/security/user-secu.... And I assume non-authenticated read requests don't have access to everything...
Re:Google Cloud Firestore NoSQL database is in GA
by badestrand on Thursday January 31, 2019 @02:35PM
(#19047968)
Ah, interesting, so you basically put the server side validation code into the database. And nice, it can even handle authentication.
Re:Google Cloud Firestore NoSQL database is in GA
by jmvoodoo on Thursday January 31, 2019 @02:32PM
(#19047929)
Cloud firestore supports placing rules on the database to prevent access by users that aren't authorized. You can independently control get, write, update, list, etc. The way the rules work can sometimes be irritating, in particular for list queries, but they do work.
In terms of rate limiting the only one I'm aware of is writes to a single record are rate limited. This impacts normal development when making counters that need to be updated, which leads to an odd "sharded counter" model.