LaunchGuard · RULES GENERATOR
Free — no email, no account, nothing uploaded

Answer four questions.
Get secure rules.

The rules your AI builder shipped are probably wide open. Pick your app type, name your collections, and this page writes a secure firestore.rules starter: ownership checks, field allowlists, admin-only status changes, and a deny-all catch-all. Runs entirely in your browser — nothing is uploaded, nothing is stored.

Comma-separated collection names, as they appear in Firestore. The preset changes with your app type — edit it to match your real collections. Names are lowercased and stripped to letters, numbers, _ and -.

A starter, not an audit. It closes the holes AI builders ship most; it does not know your business rules. Review every block, adapt the field lists to your real documents, and run the result through the Rules Checker before deploying.

What the generator puts in — and what it can’t

In every generated file

  • Ownership on every collection — request.auth.uid == the document’s owner, not just “signed in”
  • Client-set ownership pinned — ownerId / authorId / customerId must equal the signed-in user; createdAt must equal request.time
  • Field allowlists — creates and updates list exactly which fields a client may write; role, plan and credits can never be client-set
  • Deny-all catch-all last — anything you forgot to open stays closed

Still yours to do

  • Your real field lists — the generator uses common field names; swap in your actual document fields before deploying
  • Roles via custom claims — the rules check request.auth.token.role; you still set claims with the Admin SDK
  • App Check, secrets, backups — the three holes that live outside the rules file; they are in the free starter’s launch checklist
  • Tests — prove each opening with a rules unit test before it ships; the full LaunchGuard packet includes a test starter

If you chose public read, the Rules Checker will still flag if true on that collection — that is the intended public read, scoped to one collection. Read the flag in context: the question is whether the scope is only that collection.

Rules generated. Now make the whole launch safe.

Start free: the LaunchGuard Free Starter gives you the deny-all lockdown rules, the full 12-holes write-up, and the launch checklist — no email, no account. The full LaunchGuard packet ($79 / $199) adds production rules for all four app archetypes, the 40-question security self-audit, the rules unit-test starter, and the App Check / custom-claims / backups guides.

Get the free starter →  ·  See the full LaunchGuard packet →  ·  Check your rules →