https://github.com/pradyuman7/commonfirebasejson
Compilation of the common security rules for Firebase that are often used by people in their projects.
https://github.com/pradyuman7/commonfirebasejson
firebase firebase-json firebase-realtime-database firebase-security json-structure
Last synced: about 1 year ago
JSON representation
Compilation of the common security rules for Firebase that are often used by people in their projects.
- Host: GitHub
- URL: https://github.com/pradyuman7/commonfirebasejson
- Owner: Pradyuman7
- License: mit
- Created: 2018-10-31T11:07:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-27T03:00:08.000Z (over 7 years ago)
- Last Synced: 2025-03-27T16:56:02.849Z (about 1 year ago)
- Topics: firebase, firebase-json, firebase-realtime-database, firebase-security, json-structure
- Size: 22.5 KB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Security: SecurityRules.json
Awesome Lists containing this project
README
# Common Firebase JSON Structures

There are tons of operations that can be made into your firebase database using JSON rules, you can potentially control what your user can change, do or access from your database.
Compilation of the common security rules for Firebase that are often used by people in their projects.
There are numerous rules people use in their projects, this is collection of those which have been used in my projects or in some other.
Currently there are JSON codes for following kind of behavior:
>**No security**
>**Full security**
>**Only Authenticated users can write**
>**Users can only access their own data**
>**Validates user is moderator from different database location**
>**Validates string datatype and length range**
>**Checks presense of child attributes**
>**Validates timestamp is not a future value**
>**Prevents Delete or Update**
>**Prevents only Delete**
>**Prevents only Update**
>**Prevents Create and Delete**
>**Allows update but no push (no new child created)**

# Contribute to this repository, if you happen to have any new JSON structure
1. Fork this repository.
2. Add new JSON structure with small explanation in SecurityRules.json
3. Don't forget to edit ReadMe.md with your new JSON structure
4. Create a new pull request -> Submit the pull request
5. Also do add your profile name and link in the contributors' list
# Current Contributors
- [Pradyuman Dixit](https://github.com/Pradyuman7)