Skip to content

CI: Record previous rules on deploy #995

@jimbojw

Description

@jimbojw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions