Start with who needs the record
I design collections and document relationships around the people who will read and change them. That gives the access rules a concrete job, rather than asking them to compensate for an unclear data model.
Define the permitted operations
- Identify the roles that need each read and write.
- Check the operation against authenticated identity and record context.
- Validate relevant fields instead of relying on the interface to supply honest values.
Test the cases that should be denied
A successful manual read establishes little about other users or operations. I include representative allowed and denied scenarios when checking rules, and keep those checks with the code.
Keep the project context visible
From Strangers is one example of my Firebase-backed work. Access requirements vary by application, so its case study describes the event identity and shared-state context rather than claiming one rule design suits every product.