@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 1de6899
Fork 0

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

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

Synced Dec 3, 19:30 UTC

docs: record merged card-free backup code, verified CI and real recovery blockers

davoodmehraban89 committed Oct 14, 2026 at 22:40 UTC 1de689955b20635590f3388602cb133a01c04e07
1 file changed +9
PROJECT_STATE.md
+9
@@ -688,3 +688,12 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
688 - **Rollback:** revert scoped PR, remove optional Python CLI/tests/docs; since no production DB writes or new subscriptions occurred, no DB rollback is needed. Quality/Security CI and merge **PENDING**.
689
690 - **Safety correction before final CI:** backup process now catches interruption for ciphertext/manifest cleanup and consumes `pg_restore` stderr asynchronously to avoid pipe deadlock during failures. Reverified **7/7 local synthetic tests PASS** on exact new script blob `f38d6778d355818588e3b59113781bce2d4e6b8e`; GitHub quality/security remain PENDING. No real backup or recovery claim.
691 +
692 +
693 +### 2026-10-14 no-card offline backup merged — code/CI VERIFIED; recovery OPEN
694 +- [PR #143](https://github.com/davoodmehraban89/Factor-easy/pull/143), exact feature head `2138dd89a63a25763d1152800107834572b186d4`, Quality `38620402478` SUCCESS (all disposable DB jobs + full static/DOM job; new offline backup test step PASS), Security `38620402571` SUCCESS. Protected `main` squash merge `ae008ee6b27397513a417ed2e130d89b4d7da0f1` confirmed. Only Python backup CLI/test, documentation, .gitignore and CI workflow changed; no web application runtime, schema, Auth, tenant RLS, license, financial records, Cloudflare account billing or Production credentials changed.
695 +- No-card implementation: PostgreSQL `pg_dump -Fc` streams bytes directly to `age` to an OWNER-held offline folder (no plaintext archive persisted); sidecar SHA-256 manifest; `verify` decrypts in memory and lists archive contents; `restore-test` refuses non-localhost database targets and non-disposable database names. Windows/mobile owner should NEVER share real DB password or age private key in chat, GitHub or files.
696 +- **Truthful acceptance:** 7/7 synthetic local tests PASS and matching GitHub CI contract PASS. Genuine age crypto, production pg_dump, second off-device copy and full PostgreSQL/Supabase restore are **UNEXECUTED**. The authorized desktop remains offline; current connected Supabase integration does not expose production admin. Manual first backup only; unattended scheduler and offsite retention are not enabled. Supabase Storage files/Auth external settings are outside this SQL backup.
697 +- Owner environment: Supabase organization now `Finora – Production`, project `Finora ERP – Production`, project ref `hcsixhqbyuhpshfwqpjx` (matches `js/core.js`). Supabase Free scheduled backup unavailable; Cloudflare R2 activation requires a valid card and was not completed, so this solution uses no paid subscription.
698 +- **Exact next work:** owner powers on authorized Windows computer and brings Desktop Commander online; obtain Direct or Session-pooler DB endpoint without disclosing password; locally generate/secure an age identity; install matching PostgreSQL 17 client and age; run first encrypted backup with password entered privately; verify archive, copy to a second device, restore to *empty localhost disposable DB*, independently validate recovered rows/config, then plan time-based Windows Task Scheduler with OS-protected credentials and log rotation. Keep status `PRODUCTION_BACKUP_NOT_RUN / RECOVERY_NOT_VERIFIED` until each test is evidenced.
699 +- Historical continuity from superseded documentation PR #142: [PR #141](https://github.com/davoodmehraban89/Factor-easy/pull/141) head `c33a6a89dccfe2558c4cc77b041ef3910a4e4f77`, Quality `38605198345` SUCCESS, Security `38605198098` SUCCESS, protected main squash `9693b342670915271e3b471cf68da44b2530d99a`. Company-form Save state respects `canWrite()`; lifetime organization license discrepancy still unverified and must not be overridden.