firebase-security Questions

6

On a newly created project, I cannot publish any changes to the Firebase rules. Even simple changes like adding a newline to the end of the file or adding a space. I feel like this may be a bug ...
Jedthus asked 21/11, 2018 at 1:58

3

What is the difference between using allow list; and allow read; in the Firestore access rules? More specifically, what added protection does my data get if I only allow list as opposed to the read...

7

Solved

I have a small, personal Firebase webapp that uses Firebase Database. I want to secure (lock down) this app to any user from a single, specific domain. I want to authenticate with Google. I'm not c...

2

Solved

Here's my database structure: Clients: employee1emailaddress employee2emailaddress Employees: employee1emailaddress employee2emailaddress allClients: client1phonenumber client2phonenumber...

4

Solved

How do I regenerate my Web API key for Google Firebase? I deleted the autogenerated one due to misguided reasons. If it's not deletable, do I need to create just a new App or a new Project?

18

I'm having troubles trying to migrate to new firebase console. I'm doing exactly what is on this link: https://firebase.google.com/support/guides/firebase-web#import_your_project_to_the_firebase_co...
Columbous asked 30/5, 2016 at 13:1

2

Hi I am using Firebase Cloud Storage to develop web application. I would like to set different security rules for setting file from deleting file. It seems that write includes both of them accordin...
Rigobertorigor asked 19/6, 2018 at 2:33

2

Solved

I'd like to create a simple chat app, but I don't want any user to be able to edit the chat-entry list - but I do want any user to be able to append to it. Is this possible?
Commix asked 21/7, 2013 at 18:51

3

Solved

I have an user which has the following custom user claims, customClaims: { role: 'admin' }, How can I access this role property (admin) inside the cloud firestore rules? I'm using the code below,...
Tanjatanjore asked 11/10, 2021 at 18:6

2

Solved

For example, I have these rules: function isValidTimestamp(timestampValue){return request.time==timestampValue;} match /users/{userID}{allow get: if resource.auth != null;allow create:if isVali...
Mosque asked 11/2, 2020 at 23:55

7

Solved

I've set up multiple different indexes on my Firestore development database. Now, I would like to export them into the firestore.indexes.json so that the process of setting up prod environment woul...
Landlordism asked 12/10, 2018 at 11:25

2

Solved

I am using Firestore for my project and have updated my rules as such: rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, w...
Jadeite asked 4/12, 2020 at 17:23

3

Solved

With Firestore Security Rules (version 2), how can I turn a Path object into a String? The entire path as one String, not the individual segments. I'm trying to write a generic function to use in v...
Unparliamentary asked 5/4, 2021 at 16:53

2

Solved

Can you make security rules that runs a query to check if a matching document is found? I'm building a system where a logged in user can vote on specific topics. Every single vote will be saved i...
Averyaveryl asked 14/5, 2019 at 18:38

3

Solved

I'm trying to create a document in Firebase Firestore. I have manually added documents to it in the Web UI, but am unable to do it programmatically. The following is a single HTML file, containing ...
Anglophile asked 2/4, 2021 at 13:16

4

Solved

I'd like to enforce a database schema in Firestore, a noSQL style database that does not require scheme by default. So far, I've looked into using the Firebase Rules system as a possible avenue fo...

3

Solved

I think from searching the web this is not technically possible but I want to ask again in case I'm missing something. I have an app that uses Firebase. Reading and writing is locked down through ...

2

Solved

so I'm getting these Errors out of nowhere, I worked with the code yesterday and everything was fine. This is like a social Media platform and yesterday I could display the Posts, and today I can't...
Opinionative asked 2/9, 2021 at 11:32

7

Solved

I got an email that indicates I was developing in "test mode", but that it left my database completely open to the internet. The default rules I initially accepted look like this: rules_version = ...
Siddra asked 15/11, 2019 at 3:5

5

I started an iOS app using Firebase's Firestore database in test mode, but now that I am done using test mode, how do I convert the database into Production mode?
Milkwhite asked 27/6, 2020 at 20:23

2

This is what i got form the mail from firebase. Firebase Client access to your Realtime Database covid-19-tracker-17659 is expiring in 4 day(s) You chose to start developing in Test Mode, which le...

2

I have a chat app where users can send photos in private or group chats. Each private or group chat has a unique chat id: /images/<chat id>/image.jpg How would one secure the access to this ...
Kingsbury asked 11/12, 2016 at 12:59

6

Solved

I'm learning about Firebase auth and storage in a web app. My idea asks users to login via Firebase and then upload an image. I can see that this is possible from Firebase auth and storage. Howev...

11

Solved

For the life of me, I cannot understand why the following is resulting in a false for allowing writes. Assume my users collection is empty to start, and I am writing a document of the following for...
Enucleate asked 9/1, 2018 at 21:11

2

In Firestore I wan't to allow a read, if the targeted document does not exists. I have tried the following: service cloud.firestore { match /databases/{database}/documents { match /reports/{re...
Immortality asked 17/4, 2018 at 11:31

© 2022 - 2025 — McMap. All rights reserved.