Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
Record two passing rounds of independently hosted production ingress QA with exact evidence and nonfinal scope
davoodmehraban89 committed
Oct 21, 2026 at 08:54 UTC
8f2d71d4c3740c3bdc2b89d650e3854b673b6059
1 file changed
+18
docs/V7_PRODUCTION_HTTP_FAILCLOSED_EVIDENCE.md
new
+18
@@ -0,0 +1,18 @@
1
+# V7 foundation production HTTP fail-closed security evidence
2
+
3
+Scope: **source-control foundation guard only**, not a final V7 release or a live-banking authorization.
4
+
5
+## Changes
6
+- New `src/proxy.ts` enforces HTTP 403 for operational routes in unprovisioned production, before the application can read accounts or payment data.
7
+- Public `/login` and `/api/ready` are allowed, with explicit readiness still returning not-ready when required configuration is missing.
8
+- Requests with `BANK_ADAPTER_MODE=live` are denied at the ingress guard independently of desktop-local configuration. It does not authorize live transfers.
9
+- Static assets are exempted through narrowly scoped paths; lookalike operational paths do not bypass the gate.
10
+- Unauthorized responses prevent caching, MIME sniffing and framing.
11
+- All changes stay on `dev/v7-production-failclosed-20261021`. Public `main` is unchanged.
12
+
13
+## Evidence
14
+- [Initial full Linux branch regression](https://github.com/davoodmehraban89/TreasuryFlow/actions/runs/39548584517): unit, typecheck, lint, Next build, production smoke and real HTTP unauthorized operational routes **PASS**.
15
+- [Separate functional, security and edge-case CI jobs](https://github.com/davoodmehraban89/TreasuryFlow/actions/runs/39548945412): 3 separate hosted runner jobs **PASS**. Security job rejected 39 forged identity/write attempts. Edge job covered 10 unusual path/readiness conditions.
16
+- [Second full three-perspective regression after additional live-bank fail-closed guard](https://github.com/davoodmehraban89/TreasuryFlow/actions/runs/39549202687): functional, security and edge cases **PASS** independently.
17
+
18
+These are three independent **CI test jobs**, not three independent AI reviewing agents. Full V7 functionality, external identity provisioning, finance data migrations, customer Mayan mapping, approved banking UAT and final release authorization are still outside these proofs. No real accounts, live transfers, secrets or production deployment were used.