Make rules for one branch dependent on another branch.
As I learned to write Firebase Realtime Database Security Rules I had quite a few moments where I had to refactor them or where they suddenly stopped working and I wondered why (hint: I changed my app!).
I focused on finishing code before writing security rules and belatedly realized it would have been easier if I’d just written the rules from the start, picking a beginning point and then building them out as I went along.
The series of posts following this post show how to pick a starting point for your rules and how build them out with dependencies gradually.
Hopefully these posts can serve as a syntactical reference for people new to the Realtime Database Security Rules, too.
Welcome to the Obstructed Blog by Mobile Provenance.
I’ll use this blog to share ideas, tips and tricks that I’ve learned along the way for Firebase, Android, iOS and other technologies.