I am new to firebase, and am a bit stuck with the rules.
My app is essentially a blog-site. It allows non-logged in to read posts, users, comments. It also allows logged-in and verified users to create a post.
Here are my rules
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read: if true;
allow write: if request.auth.uid != null;
}
}
}
Firebase sends me emails that these are not secure due to "any user can read your entire database". Is there something I am missing? As I want people to be able to read the data without being logged in?