Let's take a simple example. We have the /users node, protected by a rule per user. Then we have the /movies node and each user that watched a movie, the app will add the userid to this movie.
- Since users can write to /movies, how can I protect a malicious user from ref.remove() it? I can solve it by adding the movie to the /users/$user and then create a FB function to add it to /movie. Feels strange.
Simply put, how to protect public areas?
- Since an authenticated user can write into his area under /users, how do I set quota to prevent malicious user from consuming all my bandwidth, storage, etc?