Government proposal · Income Tax Department
PAN 2.0
National PAN issuance and KYC platform with Aadhaar-verified onboarding, built for the Income Tax Department.
Proposal pending with the department
Context
PAN 2.0 is a national PAN issuance and KYC platform where citizens onboard with Aadhaar verification. Our team at MoneyMul built it as a proposal for the Income Tax Department. It has been through a government security review, and the proposal is now pending with the department.
Problem
The onboarding platform was a monolith. Every release carried the whole system, so releases were weekly and a bad deploy could hit everything. Hundreds of KYC endpoints needed tight, auditable access control, and latency climbed under high-concurrency load.
What I did
- Led the move from a monolith to domain-owned microservices, shrinking deployment blast radius and taking releases from weekly to daily.
- Designed authorization with Keycloak, OAuth 2.0 and JWT, with fine-grained RBAC across 200+ Aadhaar KYC endpoints. Cleared a government security audit with zero critical findings.
- Cut p95 API latency by 40% under high concurrency using Redis caching, query rewrites and composite indexes on Aurora PostgreSQL.
Architecture
Key decisions and trade-offs
Split by domain, not by layer
Each service owns one part of the journey. A change to KYC ships without redeploying issuance, which shrank the blast radius and let releases go from weekly to daily. The trade-off is more moving parts to operate, which is worth it at this scale.
Centralize identity, enforce roles at every endpoint
Keycloak issues OAuth 2.0 tokens and every one of the 200+ KYC endpoints checks fine-grained roles from the JWT. One model, applied everywhere, is easier to audit than per-service rules.
Fix the query before adding hardware
Query rewrites and composite indexes on Aurora PostgreSQL removed the slow paths. Redis then absorbed repeated reads, so the database only does work that needs it.