firebase.json renamed to firebase-testing.json That way the file is not automatically recognised by firebase CLI and therefore we avoid someone accidentally using the insecure "testing" rules for production
rename firestore.rules to firestore-testing.rules and specify to indicate that it contains rules not intended for production
Testing
verify that the commends work correctly for every environment
Before
firebase CLI by default was deploying with insecure firestore rules, unless explicitly pointing to production config file
After
firebase CLI requires to specify whether to use production or testing config (and therefore firestore rules). If not specified firebase CLI commends will fail
What was done
firebase.json
renamed tofirebase-testing.json
That way the file is not automatically recognised by firebase CLI and therefore we avoid someone accidentally using the insecure "testing" rules for productionfirestore.rules
tofirestore-testing.rules
and specify to indicate that it contains rules not intended for productionTesting
Before
After