I stored my portfolio app data using Firestore and firebase storage. There are no user inputs or registration in my app, it's a simple portfolio to show my works. I want any user to be able to read the data coming from my firestore and firebase storage.
My current rules:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read: if true;
}
}
}
The problem i have with this rules is that attackers can fluid my app with requests. I even got warning email says "Because your project does not have strong security rules, anyone can access your entire database. Attackers can read all of your data, and they can drive up your bill."
I do not have any sensitive data stored but i want to prevent additional charges from google. How can i set my Firestore security rules to enable any users to read without auth but prevent attacks?