Launch weekSIGSHIP is on Product Hunt and LiftOff. 50% off every plan with code LAUNCH50 until Sunday 6 December (Solo monthly has its own founder offer): Pro is $74.50 and Business $249.50, paid once.Launch week: 50% off · LAUNCH50See plans →Plans →
  1. Home
  2. The 30 checks
  3. Your Firebase rules let anyone in
🗂️ Your users' data · Fix now (SEV-1)

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

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.

Let your AI tool fix it

Paste this into Lovable, Bolt, Cursor, Replit or Claude Code:

Prompt for your AI tool
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.

See every check · Jargon, explained