`init` should not change database security rules
See original GitHub issueI have an existing Firebase app that I upgraded to the new console. Then in an empty folder I ran firebase init
and completed the prompts. In the end, I get a database.rules.json file with globally read-write enable rules.
{ ".read": true, ".write": true }
But I actually have configured more restrictive security rules from the old console. Those rules are still present in the new console. I think the init
command should use existing security rules for an app. Please look into this.
Thanks.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Understand Firebase Realtime Database Security Rules
Every read and write request will only be completed if your rules allow it. By default, your rules do not allow anyone access...
Read more >Unable to deploy Firebase rules through Firebase CLI
Firebase Database security rules define how the database server itself ensures that all read/write operations are valid and authorized.
Read more >database rules validation causing Unexpected token in JSON ...
firebase init database --debug shouldn't throw an JSON syntax error. ... Use default file name for Realtime Database security rules ...
Read more >Firebase Security & Rules
Second, you can easily avoid problems with rule cascading by structuring your data according to your permissions structure. Nest your data under high-level ......
Read more >“How-to” Guides - Spring
If you have a specific problem that we do not cover here, you might want to ... your DataSource anywhere one is required,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jobsamuel great ideas here! Could you submit the rollback feature as a separate request?
The pull request has now been merged into Master (see above). @TamalSaha let me know if this addresses concerns that you have, and whether there are unresolved concerns that would warrant another issue.