Ad

How To Use Firestore Security Rules Perfectly

I read the documentation and watched the video about this but still not understanding perfectly

I mean I know how to write those security rules but when should I use this? do I have to write out all Security Rules for all the collections and documents? (if do so, it`s gonna be huge)

for instance, I`m making random dating app right now. in my situation, I think I would not be so concerned about security unless I'm concerned with the payment system. If I do not set up security rules for all documents, are all those documents in danger? (unsecured ones)

Ad

Answer

Unless you want anyone on the internet to be able to read and write any document in your database, you will need to use security rules to protect them. Whether or not this is going to be a problem for you, it's impossible to tell. But the possibility exists.

Ad
source: stackoverflow.com
Ad