-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tighten Firestore security rules #276
Comments
Describe the bug I think on your end the data is is also organized as follows(?):
At the moment client side we query the by using
From firestore docs Granular operations This is because a collection, especially at the top level, cannot have tighter security without disallowing the
From firestore Basic read/write rules The problem is that when we list a project, "anyone" can theoretically see the project title, description but most importantly the emails of the users associated with that project and their corresponding roles. Expected behavior Ideally we'd want to be able to lock down the project list or restructure the data to be more secure. Additional context looking at the firestore doc Securely query data & Secure data access for users and groups there's another pattern, we can consider where the |
We did need the read write initially for users to be able to create the projects collection.
The |
As alerted by Pietro, in firestore,rules:
match /projects/{document=**} {
allow read, write
}
Allows any authenticated user to read/write to a project.
We need to lock this down to admin users only and check where this rule is in use in the app & rewrite where this would prevent legitimate access.
The text was updated successfully, but these errors were encountered: