Skip to content

Storage security rules is always overwritten when I call firebase init storage #8170

@fanwgwg

Description

@fanwgwg

[REQUIRED] Environment info

firebase-tools: 13.30.0

Platform: macOS

[REQUIRED] Test case

  1. Have some existing storage security rules on the Firebase console
  2. In CLI, run firebase init storage
  3. 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.

[REQUIRED] Actual behavior

The local rules are created from empty template.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions