PHASE D: TECHNOLOGY ARCHITECTURE (Infrastructure, Platforms, DevOps)
Purpose: Define the infrastructure, cloud platforms, networking, security, and operational run-time for the systems and data.
Inputs:
- Information Systems Architecture (Phase C)
- Current IT infrastructure (on-prem, cloud, hybrid)
- Non-functional requirements (availability, performance, security)
- Regulatory infrastructure requirements (DORA Art. 8, 26–27, backup/recovery)
- Vendor landscape (hyperscalers, SaaS, open-source)
Key Deliverables:
1. Infrastructure Reference Architecture
Current State (On-Premises):
Data Center (Zurich)
├─ Firewall (Palo Alto Networks)
├─ Load Balancer (F5 BIG-IP)
├─ Web Servers (Oracle Linux, Apache)
├─ App Servers (Java 8, Tomcat)
├─ Database (Oracle 11g, 6TB SAN storage)
├─ Backup (Commvault, daily to NAS)
└─ Network (10Gbps leased line to ISP)
Problems:
- Single point of failure (one DC)
- EOL database (security patches end 2023)
- Manual scaling (weeks of procurement)
- No auto-failover (RTO = 4 hours, unacceptable for banking)
- Vendor lock-in (Oracle licensing ≈ CHF 200k/year)Target redesigned (2026-06). The earlier target ran the entire bank on one provider with D1 (SQLite) as the production core — buildable, but not credible best-in-class and the highest concentration risk under DORA. The redesigned target below applies per-workload sovereignty tiering (two gates: SEAL floor + DORA exit/concentration), a bank-grade PostgreSQL-compatible core, EU-/CH-resident keys, and Cloudflare demoted to edge-only. Full analysis, provider matrix and per-workload map: Cloud Infrastructure Research and
ADR-011–ADR-016. D1/SQLite is retained only as the mock/reference store (ADR-001).
Target State (Per-Workload Sovereign Architecture):
┌──────────────────────────────┐ ┌──────────────────────────────┐
│ EDGE — Cloudflare (edge-only)│ │ SOVEREIGN PRIMARY (CH / EU) │
│ Regional Services, EU-pinned │ │ Swisscom / STACKIT / OVHcloud │
├──────────────────────────────┤ │ (SEAL-3) │
│ DDoS (L3/L4) + WAF (L7) │ ├──────────────────────────────┤
│ Keyless SSL (TLS keys on │ │ Kubernetes + Terraform IaC │
│ AIB HSM, never on edge) │ │ Core DB: PostgreSQL-wire │
│ CDN / rate limiting │──▶│ (CockroachDB / managed PG) │
│ NO plaintext bank data │ │ RPO 5m / RTO 15m │
└──────────────────────────────┘ │ Audit ledger: PG + pgAudit │
▲ │ + SHA-256 chain + WORM │
│ TLS 1.3 │ AML / payments / trading │
│ │ Confidential VMs (SEV-SNP/TDX) │
┌──────────────────────────────┐ │ for PII in-use │
│ KEYS — EU/CH HSM (XKS/HYOK) │◀──│ Private connectivity only │
│ Securosys CloudsHSM (CH+DE) │ │ (PrivateLink/PSC, deny-egress) │
│ keys never leave jurisdiction │ └──────────────────────────────┘
└──────────────────────────────┘ │ async DR (RPO sec)
▲ ▼
┌──────────────────────────────┐ ┌──────────────────────────────┐
│ HYPERSCALER-EU (non-CIF) │ │ SOVEREIGN SECONDARY (CH/EU) │
│ Zurich / Frankfurt region │ │ 2nd site, near-sync replica │
├──────────────────────────────┤ │ 3-2-1-1-0 immutable backup │
│ Analytics / MIS (de-identified│ │ ransomware-survivable │
│ Burst AI (no PII in prompts) │ └──────────────────────────────┘
│ Reg-reporting engine (DPM) │
└──────────────────────────────┘
AI gateway: OpenRouter EU (eu.openrouter.ai) + ZDR + PII redaction
Fallback: Mistral / Azure OpenAI EU Data Zone / self-hosted EU GPUKey Infrastructure Decisions (redesigned; see Cloud Infrastructure Research §5):
| Component | Earlier target | Redesigned target | Rationale |
|---|---|---|---|
| Core DB | Cloudflare D1 (SQLite) | PostgreSQL-wire engine (CockroachDB / managed PG) on sovereign primary | Bank-grade transactions, RPO=0–sec / RTO<9s, portable (DORA exit); D1 kept only for the mock (ADR-011) |
| Sovereignty model | Single provider | Per-workload SEAL tiering — SEAL-3 sovereign for client/PII core + audit; hyperscaler-EU for non-CIF | CLOUD-Act + Bankgeheimnis; defensible to FMA (ADR-012) |
| Key management | Provider-held | XKS/HYOK, EU/CH HSM (Securosys CloudsHSM CH+DE) | Keys never leave jurisdiction → Schrems II / CLOUD-Act mitigation (ADR-013) |
| Audit ledger | D1 append-only | PG + pgAudit + SHA-256 chain + Object-Lock WORM | Preserves P5 hash-chain, sovereign, portable; QLDB retired (ADR-015) |
| Edge / WAF | Cloudflare (same as data) | Cloudflare edge-only, Regional Services + Keyless SSL | Decouples edge from data plane → de-risks concentration (ADR-014) |
| Concentration / exit | 100% one provider | Sovereign primary + portable 2nd source (K8s + IaC + open engines) | DORA Art. 28–30 + EU Data Act; AWS/Azure/GCP are CTPPs (ADR-014) |
| Cache / queue | Cloudflare KV / Queues | KV/Redis + Kafka on sovereign tier (sanctions lists, FX, events) | Keep low-latency cache; events on the sovereign plane |
| Logging / SIEM | ELK (Hetzner) | OpenSearch/Elastic hot + Object-Lock WORM 10-yr archive (EU) | Immutable retention nobody can shorten |
| AI inference | OpenRouter (single) | OpenRouter EU + ZDR + PII redaction + EU-sovereign fallback | DORA ICT 3rd-party; retained but hardened (ADR-016) |
2. Non-Functional Requirements & SLAs
Availability:
- Target: 99.95% uptime (annual: 21.9 hours allowed downtime)
- RTO (Recovery Time Objective): 15 minutes for critical systems (trading, settlement)
- RPO (Recovery Point Objective): 5 minutes of data loss acceptable; strive for < 1 min
- Measured: Uptime monitoring across 3 geographic zones (Zurich, Frankfurt, Cloudflare edge)
Performance:
- API response time: P50 < 100ms, P95 < 500ms, P99 < 2s
- Database query: P50 < 50ms (indexed), P99 < 200ms
- Settlement query (worst-case): < 5 seconds for full portfolio (10k positions)
- Regulatory report generation: < 30 seconds for COREP C01–C47 (monthly data)
Security:
- Encryption in-transit: TLS 1.3 (minimum), HSTS enabled
- Encryption at-rest: AES-256-GCM for databases, S3 objects
- Authentication: MFA for all human users, mTLS for service-to-service
- Audit: All API calls, DB mutations logged with user/timestamp/action
- Penetration testing: Quarterly (DORA Art. 26–27 TLPT)
- Compliance: Annual SOC 2 Type II audit, PCI-DSS (if processing cards)
Scalability:
- Compute: Auto-scale Kubernetes pods (0–100 replicas per service)
- Database: Cloudflare D1 supports up to 500k concurrent reads, 1k concurrent writes
- Storage: Unlimited (S3/R2); retention policies auto-purge after 7 years
Disaster Recovery Plan:
| Failure Scenario | Detection | Action | RTO | RPO |
|---|---|---|---|---|
| Primary DB unavailable | Health check fails | Failover to DR replica | 30s | 5min |
| Kubernetes cluster down | Heartbeat lost | Spin up secondary cluster | 10min | 1min (Kafka log) |
| Cloudflare network issue | BGP monitoring | Reroute traffic to on-prem | 2min | real-time |
| Data center fire | Physical alert | Activate secondary (Frankfurt) | 15min | 5min |
| Ransomware attack | EDR alert | Restore from immutable / air-gapped backup (3-2-1-1-0) | 2hrs | ≤1h (last clean immutable snapshot) |
3. Security Architecture
Defense Layers:
┌─────────────────────────────────────────────────────────────┐
│ L0: Network Perimeter (Cloudflare) │
│ ├─ DDoS mitigation (automatic, L3/L4) │
│ ├─ WAF (L7 rules, OWASP Top 10, custom logic) │
│ └─ Geo-blocking (allow EEA only, GDPR compliance) │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ L1: API Gateway (Cloudflare Workers) │
│ ├─ TLS 1.3 termination │
│ ├─ OAuth 2.0 / OIDC token validation │
│ ├─ Rate limiting (per user, per API, time-window) │
│ ├─ Request signing (HMAC-SHA256 for C2B integrations) │
│ └─ Audit logging (all requests → Kafka) │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ L2: Application Layer │
│ ├─ Input validation (regex, length, type checks) │
│ ├─ Authorization (RBAC: client, advisor, officer, admin) │
│ ├─ Business logic checks (mandate compliance, limit checks) │
│ ├─ Error handling (no stack traces to client) │
│ └─ Logging (security events, audit trail) │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ L3: Data Layer │
│ ├─ Database encryption (AES-256, key rotation quarterly) │
│ ├─ SQL injection prevention (parameterized queries only) │
│ ├─ Row-level security (client_id always filtered) │
│ ├─ Immutable audit log (append-only, no UPDATE/DELETE) │
│ └─ Data classification (PII, restricted, internal, public) │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ L4: Infrastructure │
│ ├─ Network segmentation (DMZ, app tier, DB tier) │
│ ├─ Firewall rules (least privilege: specific ports/IPs) │
│ ├─ Secrets management (HashiCorp Vault, not in code) │
│ ├─ OS hardening (CIS benchmarks, automated patching) │
│ └─ Host-based intrusion detection (OSQuery, Falco) │
└─────────────────────────────────────────────────────────────┘
↓
┌─────────────────────────────────────────────────────────────┐
│ L5: Vendor/Third-Party Management │
│ ├─ Vendor security assessment (annual audit) │
│ ├─ Data processing agreements (DPA, GDPR compliance) │
│ ├─ Vendor incident notifications (24-hour SLA) │
│ └─ Termination/data retrieval procedures │
└─────────────────────────────────────────────────────────────┘Identity & Access Management:
User Login
↓
OIDC Provider (Keycloak / Auth0)
├─ Username/password (optional, legacy)
├─ Biometric (fingerprint, face)
├─ FIDO2/U2F (security key)
└─ SMS OTP (fallback)
↓
MFA Challenge (TOTP / email / SMS)
↓
Successful Auth
├─ JWT issued (exp: 1 hour)
├─ Refresh token stored (exp: 30 days)
└─ Audit log: login successful
↓
API Request
├─ JWT validated at API Gateway
├─ Claims extracted (user_id, roles, scopes)
├─ RBAC check: is user authorized for this action?
│ Example: can user approve STR? (role: aml_officer)
├─ Row-level check: can user access this client? (client_id in their book)
└─ Request proceeds or 403 Forbidden
Session Timeout
├─ 15 minutes of inactivity (MiFID II Art. 16(7), taping)
├─ Auto-logout (client portal)
└─ Audit log: session ended4. Operations Model & Monitoring
24/7 Network Operations Center (NOC):
| Monitoring Area | Tool | Alert Threshold | Escalation |
|---|---|---|---|
| API Latency | Prometheus | P95 > 500ms | Page on-call engineer |
| Database Lag | CloudFlare Metrics | > 5 min replication | Page DBA |
| Payment Processing | Custom dashboard | > 1 failed settlement | Page Front-Office Lead |
| Regulatory Reporting | Scheduled job monitor | COREP job fails | Page Chief Risk Officer |
| ICT Incident | EDR + Falco | Suspicious process | Page Security Officer (4h SLA, DORA Art. 17) |
| Data Quality | Soda / Great Expectations | Completeness < 95% | Page Data Steward |
Incident Response:
Incident Detected (alert fires)
↓
NOC Triage (< 15 min)
├─ Classify: Critical (trading down), Major (slow API), Minor (log spike)
├─ Assign to on-call engineer
└─ Initiate incident channel (Slack)
↓
Investigation & Mitigation (ongoing)
├─ Pull logs (ELK), metrics (Prometheus), traces (Jaeger)
├─ Identify root cause
├─ Apply fix (rollback, config change, scaling)
└─ Verify resolution
↓
If Major/Critical → FMA Notification
├─ DORA Art. 17: initial notification within 4 hours
├─ Intermediate: within 72 hours
└─ Final report: within 1 month
↓
Post-Mortem (within 24 hours)
├─ Timeline of events
├─ Root cause analysis
├─ Preventive actions
└─ Audit log entry (immutable)Roles:
- Chief Technology Officer, Infrastructure Architect, Security Architect, DevOps Engineer, Database Administrator, Network Operations Manager
Baseline → Target → Gap (Technology)
| Component | Baseline (AS-IS) | Target | Gap | Disposition | Roadmap |
|---|---|---|---|---|---|
| Compute / core DB | On-prem app servers + Oracle | Sovereign primary (CH/EU SEAL-3), K8s + PostgreSQL-wire engine; Cloudflare edge-only | Per-workload sovereign model | Replace | Wave 1–2 |
| Sovereignty tiering | None | Two-gate (SEAL floor + DORA exit) per workload | CLOUD-Act / Bankgeheimnis controls | New | Wave 1 |
| Key management | Provider/at-rest only | XKS/HYOK, EU/CH HSM (keys never leave jurisdiction) | CLOUD-Act resistance | New | Wave 1–2 |
| Concentration / exit | Single provider | Sovereign primary + portable 2nd source (K8s+IaC+open engines) | DORA Art. 28–30 exit-ability | New | Wave 2 |
| Encryption | Partial | TLS 1.3 in transit, AES-256 at rest | Full coverage | New | Wave 1 |
| Availability | Best-effort | 99.95% | SLA + redundancy | New | Wave 1–3 |
| RTO / RPO | ~4h / unclear | 15 min / 5 min | DR design + tests | New | Wave 3 |
| Backups | NAS, untested | ≥3 geo replicas, quarterly test | DORA Art. 22 compliance | New | Wave 1 |
| ICT incident mgmt | Ad hoc | DORA 4h/72h/1m + register | Process + tooling | New | Wave 1 |
| Monitoring | Fragmented | Prometheus/Grafana/ELK + alerts | Unified observability | New | Wave 1 |
| IAM | Basic | OIDC + MFA + RBAC | Privileged-access MFA | New | Wave 1 |
Artifacts:
- Infrastructure reference architecture — C4 Container / technology view in Diagrams (compute, storage, network)
- Disaster recovery — RTO/RPO targets, runbooks, secondary site (documented in this phase)
- Security architecture — defense layers, encryption, IAM, audit (documented in this phase)
- Non-functional requirements — availability, performance, scalability SLAs (documented in this phase)
- Monitoring strategy — metrics, alerts, escalation (documented in this phase)
- Incident response — severity, response steps, FMA notification (/artifacts/governance/aib-incident-response-charter, PROC-010)
Approval Gate:
- Infrastructure architecture approved by CTO + Chief Architect
- Security architecture reviewed by Chief Information Security Officer (CISO)
- Disaster recovery plan tested and approved by Chief Risk Officer (annual test)
- Monitoring/alerting configured and validated by NOC Manager