You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Storage security rules is always overwritten when I call firebase init storage #8170
Have some existing storage security rules on the Firebase console
In CLI, run firebase init storage
The storage.rules will be created from fresh, instead of downloading the latest rules in the console, therefore the next time when I run firebase deploy, all the security rules are overwritten.
[REQUIRED] Steps to reproduce
As mentioned above
[REQUIRED] Expected behavior
This behaviour is different from firestore security rules, where running firebase init firestore, the local file firestore.rules will be a copy of what I have in the console, instead of an empty template.
Hey @fanwgwg, thanks for the detailed report! Let me try to ask our engineering team to see if we could modify the firebase init storage command's logic to first check for an existing Storage security rules in the Firebase project. If the rules exist, download and use them. Otherwise, create a new rules file from the template.
Activity
aalej commentedon Feb 5, 2025
Hey @fanwgwg, thanks for the detailed report! Let me try to ask our engineering team to see if we could modify the
firebase init storagecommand's logic to first check for an existing Storage security rules in the Firebase project. If the rules exist, download and use them. Otherwise, create a new rules file from the template.internal tracking bug: b/394778942
firebase init storagedoes not fetch latest storage rules from project #8425 as a duplicate of this issue