Integrations › Firebase

    Firebase

    What LetMeCheck checks if your app uses Firebase, and how to lock down your database and storage rules.

    ON THIS PAGE

    Firebase apps talk to the database straight from the browser, so your security rules are the only thing standing between the internet and your data. This page explains what LetMeCheck looks at and what you should check yourself.

    What a website check does#

    A website check can't read your Firebase rules, but it can see what your site gives away:

    • It spots that you use Firebase and reminds you to review your Firestore, Realtime Database and Storage security rules. This is advice and doesn't change your score.
    • It looks for Firebase Admin credentials (a service account private key) in the code your site sends to the browser. Anyone who finds one has full control of your project, so it's a critical problem.
    • It doesn't flag your Firebase web API key. That key is meant to be public, so having it in your site is normal.

    What a full check adds#

    A full check reads your code through read-only GitHub access. It can look for open database rules and keys in your code that a website check can't see. See Quick check vs full check.

    Check your Firebase project yourself#

    1. Open your rules. In the Firebase console, go to Firestore Database, Realtime Database or Storage and open the Rules tab.
    2. Look for open rules. Rules like allow read, write: if true let everyone in. Rules that only check a date are "test mode" and are open until that date.
    3. Require a login and an owner. Rules should check request.auth != null and that the signed-in user owns the data they touch. See Firebase security rules.
    4. Test it. Use the Rules Playground to try a request from a signed-out user. It should be refused.
    5. Check Storage too. Storage has its own rules. Make sure folders holding private files aren't open to everyone.
    WARNING

    If a service account key was ever visible on your site or in your repository, delete that key in the Google Cloud console and create a new one, then update the places that use it.

    Fix it with your AI tool#

    Open the issue in your report, click Copy fix prompt and paste it into your AI tool. See Use fix prompts. After the change, run the check again.

    Last updated

    Need help?

    Stuck on something? Our team will help.

    Contact support →

    What's new?

    New checks, improvements and fixes.

    See the changelog →

    Was this page helpful?