Qrow Saki
Qrow Saki

Reputation: 1052

Firebase keeps reverting firestore rules

I had a rule for accessing firestore that limited it to before 2/20 for development purposes. Since that date passed, I updated the rule. But every few days I get an error saying the client didn't have permission to access firestore. I go into the console, and it says I updated the rules five minutes ago that reverted the access rules back to the 2/20 date.

I'm not changing anything, but it seems to be automatically reverting. What is causing this?enter image description here

Upvotes: 0

Views: 196

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 599216

Could it be that you're automatically deploying these rules when you run firebase deploy?

If so, make sure that either your local rules files is up to date, or that you run firebase deploy with the --only flag and indicate precisely what it needs to deploy.

Upvotes: 1

Related Questions