@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 8371a13
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 4, 00:30 UTC

Add production release and rollback runbook

davoodmehraban89 committed Sep 28, 2026 at 15:41 UTC 8371a13937072e5c22f943399a47de8d129ac313
1 file changed +25
docs/PRODUCTION_RUNBOOK.md new
+25
@@ -0,0 +1,25 @@
1 +# Finora 8.1 — Production Runbook
2 +
3 +Release date: 2026-09-28
4 +
5 +## Release source
6 +Production is built from the `main` branch. Every production commit must pass the Quality checks workflow and the JavaScript CodeQL workflow. GitHub Pages is the deployment target.
7 +
8 +## Pre-release gates
9 +1. JavaScript syntax check for every file under `js/`.
10 +2. Product invariant check via `scripts/quality-check.mjs`.
11 +3. CodeQL JavaScript/TypeScript analysis.
12 +4. Supabase security and performance advisors reviewed.
13 +5. Production records checked for supported collections and referential consistency.
14 +
15 +## Rollback
16 +Use the last known-good production commit SHA. Move/revert `main` to a new revert commit based on that SHA rather than deleting production history, then allow GitHub Pages to redeploy. Database schema changes are migration-managed and must not be rolled back by deleting production data.
17 +
18 +## Database safety
19 +RLS remains the server-side authorization boundary. The public Supabase key is a publishable client key; a service-role key must never be committed to this repository. Admin license RPCs perform an internal `is_admin()` authorization check. Do not remove that check.
20 +
21 +## Operational follow-up
22 +Supabase Leaked Password Protection is a dashboard-level Auth control and should be enabled when available for the project. SMTP delivery should use a production provider. Review Supabase advisors after every schema/auth change.
23 +
24 +## Known external limitations
25 +The Taxpayer System API integration is not live in 8.1. Offline PWA caching is not part of 8.1. Physical printer/driver variation cannot be fully covered by repository CI.