All Questions
70
questions
0
votes
0
answers
10
views
Firestore rules strange behavior
I'm currently building a web app with Firebase Firestore and trying to create a permission system.
My data is structured as follows:
projects (collection)
[projectId] (document)
allowRead (value)
...
0
votes
0
answers
42
views
Understanding why Firestore listen method sends two requests when using rules and a get function
I'm currently facing an issue with Firestore where the listen method in combination with the get function is sending two requests instead of one. Let me explain my setup and the rules I've defined:
I ...
1
vote
2
answers
303
views
firestore how to check for the doc owner before write?
How do I check the document owner before allow for the user the create ?
steps:
the document is already created by the same owner.
after that the same owner will try to create property and value ...
0
votes
3
answers
143
views
Firebase rules for authenticated users and web app (api)
I couldn't find any information about this!
So, I have a web app in react and use the firebase config settings and want to secure the firebase rules.
I have these:
build
devices
templates
users
I used ...
1
vote
0
answers
96
views
Firebase storage rules size and storage
I want stoarage rules that apply to all reads and writes:
1) Valid if user is authorized
2) Valid if the file is less than 5 mb
So i have the following rules
rules_version = '2';
service firebase....
0
votes
1
answer
249
views
Firebase security rules for mobile apps
I am bit confused about firebase security rules. Do we need to write firebase security rules only for websites or should we write it for mobile apps also. I am trying to build a mobile app. Do I need ...
3
votes
2
answers
1k
views
Firebase error saving rules - Line 10: String can't contain ".", "#", "$", "/", "[", or "]"
I follow the guide (https://firebase.google.com/docs/rules/insecure-rules#database) and try to change the rules.
But I have an error
Can anyone expalain what is wrong?
0
votes
0
answers
16
views
Definition of a Firebase rule
Despite my research on the web, I cannot figure out how to set up a firebase rule so that access to my data is only possible for users of my web application.
Can someone help me?
Thank you
0
votes
1
answer
19
views
How to set Firebase rules to allow only listed userid in a db to r/w in another database
How to set Firebase rules to allow only listed userid in a db (or a key or node or subset of a db) to r/w in another key/subset of the same database?
This link only mentioned of w/r of the same node/...
0
votes
1
answer
110
views
Recommend Firebase security rules doesn't work s
I've been receiving emails from Firebase saying my secure rules are secured, so I had to find how is the right way to make them secured.
Not recommended:
// Allow read/write access to all users under ...
1
vote
1
answer
666
views
Allow Create And Read in all the cases But don't allow update if the data does not exist in firebase real time database
I'm working on a chat module using fiebase , I have a structure as below .
My main node is mychatexperiment
inside it I have another node ChatListing and some other chat keys.
Today I set up ...
1
vote
0
answers
342
views
Cloud Firestore Authentication not working using PHP
I am new to firebase. I am testing a web application using the Firestore Database and PHP. https://github.com/googleapis/google-cloud-php-firestore. I have created a database "cities" and ...
0
votes
0
answers
139
views
Firestore query for a rule with "hasOnly"
I have a Firestore Rule, where if the "businesses" array of the custom claim token of a user auth contains all the items in "businessIds" field of a document (which is an array), ...
0
votes
1
answer
551
views
Firebase Flutter : Cloud Firestore database has insecure rules
Firebase keep telling me
We've detected the following issue(s) with your security rules:
any user can read your entire database
I have changed the rules but that rules doesn’t work in my app because ...