Firebase app review, the rules and settings to fix before launch

A Firebase app review always starts with the rules, because Firebase lets the browser talk straight to your database and the rules are the only thing in the way. That design is why Firebase apps are quick to build. It is also why a project left in test mode is open to anyone who finds its ID.
Below are the checks I would run before sharing a Firebase app, each with the console page or file that fixes it. Firebase has reorganised its console, so the paths here use the current groups such as Security and Databases and Storage.
Is your Firebase database still in test mode?
When you create a Firestore or Realtime Database instance or a Storage bucket, the console asks you to pick locked mode or test mode. Firebase’s quickstart says test mode is good for getting started but allows anyone to read and overwrite your data. Its page on insecure rules says that with open rules, anyone who guesses your project ID can steal, modify or delete the data.
Open each product’s Rules tab and read what is there. A rule that allows read and write for everyone, or one that only checks a date, is still open. Firebase labels its own allow all example with a warning that it allows anyone to overwrite your entire database. The Realtime Database docs also say test mode rules left unchanged past the trial period trigger an email and then deny all requests, which takes a working app offline with no warning to your users.
Write rules that match who owns each document, then test them. The Rules Playground on the same tab runs a request and shows whether it was allowed or denied. Try reading another user’s document while signed in as yourself, and reading anything while signed out. For proper testing, the docs point to the Emulator Suite and unit tests.
Storage is easy to forget. Cloud Storage for Firebase needs the Blaze plan, and public rules leave it open to anyone, even people not using your app. Uploaded photos and documents deserve the same owner checks as the database.
Is a public Firebase API key a problem?
No, and hiding it is not the fix. Firebase’s API key docs say these keys do not need to be treated as secrets and it’s safe to include them in your code or configuration files. Your data is protected by Security Rules, and your services by App Check.
What you should do is restrict the key. The docs recommend API restrictions to stop unauthorised use of your project’s quota, never adding the Gemini Developer API to a public key’s allowlist, and tightening the quota on the Identity Toolkit API to limit password guessing. The launch checklist repeats it, restrict your Firebase API keys to only the APIs that need them.
Turn on App Check and then enforce it. App Check rejects requests from clients that cannot prove they are your app, using App Attest or DeviceCheck on Apple, Play Integrity on Android and reCAPTCHA Enterprise on the web. Enforcement is a separate switch under Security, App Check. It can take up to 15 minutes to apply, and older app versions can be blocked if you enforce replay protection straight away, so watch the metrics first.
Why does sign in fail on your Firebase custom domain?
Firebase Authentication only works on domains in its authorized list, under Security, Authentication, Settings, Authorized domains. The email link docs say links must use a domain on that list. For projects created after 28 April 2025, localhost is no longer included by default either.
Add every domain people will use. That means your custom domain, the www version and any second domain you redirect. Then sign in on each one from a private window. A Google sign in popup that closes and does nothing usually points to a missing domain.
Redirect sign in needs extra care in current browsers. Firebase’s redirect best practices page lists fixes needed for redirect sign in to work on Google Chrome M115 and later, because of third party storage blocking. One option is to set authDomain to your own custom domain. Test sign in on Safari and on a phone browser as well as Chrome.
Do your Firebase auth emails look like your brand?
Firebase’s launch checklist asks you to customise the Authentication email domain and sender before launch. Under Security, Authentication, Templates you can change the sender name, the sender address, the reply to address and the subject. Firebase’s help page says the message body can only be edited for password reset emails.
Use your own domain for the sender. In Templates, edit a template and choose customize domain, add the TXT and CNAME records the console shows, and allow up to 24 hours for verification before applying it. If your domain already has an SPF record, merge them, because only one is allowed per domain.
Know the free plan email limits before launch day. Firebase’s limits page gives the Spark plan 1,000 verification emails, 150 password reset emails and 5 email link sign ins a day, against 100,000, 10,000 and 25,000 on Blaze. An app with email link sign in on Spark stops sending after the fifth person that day.
Point action links at your own pages. The customize action URL option in Templates sends every verification and reset link to a page on your site, which you can style to match the app. Email enumeration protection is on by default for projects created from 15 September 2023, so sign in errors no longer reveal which emails have accounts. Keep it on.
Does your Firebase Hosting site handle 404s and old links?
Firebase Hosting shows your own 404.html when a path does not exist, and its default page if you have none. The full configuration docs set out the order. Reserved paths come first, then redirects, static files, rewrites, your custom 404 and finally the default 404. Hosting only applies a rewrite when no file matches.
Add redirects for every URL that changed. In firebase.json, redirects take a 301 or 302 type. cleanUrls drops the .html extension, and trailingSlash set to false removes the trailing slash. Pick one style and stick with it so each page has one address.
Preview channels are public. The docs say anyone with a preview URL can open it, and the preview talks to your real database and services. Channels expire after 7 days by default and can last up to 30. Never send a customer a preview link, and never test payments on one with live keys.
Every project also has free web.app and firebaseapp.com addresses. When you connect a custom domain, Firebase deploys the certificate within 24 hours, and old AAAA records or records pointing at another provider can block it. Share only your own domain once its status says Connected.
What does a Firebase app review find on the launch checklist?
Firebase publishes its own launch checklist, and it is worth reading line by line. It asks you to set up budget alerts, enforce App Check for every service that supports it, configure rules for Firestore, Storage and Realtime Database, restrict API keys and customise the auth email domain and sender.
Budget alerts warn you and nothing more. The billing docs say budget alerts do not pause services. Set them anyway, and set the spend caps the checklist mentions for products such as Cloud Functions.
Turn off what you do not use. The checklist says to disable unused sign in providers, especially anonymous sign in, and to keep separate projects for development, testing and production. A test project that emails real customers is a mess to clean up.
What does a Firebase app review from Roast check?
Roast checks public pages in a browser on desktop, tablet and phone, scores them out of 100. It finds what visitors meet, a sign in button that does nothing on your domain, a missing 404, changed links with no redirect, a slow first screen and a landing page that does not say what the app does. Each finding has a prompt you can paste into an AI tool, and the sample report shows how they look.
It cannot see your Firebase console. A public scan does not read your Security Rules, your database, App Check, the templates in Authentication, the emails themselves or any payment, so the Rules Playground test above is yours to run. The $20 instant app review reads the code from GitHub to identify issues in the code. It does not test the app as a customer.
If an AI builder made your app, the common vibe coded app issues apply too, and a Flutter front end has its own Flutter app review. Get a free score for your Firebase app with no sign up. The full roast is $5.
My pick is to open the Rules tab on every product today. If anything there lets everyone read and write, nothing else on this page matters yet.
Find out what is putting your customers off.
Sources
Firebase Security Rules and keys
- Firebase docs, Avoid insecure rules
- Firebase docs, Cloud Firestore quickstart
- Firebase docs, Get started with Firestore Security Rules
- Firebase docs, Realtime Database get started
- Firebase docs, Cloud Storage get started
- Firebase docs, Rules Playground
- Firebase docs, API keys for Firebase
- Firebase docs, App Check
- Firebase docs, Enable App Check enforcement
Firebase Authentication
- Firebase docs, Email link authentication
- Firebase docs, Redirect sign in best practices
- Firebase docs, Custom email action handlers
- Firebase docs, Custom email domain
- Firebase Help, Customize account management emails
- Firebase docs, Authentication limits
- Google Cloud docs, Email enumeration protection
Firebase Hosting and launch