问题
I am getting a warning email from Firebase Firestore every day saying that:
"any user can read your entire database"
But in my case it's an open database where everyone can read the data. I have set up my security rules like so:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read: if true;
allow write: if request.auth.uid == 'xxxxx';
}
}
}
What is the problem and how do I stop this warning email?
回答1:
You can turn these emails off from the Alerts settings in the Firebase console
To configure alerts, do the following:
Click 🛎 Firebase alerts in the upper-right corner of the Firebase console.
Choose the project that you want to receive email alerts about.
Check relevant boxes to choose whether you'd like alerts in the Firebase Console, over email, or both.
Also see: Configure Email Alerts
来源:https://stackoverflow.com/questions/55388991/stop-firestore-warning-that-everyone-can-read-data