Case study · Data protection engineering

Consent that actually propagates: preparing an Indian digital lender for the DPDP Rules

An Indian digital lender collected consent in its app but could not say, for any one customer, which partners held their data, for what purpose, or whether a withdrawal had reached them. With the DPDP Rules phasing in, the goal was a consent and data-rights platform that turns legal obligations into events every system honours.

Case studyConsumer lending · IndiaSumanta Mukhopadhyay9 min read
#data#security#architecture
CASE STUDY · CASE STUDY · DATA PROTECTION ENGINEERING29 Oct 2026 · 07:50 GST
At a glance
SectorConsumer lending · India
My roleFractional CTO and data architect
EngagementArchitecture, build and delivery leadership
ScopeConsent ledger, purpose model, propagation to processors, retention and erasure, breach detection, audit evidence
What changed
  • Consent recorded per purpose, with notice version and timestamp
  • Withdrawals propagated to internal systems and partners as tracked events
  • Retention rules that delete data on schedule, with proof
  • A single view of who holds a customer's data and why
  • Evidence ready for audits and data principal requests
Consent ledgerPurpose and data catalogueEvent streaming (Kafka)Policy enforcement at APIsRetention and erasure jobsOpenTelemetryConsent manager integrationAudit store

Anonymised composite. Client names, identifying details and confidential figures are withheld; public facts are cited in the references.

The situation

A digital lender in India served customers through a mobile app, with credit decisions supported by bureaus, co-lending partners, verification vendors, a collections agency and marketing platforms. Consent was a set of checkboxes at sign-up. Personal data flowed to partners through file drops and APIs built over years by different teams, and nobody could answer a simple question for a single customer: who holds this person's data, for which purpose, and what happens if they withdraw?

Why now. The Digital Personal Data Protection Rules were notified on 13 November 2025, bringing the DPDP Act, 2023 into force in stages over 18 months12. Registration of consent managers applies after the first year, which falls in November 2026, and most core obligations for data fiduciaries apply from around May 20273. For a lender whose business runs on personal and financial data, that is not much time to rebuild how consent works.

What had to be true

  • Consent per purpose, not one blanket checkbox, with the notice version recorded.
  • Withdrawal as easy as giving consent, and actually honoured by every system and partner.
  • Retention that deletes: data removed when its purpose ends, with evidence.
  • Breach detection and reporting fast enough to meet notification duties.
  • Room for consent managers, so customers can manage consent through a registered intermediary.

Architecture

Customers
Mobile appnotices and choicesConsent managerregistered intermediaryRights requestsaccess, correction, erasure
Consent
Consent ledgerappend-only, per purposePurpose cataloguedata, systems, retention
Enforcement
Policy checks at APIsno consent, no processingEvent streamconsent and withdrawal eventsPartner gatewayacknowledged delivery
Data
Lending coreloans, repaymentsAnalyticspurpose-tagged dataRetention jobsdelete and prove it
Assurance
Traces per eventpublish to every consumerAudit storeevidence on requestBreach detectionalerts and runbooks
Consent becomes data: a ledger that every system checks and an event stream that every system obeys.

The data flow, end to end

  1. NoticeCustomer sees a clear notice per purpose in the app or via a consent manager
  2. RecordConsent written to the ledger with purpose, notice version and time
  3. EnforceAPIs and pipelines check the ledger before using the data
  4. WithdrawA withdrawal is published as an event to every internal consumer and partner
  5. AcknowledgeEach consumer confirms and records the action taken
  6. Retain or eraseJobs delete data when purposes end and write proof to the audit store
Every step leaves evidence, so "did we honour this withdrawal?" has a factual answer.

The hard part: proving a withdrawal reached everyone

Recording consent is easy. Proving that a withdrawal stopped processing everywhere is not, because data has already been copied to analytics, partners and vendors. The design treated each withdrawal as an event on the stream, with every consumer and partner integration required to acknowledge it. Tracing producers and consumers with OpenTelemetry links a published event to each receiving service in one trace4, which turns propagation into something you can query and show to an auditor.

