Get your Firebase Studio app launched with its rules actually right
Firebase gives you a real back end immediately, and hands you one piece of homework that decides everything: the security rules. Almost every finding in a Firebase app traces back to them, and they are invisible while you are the only user.
Written report in 48 hours. No call needed unless you want one.
- Signing out deleted the customer's saved recordsDangerous
- Card payments pointed at the wrong company's accountDangerous
- 20 tests passing that never ran the code they testedDangerous
- Photos loaded at full size on phonesUntidy
- Sign-up and loginFine
From a real audit, ranked by what each item would do to a customer. Client details removed.
Credit where it is due
Firebase Studio gets you a genuinely capable back end, with real-time data and authentication, in minutes.
What these apps usually run on
These apps usually pair a generated front end with Firebase services: a document database, Firebase Authentication, cloud functions and hosting. The security rules are the single most consequential thing in the project.
What we find in Firebase Studio apps
Four things that stop a launch
- 01
Rules left open from development
Permissive rules put in place to get moving and never tightened, so the database is readable or writable far more widely than intended. This is the first thing we check and it is frequently the whole finding.
- 02
Rules that check sign-in but not ownership
A rule requiring a signed-in user, which sounds right and means any customer can read any other customer's documents. Ownership has to be part of the rule, not an assumption.
- 03
Validation only in the app, not in the rules
Shape and value constraints enforced by the front end while the database accepts anything, so a direct write puts data in a state the app cannot handle.
- 04
Costs that scale with mistakes
Listeners and queries that read far more documents than needed. It is a correctness problem and a billing problem at the same time, and it only shows up with real traffic.
What the audit opens with
Every audit covers the same eight areas. On a Firebase Studio app, these three come first, because this is where the findings usually are.
- 01
Every security rule, exercised from an account that should be refused rather than read as configuration
- 02
Whether writes are validated by the rules or only by the interface
- 03
Read volumes on the busiest queries, for both cost and correctness
Firebase Studio questions, answered
By testing them from the outside rather than reading them. The two failures we find most are rules left permissive from development and rules that require a signed-in user without checking that the document belongs to them, which lets any customer read any other customer's data. An audit exercises each rule from an account that should be refused, which is the only way to be sure.
Usually yes, and rules work is some of the most contained we do: it is configuration plus tests, and your screens do not change. Occasionally the data model makes correct rules impossible to express, because ownership is not recorded anywhere, and then a data change has to come first. The audit says which case you are in.
Often, yes, and the same review usually covers both. Unbounded listeners and queries that read whole collections to display a handful of rows show up as a cost problem and a performance problem at once, and the fix is the same work.
Rarely, and not as a first move. Firebase is a sound production platform running a great many real businesses. Moving does not by itself fix access rules or payment handling, which is where the actual risk is. We would only recommend it where a specific requirement cannot be met where you are.
Send us the Firebase Studio app
Three questions and an email address. An engineer reads it, not a sales team.
Find out what is wrong with it. For nothing.
A written report in 48 hours, ranked by what it would do to a customer, with a fixed price against every fix. Keep the report either way.