@davoodmehraban89 / Factor-easy / commits / db29f05
Fork 0

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

Record approved recovery backend activation and dashboard access prerequisite

davoodmehraban89 committed Oct 25, 2026 at 13:39 UTC db29f05e76b918dd491591cd5a3718a27ffa0542
2 files changed +18
PROJECT_STATE.md
+8
@@ -96,3 +96,11 @@
96 - **Activation and next work:** concrete backend-first deployment, exact redirect allowlist and standard ConfirmationURL email-template requirements are in `docs/PASSWORD_RECOVERY_ACTIVATION_2026-10-25.md`. Publish this scoped branch/PR and verify its exact remote head Quality, Security and three disposable-DB jobs; maintain SHA/job evidence in the PR description. Production Edge deployment/Auth settings and merge/Pages activation remain pending the separate owner approval required by the boundary above. No real mail/password/financial write, SQL/migration, new dependency, RLS/role/grant change or production deployment occurred. **NOT VERIFIED:** current SMTP/template/redirect settings, real email delivery/password acceptance, owner-ISP/login, physical printing and production two-user behavior. Earlier actual-account settings QA stays inconclusive in draft178 (its exact-head Quality40158541584/Security40158541530 passed); navigation174 and PhaseB remain separate/unstarted.
97 - **Published/reviewed checkpoint:** draft [PR179](https://github.com/davoodmehraban89/Factor-easy/pull/179), exact implementation head `6d521a79fb012a0838f477acec2415793e19e555`, tested/published tree `2fb5c647239bb97fc005abe8fb84f1ec17b2bb5e`. Exact-head Quality **40215540215 SUCCESS**: remote job121235764325 log confirms **175/175 Chromium PASS (3.4m)**, Golden and45/45 server cases; disposable C8 job121235764055, identity121235764263 and D1 job121235764334 all SUCCESS. Security **40215540124 SUCCESS**, including CodeQL121235763807 and release-safety121235763548; dependency review SKIPPED under the existing workflow's DEPENDENCY_GRAPH_ENABLED opt-in condition; this PR adds no dependency. Subsequent changes only record this evidence and complete the plan; latest exact PR-head SHA/check results remain in the PR description and must pass before release.
98 - **Production recheck/hold:** read-only function metadata still shows admin-user-management ACTIVE v3 with verify_jwt=true. No deployment, real recipient request, password operation, Auth configuration or production SQL occurred. Public JWKS metadata was read without session credentials; current function settings are preserved. Next action is owner approval for backend/Auth activation described in the activation document, followed by protected merge/Pages and separately authorized real-account email/password acceptance. Do not merge the UI before activating its backend. Main remains `ce32b0b52d974c2316b45b64a8166936f5a8d01e`; other drafts/issues/phases remain as recorded above.
99 +
100 +### 2026-10-25 — Owner-approved recovery activation and release (in progress)
101 +- Owner explicitly answered «تایید میکنم» to the concrete request to deploy the recovery function, apply necessary Auth email callback settings and merge/release PR179. This removes the earlier activation hold for those exact actions; do not ask the same permission again. It does not authorize schema/RLS/role/grant changes, real customer password mutation or sending unsolicited recovery email to an unspecified recipient.
102 +- Preflight baseline: PR179 head506df0eafd4ac8520a7fe4d7ea3668f18a0d1949 / tree5fb8266dd6a60a4ed183a9283694fb39531f5e70; latest exact-head Quality40216257489 and Security40216257491 passed (175 Chromium,45 server cases, Golden, all three disposable DB jobs, CodeQL/release-safety). Fresh remote/function/configuration checks precede deployment. Backend and exact Auth callback/template verification precede protected merge; Pages must deploy the same gated main SHA. No direct-password admin action is reintroduced.
103 +- Connected Supabase tools expose function deployment but no Auth-config getter/setter. Managed runtime currently reports no configured credentials/secrets; use a legitimate existing authenticated admin browser or configured identity if available, without extracting secrets. Preserve current SMTP/Google/OTP settings and redirect entries, add only the exact recovery callback if missing, and retain a standard ConfirmationURL recovery template. If management access is missing, finish independent authorized work and request only that missing secure access; do not claim Auth settings or real delivery verified.
104 +- **Backend activation executed under the new approval:** fresh source readback confirmed previous ACTIVE v3 exactly matched main's reviewed original file; rollback copy `/tmp/finora-admin-user-management-v3-activation-backup.json` is outside git. Deployed both exact PR179 head506df0 files as **admin-user-management ACTIVE v4**, preserving verify_jwt=true. Provider readback matches both uploaded source files byte-for-byte. Live credential-free probes: canonical-origin OPTIONS204/no-store, foreign-origin OPTIONS403, missing-bearer POST401. These prove deployment/CORS/gateway rejection, not authorized email delivery. Re-ran45/45 offline handler tests and existing admin provisioning contract PASS. No real email/password/financial/schema/RLS/role/grant operation occurred.
105 +- **Auth settings access:** Supabase connector has no Auth-config API and managed environment has no configured management credential. Owner requested a secure Supabase Dashboard sign-in; setup handoff opened on existing Default profile, separate from the Finora test/work profile. Do not store the handoff URL/token in this repository. Wait for the owner to save before inspecting/changing callback/template settings; keep existing Google/OTP/SMTP entries and no new paid mail service. Protected merge remains deliberately pending this backend-first configuration check, not pending repeated deployment permission.
106 +- **Bounded real-browser integration attempt:** TinyFish run f55d8aa1-0688-4690-b1fc-28042fa5864c completed32s/5steps on the previously confirmed Finora test/work profile. It reported authenticated UI access but could not evaluate native page JavaScript, so the intentionally invalid-UUID SDK probe was NOT EXECUTED (no HTTP status/error evidence). Emails/password/preference changes0. Do not equate reported workspace access with proven JWT/endpoint integration or real settings persistence; no repeated run is warranted for the same tool limitation.
docs/PASSWORD_RECOVERY_ACTIVATION_2026-10-25.md
+10
@@ -65,3 +65,13 @@ revert کنید؛ خطا را با کد طبقه‌بندی‌شده و زمان
65 در PR و `PROJECT_STATE.md` ثبت می‌شود. **NOT VERIFIED:** تنظیمات واقعی SMTP و allowlist،
66 تحویل/پوشهٔ هرزنامه، تغییر رمز واقعی، ورود روی اینترنت مالک، چاپ فیزیکی و رفتار دو
67 کاربر روی Production. هیچ ارسال ایمیل یا تغییر رمز واقعی در مرحلهٔ پیاده‌سازی نیست.
68 +
69 +## سابقهٔ فعال‌سازی ۲۰۲۶/۱۰/۲۵
70 +
71 +مالک انتشار تابع و تنظیمات Auth لازم و ادغام/انتشار سایت را صریحاً تأیید کرد.
72 +تابع `admin-user-management` از نسخهٔ۳ به **ACTIVE v4** منتشر شد؛ اعتبارسنجی JWT
73 +روشن ماند و بازخوانی هر دو فایل با PR یکسان بود. آزمون زندهٔ بدون گیرنده:
74 +OPTIONS مجاز۲۰۴، مبدأ غیرمجاز۴۰۳ و POST بدون نشست۴۰۱. هیچ ایمیل یا تغییر رمز واقعی
75 +انجام نشد. تنظیمات Auth هنوز بررسی نشده‌اند: اتصال فعلی ابزار تنظیمات ندارد و
76 +ورود امن داشبورد برای مالک آماده شده است. پیش از ادغام UI، ذخیرهٔ ورود و بررسی
77 +نشانی بازگشت و قالب لازم است؛ اجازهٔ انتشار قبلاً گرفته شده و تکرار نمی‌شود.