Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase rules reset by themselves

I cannot find an answer to this in the documentation. The default Firebase rules are:

{
  "rules": {
    ".read": "auth != null",
    ".write": "auth != null"
   }
}

I have edited mine to look like this and saved them:

{
  "rules": {
    "users":{
      ".read": true,
        ".write": "auth != null"
    },
    ".read": "auth != null",
    ".write": "auth != null"
  }
}

Without me doing anything, they randomly reset to the old rules after what seems like 12 hours. Am I missing some kind of persist option here?

like image 361
cheenbabes Avatar asked Jan 17 '17 21:01

cheenbabes


1 Answers

Adding this from the comments so others don't miss it.

It seems most likely that you're deploying a firebase-rules.json as part of running firebase deploy with the Firebase Tools. See this question. I thought there was also a more recent question about it, but I can't find it right now

like image 158
Erich Avatar answered Sep 21 '22 12:09

Erich