stop Firestore warning that everyone can read data

别说谁变了你拦得住时间么 提交于 2020-06-23 06:51:30

问题


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:

  1. Click 🛎 Firebase alerts in the upper-right corner of the Firebase console.

  2. Choose the project that you want to receive email alerts about.

  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!