0
votes

I want anyone to be able to access the database and write to it. I know that's not secure, but this is a pretty dummy site where I don't want people to have to create accounts. There is no login. Anytime I set my security for storage to public it lasts for a couple hours and then gets changed back right away. Does firebase not allow this?

service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write;
    }
  }
}
1
in that couple hours, did you do something like deploying using Firebase CLI?jef
I am deploying to hosting via cli- "firebase deploy". I wouldn't think this would be changing the rules of storage?Stephen Phillips
I totally didn't think about rules being bundled in with hosting. Make sense. This is the correct answer!Stephen Phillips

1 Answers

1
votes

The problem maybe is in rules defined in your project directory, it causes conflict with the rules in the Firebase console. Make sure that you also update the rules defined in your project directory.

More info: Deployment Conflicts