Trace view showing a Kafka producer span sending a message to a topic and a linked consumer span receiving it, with messaging attributes for each
A traced message from producer to consumer: the same technique shows each withdrawal reaching every system that holds the data. Source: OpenTelemetry blog, Paolo Patierno · CC BY 4.0

A consent you cannot withdraw everywhere is not really consent. Design withdrawal first; recording consent is the easy half.

Partners without event integrations received withdrawals through an authenticated API with mandatory acknowledgement and a retry queue. Unacknowledged withdrawals raised alerts to the partner owner, not just to engineering. Related reading: change data capture and event streams and data contracts.

How it ran

Legal and compliance
  1. Purpose and notice wording
  2. Retention schedule
  3. Partner contract updates
Engineering
  1. Consent ledger and APIs
  2. Withdrawal events and acknowledgements
  3. Retention and erasure jobs
Partners and vendors
  1. Data flow inventory
  2. Event or API integration
  3. Acknowledgement SLAs
Legal defined purposes and retention, engineering made them executable, partners committed to acknowledgement.
Phase 1Map
  • Data and partner inventory
  • Purpose catalogue
  • Gap assessment
Phase 2Ledger
  • Consent ledger
  • New notices in the app
  • Policy checks at APIs
Phase 3Propagate
  • Withdrawal events
  • Partner gateway
  • Tracing and alerts
Phase 4Prove
  • Retention and erasure
  • Consent manager integration
  • Audit evidence
Inventory before ledger, propagation before polish, evidence throughout.

Key decisions and trade-offs

DecisionAlternativeWhy
Append-only consent ledgerConsent flags on the customer recordHistory, notice versions and audit evidence come built in
Withdrawal as an event with acknowledgementNightly batch updatesFast propagation and proof of delivery per system
Purpose tags on data in analyticsOne shared data lake with no purpose contextLets retention and access rules work on analytical copies too
Deletion with proofSoft-delete flagsErasure has to be real and demonstrable
Design for consent managers nowWait for the registry to matureInterfaces are cheaper to add before integrations multiply

What I'd do again, and differently

Again: start with the data and partner inventory, and make withdrawal the first feature built. Differently: bring partners in earlier. The longest delays came from contract changes and vendors without any way to receive a withdrawal, not from the engineering. For broader context on rules across markets, see where I work and how another data protection law shapes AI architecture.

If you are preparing an Indian platform for the DPDP Rules, my work with Indian companies explains how I approach it, or analyse your challenge and bring the result to a call.

References
  1. 1
  2. 2
  3. 3
  4. 4
    Instrumenting Apache Kafka clients with OpenTelemetryOpenTelemetry blog (Paolo Patierno) · 6 Sep 2022
FAQ

Common questions

When do the DPDP Rules apply?

The Rules were notified on 13 November 2025 and phase in over 18 months. Consent manager registration applies after one year, and most core obligations for data fiduciaries apply from around May 2027.

What does a consent ledger do?

It records each consent as an immutable event: who consented, to which purpose, under which notice version, when, and through which channel, and records withdrawals the same way. Every system that uses personal data checks it before processing.

How do you prove a withdrawal reached every partner?

Publish withdrawal as an event, require each consumer and partner integration to acknowledge it, and trace the event end to end so the audit trail shows delivery and the action taken.

Keep reading

Related

Open to advisory, fractional CTO & select builds

Let's talk about what you're building.

The fastest route is a free 30-minute call. Prefer to write? Send a message and I'll reply personally within two business days.

Start a conversation

How would you like to reach me?

Book a 30-min callFastest. Pick any open slot on my calendar.→ Write in GmailOpens a pre-filled draft in your browser.→ Use my email appOutlook, Apple Mail or your default client.→

I reply personally within two business days. Time zones from the Americas and Europe to the Middle East and Asia-Pacific.