- Home
- The 30 checks
- Your Firebase rules let anyone in
Your Firebase rules let anyone in
In plain English: Firebase security rules decide who can read and change your database and files. Yours let anyone in, signed in or not, often because the test-mode rule from setup is still there. Anyone who finds your project can read, change or delete your data.
What happens if you ship it
Anyone can point a script at your Firebase project and read, change or delete the data, signed in or not. Attackers scan for projects left open like this.
How to fix it technical
Let your AI tool fix it
Paste this into Lovable, Bolt, Cursor, Replit or Claude Code:
Fix this problem in my project: Your Firebase rules let anyone in. Replace the rule with a condition on the signed-in user, such as allow read, write: if request.auth != null && request.auth.uid == userId; then deploy it with firebase deploy --only firestore:rules,storage. Change only what this fix needs, then tell me what you changed and anything I have to do myself.Check your app
Run npx sigship in your project folder. It reports this problem as firebase-open-rules, along with 29 other checks. Nothing leaves your computer. New to the terminal?
Questions
What is Firebase test mode?
A starter rule that allows everything until a date (allow read, write: if request.time < timestamp.date(...)), so you can build quickly. It is meant to be replaced before launch.
What should the rules say instead?
Tie each collection to the signed-in user, for example allow read, write: if request.auth != null && request.auth.uid == userId; for documents under /users/{userId}. Then deploy the rules.
Can I keep some data public?
Yes. Read-only public data, such as a product catalogue, is fine. SIGSHIP leaves a public read of one collection alone and reports rules that let anyone write, or read everything.