Skip to content

deploy --only firestore:rules / :indexes silently succeeds on multi-DB #10447

Closed

Description

@Yogaanandd

Bug

firebase deploy --only firestore:rules and firebase deploy --only firestore:indexes exit with code 0 and print "Deploy complete!" but deploy nothing when the project's firebase.json uses the multi-database firestore array config (introduced GA Feb 2024).

The bug also affects programmatic callers: firebaseTools.deploy() returns { results: [], status: 'success' } for these sub-targets.

The non-sub-target form (firebase deploy --only firestore) works correctly and deploys all configured databases' rules and indexes.

Reproduction

firebase.json:

{
  "firestore": [
    { "database": "(default)", "rules": "firestore/firestore.rules", "indexes": "firestore/firestore.indexes.json" },
    { "database": "upsc", "rules": "firestore/upsc.rules", "indexes": "firestore/upsc.indexes.json" }
  ]
}

Edit firestore/firestore.rules (e.g., add // touch).

$ firebase --version
15.10.0

$ firebase deploy --only firestore:rules

✔ Deploy complete!

Console shows no rules version increment. The edit was silently ignored.

$ firebase deploy --only firestore

i  cloud.firestore: checking firestore.rules for compilation errors...
✔ cloud.firestore: rules file firestore.rules compiled successfully
i  firestore: deploying rules...
i  firestore: latest version of firestore.rules already up to date, skipping...
i  firestore: latest version of upsc.rules already up to date, skipping...
✔ Deploy complete!

The plain --only firestore form works.

Expected

firebase deploy --only firestore:rules and firebase deploy --only firestore:indexes should either:

  1. Deploy rules/indexes for all configured databases (consistent with --only firestore), or
  2. Exit non-zero with a clear error message (e.g., "sub-targets :rules and :indexes are not supported with multi-database firestore array config; use --only firestore")

Either resolution is fine. Silent success is the worst-case outcome — it's pure foot-gun for any team that has CI/CD pipelines targeting --only firestore:rules (which is the canonical narrow-deploy form pre-multi-DB).

Environment

  • firebase-tools: 15.10.0
  • Node: 20.x (Cloud Functions Gen 2 runtime)
  • OS: Windows 11 Home (Git Bash + PowerShell tested; same behavior)
  • Firebase project: multi-database (default + secondary), GA Feb 2024 multi-DB feature
  • Repro frequency: 100% (tested across 3 sessions before workaround documented)

Workaround

Use firebase deploy --only firestore (no sub-target). Documented as project-wide rule.

Impact

  • Anyone using firebase-tools v15.10.0 with multi-database firestore array config
  • High because the failure is silent — CI/CD pipelines pass while production rules are unchanged
  • Has caused real-world incidents (rules update pushed twice before realizing the sub-target was no-op)

Related

Happy to provide additional repro detail, deploy-with--debug log, or firebase.json variations if it helps narrow the dispatcher path.

Activity

  1. aalej commented on May 4, 2026

    @aalej
    Contributor

    Hey @Yogaanandd, thanks for the detailed report. It looks like this might be a similar issue to #8114, and looking through or PRs, I think part of #9770 should fix this. I'll check this with our engineering team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions