I'm trying to set up access rules for my Firestore Firebase database.
(ala. https://firebase.google.com/docs/firestore/security/get-started)
I want 3 rules :
- No access to all tables, except
- Table
public_data
hasread
access for everyone, and - Table
user_data
hasread, write
for just that authenticated user
(and I guess anyone should be able to create a new user too .. thats a bonus rule)
The rule format seems straight forward enough from the documentation, however using the Simulator available under console.firebase.google.com > Database > Cloud Firestore > (my db) > Rules > Simulator the results are not what I expect.