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

1 # Phase 7 Design — Production Infrastructure & Bank Go-Live
2
3 ## Objective
4 Complete every repository-controlled production and go-live safeguard while keeping real external systems fail-closed until verified evidence exists.
5
6 ## Architecture
7 Provider-neutral evidence gates surround PostgreSQL, identity/MFA, KMS/secrets, WAF/SIEM/alerts, recovery drills and bank connectivity. Bank activation progresses only DISABLED -> SANDBOX -> CERTIFIED -> LIVE. LIVE requires explicit authorization plus verified production credentials and certificate.
8
9 ## Non-negotiable invariants
10 - Tenant isolation is enforced in application context and PostgreSQL RLS, including write checks and tenant-bound foreign keys.
11 - Maker/checker separation and UNKNOWN no-auto-retry remain in force.
12 - Readiness fails closed when production dependencies are absent.
13 - Secrets/private keys are never committed or emitted in telemetry.
14 - External evidence is never inferred from repository tests.
15
16 ## Completion definition
17 Repository-controlled code, tests, migrations, CI, deployment contracts and runbooks pass. Any item requiring real external infrastructure, credentials, certification, money movement or access mutation is explicitly BLOCKED_EXTERNAL until actually performed under authorization.