In my iOS application I am using Firebase - Realtime Database, I want to keep track of responses in a global statistic that every user writes. How do I set up the rules so that they are secure and do not get anymore emails?
We've detected the following issue(s) with your security rules: any logged-in user can read your entire database any logged-in user can write to your entire database
{
"rules": {
"records": {
".read": "auth != null",
".write": false,
},
"globalMetrics":{
".read": "auth.uid != null",
".write": "auth.uid != null",
},
"user": {
"$uid": {
".read": "auth != null",
".write": "$uid === auth.uid",
}
},
}
}```