Treasury & Bank Transfer Management System — سامانه مدیریت خزانه‌داری و حواله‌های بانکی

V7 foundation production HTTP fail-closed security evidence

Scope: source-control foundation guard only, not a final V7 release or a live-banking authorization.

Changes

  • New src/proxy.ts enforces HTTP 403 for operational routes in unprovisioned production, before the application can read accounts or payment data.
  • Public /login and /api/ready are allowed, with explicit readiness still returning not-ready when required configuration is missing.
  • Requests with BANK_ADAPTER_MODE=live are denied at the ingress guard independently of desktop-local configuration. It does not authorize live transfers.
  • Static assets are exempted through narrowly scoped paths; lookalike operational paths do not bypass the gate.
  • Unauthorized responses prevent caching, MIME sniffing and framing.
  • All changes stay on dev/v7-production-failclosed-20261021. Public main is unchanged.

Evidence

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.