Skip to main content

All Questions

0 votes
0 answers
16 views

Firebase rules work fine in emulator, don't work in the Cloud

The following firestore rules set works in my emulator, but does not work in the Cloud. The isUserAuthenticated returns false, as if the {userId} didn't evaluate correctly. rules_version = '2'; ...
pax's user avatar
  • 1,795
1 vote
0 answers
23 views

Firestore rules to not allow additional queries

getDocs(query(orderBy('createdAt', 'desc'))) with rules, i can enforce a query allow list: if request.query.orderBy.createdAt == "DESC" How do i make it so users cannot apply query to any ...
Ibrahim Ali's user avatar
  • 2,427
0 votes
0 answers
11 views

Firebase read permissions breaking write permissions

I'm trying to write storage rules in firebase. There are 3 levels of user in my app- admin, agent, and client. A client should be able to write to their own 'Request' Admins can read everything Agents ...
Adam James's user avatar
0 votes
0 answers
37 views

10.28.1 - [FirebaseFirestore][I-FST000001] Write at another/pleaseWork failed: Missing or insufficient permissions -> How do I fix this?

Making an app in SwiftUI for iOS. However, when I try to read or write to firebase firestore, I keep receiving an insufficient permissions error. When I try to search up solutions to this error, ...
Varun Vaidya's user avatar
0 votes
1 answer
99 views

Firestore security rule unexpected behaviour of hasAny() method depending on the order

I am trying to use security rules in order to limit what information about other users is able to see one authenticated user, depending on if these users are in the same department or not. I have ...
Aleix Rué's user avatar
0 votes
0 answers
19 views

403 Forbidden Errors in Chrome Extension with Firestore

I'm currently developing a Chrome extension with an associated dashboard, both utilizing Firebase for authentication and Firestore for data storage. I've run into an issue where Firestore data ...
amine's user avatar
  • 33
1 vote
1 answer
35 views

Firebase security rule for users to access other users data

I want my users in my flutter app to be able to access other users recipes if the other user allowed them. I am using Firebase Cloud Firestore as the DB. So if the current user is part of the ...
Rena821's user avatar
  • 333
0 votes
0 answers
20 views

Firestore security rules are not being respected

I'm creating a website with a whitelabel system that I need to limit the access to the firestore collections and documents based on a Role system. The rules are: Users will receive a custom claim ...
Patrick Nogueira's user avatar
0 votes
0 answers
26 views

Firestore Null value error. caused by rules in emulation

I'm trying to get my firestore rules working for certain collections in the emulator, and I have for most of them up until I want the auth'd user to be able to read users that are within the same ...
Silent Sheaf's user avatar
0 votes
0 answers
46 views

Firebase storage security rule: cannot nest firestore queries

I found this weird behavior where using a document field to query another document is not working as expected when setting Firebase storage security rules: rules_version = '2'; service firebase....
exe163's user avatar
  • 1,871
0 votes
1 answer
42 views

How to encounter cloud firestore error despite adding security rules

I am a beginner in Flutter x Firebase and been stuck here for last three days. Pls help me resolve this, and explain the reason as well /Firestore(30190): (25.0.0) [Firestore]: Listen for Query(...
Elle Bishop's user avatar
1 vote
1 answer
35 views

Am I structuring my Firebase Security rules correctly?

I have been trying over and over to restructure my rules in order to get access to the documents with no luck. I have a collection of "networks" with a sub collection of "members." ...
James Dimarco's user avatar
0 votes
1 answer
23 views

Firestore rule denying request which supposed to be allowed

I have this TypeScript React code, for fetching a firestore collection (using react-firebase-hooks): const [membersSnapshot, loading, error] = useCollectionData( query( collection(db, ...
imstuck's user avatar
  • 41
0 votes
1 answer
54 views

Getting cloud_firestore/permission-denied and don't understand why

In my Flutter app I am reading data from a document in the Cloud Firestore as this import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:intl/...
RazerMackham's user avatar
1 vote
2 answers
64 views

How can an attacker will be able to access my cloud firestore database, If I have not setup any cloud firestore security rules

Example: service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write: if true; } } } { "project_info": { "...
Ghost's user avatar
  • 98

15 30 50 per page
1
2 3 4 5
175