The design brief#
“A bank operating in the EU and India wants one data platform for regulatory reporting, risk, fraud analytics, customer insights and GenAI. Today it has three warehouses, a Hadoop lake and hundreds of spreadsheet reports with conflicting numbers. Regulators have criticised its risk data aggregation.”
1. Requirements#
| Area | Requirement |
|---|---|
| Regulatory | BCBS 239 lineage and quality for risk reports; GDPR and DPDP rights; RBI payment data localisation; DORA ICT risk; EU AI Act data governance for high-risk models (credit scoring) |
| Freshness | Fraud features in seconds; risk positions intraday; regulatory reports T+1 |
| Scale | 500 source systems, 5 PB, about 2,000 analysts and data scientists, 50 domain teams |
| Security | Least privilege; no raw PAN or national IDs outside restricted zones; full audit |
| AI | RAG over policies and customer communications with per-user access; feature store for ML |
2. Target architecture#
See the lakehouse data flow. Key decisions:
| Layer | Choice | Why |
|---|---|---|
| Storage | Object storage per region; Apache Iceberg tables | Open, multi-engine, time travel for audit |
| Catalog | One Iceberg REST catalog (for example Polaris or Unity Catalog) per region, federated into an enterprise catalog (DataHub or Collibra) | One policy plane; business glossary across regions |
| Ingestion | Debezium CDC + Kafka for core systems; Kafka Connect Iceberg sink; batch for files | Low latency, low source load, replayable |
| Processing | Spark for batch, Flink for streaming, dbt for SQL transformations | Right tool per workload |
| Serving | Trino or warehouse SQL for BI; Pinot or ClickHouse for real-time dashboards; feature store; vector index | Fit to access pattern |
| Orchestration | Airflow 3 or Dagster with OpenLineage | Lineage emitted automatically |
3. Regional data planes (residency)#
flowchart TB
subgraph IN["India region"]
INS["Indian sources<br/>(UPI, cards, CBS)"] --> INL["IN lakehouse + catalog"]
end
subgraph EU["EU region"]
EUS["EU sources"] --> EUL["EU lakehouse + catalog"]
end
INL -->|"metadata, lineage only"| GC["Global catalog<br/>glossary, lineage, policies"]
EUL -->|"metadata, lineage only"| GC
INL -->|"aggregated, anonymised<br/>group reporting"| GR["Group reporting"]
EUL -->|"aggregated"| GR
- Payment data for India stays in India (RBI localisation). EU personal data stays in the EU unless a transfer mechanism applies.
- Only metadata, lineage and aggregated or anonymised results cross borders.
- The same platform code is deployed to each region through GitOps, with policies as code.
4. Security design#
- Tokenise at ingestion: PAN, Aadhaar/PAN numbers, IBANs and phone numbers are tokenised by a regional token service (HSM-backed) before reaching bronze. Raw values live only in a restricted zone with separate accounts and keys.
- Classification tags are applied automatically (classifiers plus contracts) and inherited through lineage.
- ABAC policies in the catalog:
classification,region,purposeanddomainattributes. Column masks for PII; row filters by legal entity. - Purpose-based access: requests state a purpose (fraud, risk, marketing) checked against consent and legal basis.
- Just-in-time access for restricted data, with approval and a time limit; quarterly recertification.
- Audit: every query logged to the SIEM; anomaly alerts for bulk exports.
- Keys: customer-managed keys per region and per zone; crypto-shredding for erasure in immutable stores.
5. Governance and quality#
- Data products per domain (Payments, Lending, Customer, Risk), each with an ODCS contract, an owner, SLOs and quality rules.
- Quality gates between layers. Critical failures block gold publication and alert the owner.
- Column-level lineage from source to regulatory report (BCBS 239), viewable by auditors.
- Reconciliation of gold risk data against finance ledgers daily, with breaks tracked to closure.
6. AI on the platform#
- Feature store built from gold products, with point-in-time correctness for training.
- RAG: documents are ingested into the catalog with classification. Embeddings are stored in a vector index with the source document ACLs. Retrieval filters by the requesting user’s entitlements.
- Model governance: lineage from datasets to model to decisions. Credit-scoring models are treated as high-risk AI under the EU AI Act, with documentation, bias testing and human oversight.
7. Migration plan#
- Stand up the platform and catalog in one region; onboard 3 high-value domains (risk, payments, customer).
- Rebuild the top 20 regulatory reports on gold products with lineage; run old and new in parallel and reconcile.
- Decommission the warehouses domain by domain; migrate Hadoop tables to Iceberg (in-place metadata migration where possible).
- Roll out self-serve onboarding (templates, contracts, policies) to the remaining domains.
8. Trade-offs#
| Decision | Benefit | Cost |
|---|---|---|
| Regional data planes | Residency compliance | Duplicate platform operations; cross-region analytics only on aggregates |
| Tokenise at ingestion | Most users never see raw PII; smaller audit scope | Token service on the critical path; de-tokenisation workflows |
| Open formats + one catalog | No lock-in, one policy plane | Integration effort across engines |
| Data products with contracts | Accountability, quality upstream | Requires domain teams to staff data roles |
Quick check#
How does the design satisfy RBI data localisation? Indian payment data is ingested and stored in an India-region data plane. Only metadata and aggregated or anonymised results leave the region.
Where is PII tokenised and why? At ingestion, before bronze, so almost all downstream users and systems work with tokens. That reduces breach impact and audit scope.
How is BCBS 239 addressed? Governed gold data products with quality gates, column-level lineage from source to report, owners, and daily reconciliation.
How does RAG respect access rights? Embeddings carry the source documents’ ACLs and classification, and retrieval filters by the requesting user’s entitlements.
Summary#
- Lakehouse on Iceberg with one catalog per region and a global metadata plane.
- Tokenise early, use ABAC and purpose-based access, JIT for restricted data, audit everything.
- Data products with contracts, quality gates and lineage give BCBS 239 evidence.
- The same governance extends to features, embeddings and models.
References#
- Basel Committee, BCBS 239.
- RBI, Storage of Payment System Data (2018).
- EDM Council, CDMC cloud data management capabilities.