Firebase-security Questions
Ad
How disallow the updating of certain fields using firestore rules?
I had a specific user role which is only allowed to update certain fields. this is what my firestore rules look like for this particular
How to write security rules of firebase-Realtimedatabase so unauth user can read and write only at my specific nodes
I want to know how we can write firebase realtime database security rules in the way like unauthenticated user can read and write on a specific
Firebase database rules for group-shared data
My webapp, like 99% of apps, has in db a collection of users. i can access user at /user/ so i setup rule to allow every user to access only its
Firebase realtime database rules - Allow multiple user access to list all messages
I would like to give multiple users access to fetch a collection of "messages" they have access to in firebase realtime
Can't deploy anymore into Firebase - "too many rules"
Our project was working great, till today at some point after multiple deployments using terminal, i couldn't deploy any more :
Firebase storage security rules 400 error issue “Permission denied. Could not access bucket ...” (on deployment, whilst working on localhost)
I got an upload file functionality in my application and this is working perfectly fine on localhost. however, when will run
Realtime Database - How to change security rules for checking if username exist
I am trying to check if a username already exist in the database. here is the code i have written for that..
Android Firestore rules custom auth
We are using in out app google sign in but also have function to "skip authentication" for authenticated user we have the following
Firestore Security Rules: hasOnly not working?
I want to update only some fields in the document so i found hasonly function in the documentation
Firestore rules, using short circuit to squeeze out reads
Are these two firestore rules different at all in the number of reads that they spend from my quota? note that iswebadmin() does an
Ad
Firebase security rules, How to authenticate client app, not the users?
As i understand firebase security rules are for authenticating different types of users and provide authorization based on that, but what if my
Firebase Rules: Problem with role based authentication in groups and .where()
I'm trying to secure an app in which users can manage their bands. the users can be part of multiple bands and therefore can have different roles
How to properly implement firestore database rules to prevent update to data when certain field changed?
I am building a nodejs express app and am using firebase as the backend. i am trying to secure my firebase backend, more specifically the
Firestore Security Rules: PERMISSION DENIED when Batching
Consider this simple firestore database structure: 1: firestore structure cities/ city1/
Trouble implementing firebase rules
I'm having issues reading and writing data from my database on the client (my ios app) using the following database rules: //
How to recreate a Firebase Firestore Database, using test mode instead of locked mode
I accidentally chose locked mode when creating a firebase firestore database, and i can't find a way to change it or delete the database.
Firestore rules: How do I allow access to a subcollection depending on a field of the document that contains it?
I am writing a small program in react that manages a league of sorts. the problem i have is how do i allow access (read, write) to the
Problem in adding data through admin.firestore()
My current firestore rules in my project:
How can I set up my firebase rules so only content-owners have read and write to their data?
I have checked the documentation but i am not sure how to apply that rule to my specific data structure, please check how my data is organized and
Firestore rules : check the existence of a value in array
I want to give permission of read and write just to users whom exist in the members group but i don't know why it doesn't work ? this is
Find document ID if the query know two of his fields, firestore rules
I'm trying my best to set up a functionality in my application that will allow people who know a group's login and password to join it.
Ad
Data validation issue Firebase RealTime Database rules
I am trying to make some security rules to allow authenticated users to access (read / write) chats path based on some conditions for
Why am i getting firestore alerts -> Your projects cloud firestore database "default" has insecure rules
I want unlogged users of my reactjs webapp to be able to read only "business profile collection".
Firebase Security Rules to specific Collection?
I have three collections, collect 1 and collection 2 that can only be read by authenticated users. the third collection
Firebase Organizing Membership to a Document
I'm creating an application in firebase that needs ensure that users can only read/write documents/collections that belong to their team. my
Check if auth.id is in resource data map with firestore.rules?
I struggle to find a way to create a rule that allow read if a user is a participant in a document. i have a collection of documents where
firestore security rules request.auth.uid == userId kept returning 'Simulated read denied'
I'm trying to get request.auth.uid == userid to be tested but i'm getting 'simulated read denied'. i checked all of the basic questions
How to use Firestore Security Rules perfectly
I read the documentation and watched the video about this but still not understanding perfectly i mean i know how to write those security
Is there any way to give everyone access to firestore database, but only via app?
I am creating android application with firestore. my app does not require authentication. is there any security rule to allows everyone read &
How to fix security rules for newData on set function
Im working on an ionic app, i would like to send data to my firebase realtime-database as an object and compare the data with something, however
Can't get Firestore Rules get() to work inside a function
Firestore doesn't work well with get inside a function i have this rule service cloud.firestore { match
How does $uid node works on firebase-realtime-database rules?
I'm working on firebase-realtime-database on ionic, i am a bit confuse about how to "read" and "write" inside the $uid node. which i am currently
Ad
Firebase Storage rules that query data from Firestore
I need to check a document's data in firestore to allow someone to view an image in firebase storage. is this possible?
Firestore Rules: Can we access a parent's document wildcare in children rules?
Let the following rules: match /users/{user} { // do not specify any authentication for the read rule - do not specify any delete
Firestore Security Rules - check if field is a valid email address
How can i verify if an incoming field is a valid e-mail? is there a way to use string-functions or anything in firestore security
Cloud Firestore security rules: how to check if property exists?
I need to check is property exists in document in store. allow update, delete: if resource.data.uid; in code above i have error
How can we allow a particular User UID to have only access to a particular collection in Firestore security rules?
I would like to explain my problem with an example ;there is a user having uid [let say: vluaziiv3deifapq5kdzfi1dsx73] should only be given
Firestore rules do not permit claims for signInWithCustomToken user using custom JWT
I'm having a structured set of firestore rules that everything works fine except for custom user claims inside a custom jwt. i'm using
How to check if user with the email entered by user on the login form exists or not in firebase
It's my first time i am working with firestore db. so i have this user class in my app: data class user( val name: string,
How to use wildcards in firebase security rules
I'm trying to use a wildcard in my firebase security rules but it's not working like the online documentation describes.
How can I segregate user data in firebase?
I'm creating an app that has uses a firebase cloud firestore database. the structure seems to be collection/document/fields. i am thinking of
Whats wrong with implementing Firebase security rules in the app itself?
I am new to firebase database and i am having trouble understanding the security rules. example rule 1: { "rules": {
How to design a regex in Firebase?
I can't work out why my regex is matching things it shouldn't when used on firebase to validate usernames. i've tried reading other posts
Ad
FirebaseError: [code=permission-denied]: Missing or insufficient permissions
I have a simple collection reference in a service
Allowing users to read sub collection if User ID is in doccument
Been playing with firebase rules for a while now and i am unable to get my desired result database:
Is there a way to write database rules through Firestore's REST API
I want to initialize a firestore database with a script and so i would like to write to the database rules through a rest api rather than
Declaring a function in Firestore rules
Here is a problem i am facing now with the firestore security rules. first of all here is an example of data structure i have in my
How to check the path in a reference in a security rule?
I want to check that a resource has a reference to a user document when creating it, but i don't need to actually get() the object. is this
how to access the requesting user's data in firestore
In my firestore, i have a boolean field called admin for the user documents in my users collection. when true, that user can read
How to limit (Flutter) string min/max length with security rules in Firebase
I'm using firestore database and i'm now trying to add security rules after building many of the pages without security rules. that was
Check if request.resource.data is a list of strings in Firebase Firestore
How do i check if a field is of type string[] in firestore rules? i have a tags field in a document, which
how to set firebase cloud firestore security rules with firebase authentication
I have created a database cloud firestore. in this database i want anyone to be able to read and write if: request.auth.uid != null
Accessing field in document of Firestore rule is not working
I am writing firestore rules for an android app i'm currently developing. i am having trouble writing security rules. i want to have a collection
Firestore database rule works in simulator, but not in app
I'm building out a react native application and just starting to build out all of the security rules in my firestore database. i have several
Ad
Firestore Rules break if the document path has a comma
So, i am building a multi tenant application which involves multitude of collections and user invitation. since i don't know which user id the
Firebase Security Rules Access newData Node Name
I couldn't find any way to access the name of the data that is being written in firebase rules, which is very critical for me. does firebase
Collection Group permissions for Firestore
I have these rules: match /suuntoappaccesstokens/{username} { allow create: if request.auth.uid != null &&
how to set validation rules to permit document creation only if documents with the same fields are not present with Cloud Firestore
I am trying to use cloud firestore with my android app. so i am storing 3-4 fields . so i ll give an example with cars collection. there is a
How to synchronize Firestore rules and indexes?
I have a firebase project, which uses firestore. i often manually modify security rules and indexes on the firebase console, but i also have local
Firestore: Access documents in collection user has permission to
I have a collection called announcements that i'm using to store data. however each document has a field called "permissions" that contains a
How to hide specific node in firebase realtime database
I have 2 questions related to firebase realtime database. q1) is it possible to hide a certain node from public and only one person have
Firestore auth rule to test reference value in list
I'm trying to create a firestore auth rule that checks the current user against a list of team members in a team document. the members are stored
Firestore Match Rules for looking up data in a document that is in another collection
I am having an issue with firestore rules when the permission is stored in another document in another collection. i haven't been able to find any
Passing custom JWT token to firestore for authentication using flutter
I want to create a rule for my firestore database that will allow users to have access to it based on a custom jwt token that they pass up. my
Cloud Firestore security rules "if exists" not working
I have a simple chat app on cloud firestore with the following security rule to only allow users the ability to send messages in a chat room if
Ad
Getting 'FirebaseError: Missing or insufficient permissions.' from onsnapshot error when user has the correct permissions
I am trying to create a document reference, set up an onsnapshot listener, save the document and then upload a file which will trigger a cloud
Is {path=**} necessary for collection group queries?
I read through the
How to manage Firebase RealtimeDate base Security Rule for Production App
I am new in development. i have a very basic question but i tried to find it on google and did not understand. my question is that. in
Is it possible to load and run script in the src of an html img tag?
I am building an application (not for production, kind of exam) which stores images in firebase storage and i do not know how to protect them
Allow only one document to be created in Firestore, disallow update, edit etc
I'm writing quiz app of sorts using vuejs and firebase firestore. so far i've made everything except this one last part. users are
How to read collection only if UID matches collection name in Firebase Firestore?
I created a collection of user ids for each user and i want to set the database rules to read the collection item only if the user id matches the
How to Escape Characters in String in Firestore Rules?
I'm trying to check if an incoming string is an email, so i wrote the following firestore security rules: service cloud.firestore
Firebase rules, how to allow users to only see their own data
I am trying to get a rule set working to allow users to see there own data... my current rule set is: { "rules": {
Annoying issue regarding indexOn in Firebase rules
I have read practically every stackoverflow answer and none of them worked for my scenario since this is a frequent issue. my xcode console is
Can you control individual properties in firebase realtime database security rules?
I need to control access to individual properties under a user object in the users directory in the firebase rtdb. my current rules are as
Function not found error: Name: [get]. in firestore security rules simulation
Match /userprofile { match /{uid}{ allow get: if isuserloggedin() && !isuserblocked(uid); } when i try
Ad
How to set Firestore security rules? resource.data: Null value error
I need some help making my security rules for firestore work. these are my firestore rules: service cloud.firestore {
How can I make the security rules of my Firebase Realtime Database read cookies?
I'm working with firebase, and recently started to look into the security rules to protect the accounts inside my realtime database. i went out to
Is there a way to only allow the rules of read and write come from a specified url?
I want to make a set of rules, where it would only accept read and writes from a specified url. example, when some code is trying to
Can Firebase functions written with nodejs sdk pass through firestore rules?
We are currently writing crud rest api operations with firebase functions using firbase’s node-js sdk. when writing to firestore db,
How to create a new Firestore user collection directly from Flutter code
I have been able to get firebase authentication to work for google sign in, anonymous sign in and from email and password sign in, including
Setup Firestore User Security Rule
I am new to firestore and i'm trying to setup simple security rules so that only someone who is signed in can create a new database entry and that
How to allow existing users to edit their data only? (Firebase security rules)
I am writing an rsvp application where the user gets onto the site and just enters their name. i want to, if their name matches a record in the
How to set up cloud firestore database to match the rules below?
I am having trouble testing in the cloud firestore simulator. i cant get "write" access when i have the following rules. should my
How can i create a rule that prevent users to add a date that is greater than now
I'm trying to add a rule in my real-time database that would prevent users to insert a date that is bigger than now. the dates that i currently
is it risky to keep firebase firestore & storage security rules (allow read , write = true) for a local application?
Im building a flutter application for managing tasks and storing clients data on firebase firestore but i have no experience with configuring
Firebase Firestone rules with collection group ressource data
I want to delete all students in my firestore database, to do this i used collection group but i had a problem
Ad
Firestore rules: why the caller does not have permission to execute the specified operation?
I have a collection with documents that have the following fields uid: it is the user id of the user who created the document
How do I secure fields on a Firestore document when allowing update?
Using firebase firestore i am storing chat room details in documents containing some data like: roomname roomavatar createdate
making a folder public in Firebase Storage
I need to set a folder public with only read permisions in firebase storage, my security rules are service firebase.storage {
Is 'match /{document=**}' necessary in firebase security
This was my initial firebase security rule: service cloud.firestore { match /databases/{database}/documents { match
Firestore security rules request.query.orderBy not working
Firestore security rule allow list: if request.query.limit <=30 && request.query.orderby == 'date'
Allow unauthorized/unregistered user to read data from firebase
I want to allow unauthorized or unregistered user to read some of my data from firebase that been write by authorized/registered user.
Firestore security rules with functions return unknown error
I have a collection of users: users: useruid: group: "group_1" name: "paul" useruid: group: "group_1"
How to set indexOn rule on firebase with auth.uid variable?
I am trying to set a rule on a node in firebasedatabase, but i get error error saving rules - line 85: key names can't
firebase rules for children but not parent
I am using firebase and want to allow writing on a child but not on parent. i have a collection that is called guests. users can set data
Testing on missing properties in Firebase -> Database -> Rules
In my firebase -> database -> rules editor, i have a match rule for the write op on a course that tests if the status
Firestore rules: maximum of 1000 expressions to evaluate has been reached
I added a new functionality to my application and now i'm getting this error: maximum of 1000 expressions to evaluate has
Ad
Firebase rules display only vip members
I'm trying to display data only for vip users. i use the code below, but every user can saw the data anyway. i want to hide actors data
Firestore security rule - {wildcard} is neither null or not null when getting collection
I have set up a read rule on my firestore, and it works fine when doing a get on a single document by id, but fails with a firebaseerror:
Ad
Blog Categories
Ad