-
Notifications
You must be signed in to change notification settings - Fork 29
CI: Record previous rules on deploy #995
Copy link
Copy link
Open
Description
Currently, the cloudbuild.yaml, contains steps for deploying Deliberate Lab's various backend Firebase services including functions, indexes and rules. For indexes specifically, the deployment step makes note of the existing rules, then compares deployed rules to see if anything has changed.
However, the DeployFirebaseRules step does not perform these logging and checking substeps. As a result, the deployment may overwrite deployed rules that were not specified in code. Firebase offers no historical view for changed rules, so this destructive operation is currently unmitigated.
To mitigate this potential data loss, we should enhance the cloudbuild.yaml to record and diff deployed rules just like it does for indexes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels