Change Firebase Security Rules with a Google Cloud Function

Viewed 106

I've been going through this new little series on Firebase Cloud Functions for monitoring and ultimately shutting down your firebase project when spending reaches a limit.

The solution provided is pretty hard core. I had an idea, and I don't think this exists, but wanted to put it out there in case someone has found a solution or one comes along in the future.

Is there a way to change/add/revert to a previous version of your firebase security rules using a cloud function? I'm thinking that this could be a more effective and nuanced kill switch for billing issues.

1 Answers
Related