question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`init` should not change database security rules

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
katowulfcommented, May 23, 2016

@jobsamuel great ideas here! Could you submit the rollback feature as a separate request?

0reactions
laurenzlongcommented, Jun 21, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found