FilledStacks / FilledStacks/boxtout
Can Firebase Security Rules be manages from separate files in Source Control
- Dominant language
- Dart
- Stars
- 412
- Forks
- 155
- PR merge metrics
- No merged PRs in 30d
Description
This question came up during technical planning. I wanted each of the 5 backend groups of serverless functions to manage their own firebase rules. This would make it more maintainable over the long run. This ticket is here in case anyone following the project want to help me answer or do the experiment for me. The way we would do the experiment is as follows.
1. Setup two firebase folders on your machine connected to the same Firebase project.
2. Init the security rules and make them different in both of those folders
3. Deploy project ones rules, check that they are there.
4. Deploy project two's rules, check if projects ones rules are still available.
This is most likely going to fail and the rules will be replaced by the second deploy. The next step of the experiment is to spend maximum an hour to see if there's a way that we can setup an npm script that will get all the rules from different folders, combine it and then deploy that. I'm not skilled in the npm management / setup but when I get to this point I'll probably check for it.
If that's not possible then we'll most likely have to maintain all the firebase security rules in one massive file which will be a maintenance nightmare. Comments will become our friend in there with clear separation between the groups and their functions.
If anyone will take this on please comment in here and i'll change the label to in progress, otherwise I'll keep it open until I get to this point.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.