𝕏in
Compliance & AdvisoryPublished on March 10, 2026β€’17 min readβ€’Peer-Reviewed Paper

India's DPDP Act 2023: Technical Architecture & Engineering Compliance Runbook

A comprehensive technical implementation checklist for India's Digital Personal Data Protection Act 2023. Architecting consent managers, Right to Erasure pipelines, PII tokenization, and cross-border transfer boundaries.

SC
Saket ChoudharyLead Architect
Founder & Lead Security Architect, Cyberfact Security
πŸ’¬ Technical Inquiries (WhatsApp)
India's DPDP Act 2023: Technical Architecture & Engineering Compliance Runbook

The enactment of India’s Digital Personal Data Protection Act, 2023 (DPDP Act) marks a historic transformation in how digital enterprises operating within the Indian sovereign cyber territory collect, process, store, and dispose of personal data. With statutory penalties reaching up to INR 250 Crores ($30 Million USD) per violation, compliance is no longer a check-the-box legal exerciseβ€”it is a core engineering and data architecture imperative.

Engineering teams can no longer store customer mobile numbers, Aadhaar details, PAN cards, or email addresses in unencrypted relational database columns, nor can marketing teams ingest user telemetry without granular, verifiable, and revocable consent records.

This engineering guide provides the technical architecture, database schemas, and cryptographic pipelines required to achieve 100% compliance with the DPDP Act 2023.


1. Core Statutory Pillars of the DPDP Act for Software Engineers

The Act introduces specific legal roles that map directly to technical architecture tiers:

[ DATA PRINCIPAL ] ──(Customer / Citizen)
        β”‚
        β–Ό (Granular, Itemized, Multilingual Consent)
[ DATA FIDUCIARY ] ──(Your Enterprise / Application Platform)
        β”‚
        β–Ό (Contractually Bound API Pipeline)
[ DATA PROCESSOR ] ──(Cloud Providers: AWS / GCP / Payment Gateways / SaaS)

Key Technical Mandates:

  1. Notice & Consent Architecture: Consent must be granular, informed, unconditional, and available in English and the 22 languages specified in the Eighth Schedule of the Indian Constitution.
  2. Right to Erasure / Right to be Forgotten: Data Fiduciaries must permanently delete personal data upon withdrawal of consent or once the specified processing purpose is fulfilled.
  3. Data Minimization & Storage Limitation: Data must not be retained indefinitely; automated data lifecycle pruning pipelines must be enforced.
  4. Breach Notification to DPBI & Data Principals: Mandatory prompt reporting of personal data breaches to the Data Protection Board of India (DPBI) and impacted users.

Consent cannot be a simple boolean flag (has_accepted_terms = true) stored on the user row. Enterprises must maintain an immutable, versioned event log tracking every consent grant, modification, and revocation.

CREATE TABLE consent_records (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    data_principal_id UUID NOT NULL,
    purpose_code VARCHAR(64) NOT NULL, -- e.g., 'CORE_SERVICE', 'MARKETING_SMS', 'ANALYTICS'
    notice_version VARCHAR(16) NOT NULL, -- e.g., 'v2.1'
    language_code VARCHAR(8) NOT NULL DEFAULT 'en', -- e.g., 'hi', 'en', 'bn'
    status VARCHAR(16) NOT NULL, -- 'ACTIVE', 'REVOKED', 'EXPIRED'
    ip_address INET NOT NULL,
    user_agent TEXT NOT NULL,
    granted_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    revoked_at TIMESTAMPTZ,
    proof_signature VARCHAR(256) NOT NULL -- Cryptographic HMAC of the consent event
);

-- Fast lookup index for active processing authorization
CREATE INDEX idx_active_consent ON consent_records (data_principal_id, purpose_code) 
WHERE status = 'ACTIVE';

3. Right to Erasure: Building the Cascade Deletion Pipeline

When a customer exercises their statutory Right to Erasure, an enterprise cannot simply delete a row in the primary database while leaving PII stranded inside database backups, analytical data lakes (Snowflake / BigQuery), and third-party SaaS tools (Mixpanel, HubSpot).

The DPDP Deletion Workflow:

[ User Requests Erasure ] ──> [ Consent Gateway / Privacy API ]
                                            β”‚
                                            β–Ό
                    [ Emit Asynchronous Event: UserErasureRequested ]
                                            β”‚
              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
              β–Ό                             β–Ό                             β–Ό
   [ Primary PostgreSQL DB ]     [ Analytical Lakehouse ]       [ Cloud Backup Scrubbing ]
   Anonymize / Delete PII        Hash User ID in Parquet        Mark User Encryption Key
   Keep Financial Audit Tx       Purge historical rows          as DELETED in KMS

Cryptographic Erasure (Crypto-Shredding)

Because deleting individual rows from immutable write-once backups (such as air-gapped S3 snapshots) is technically impossible without rebuilding the entire backup snapshot, enterprises implement Crypto-Shredding:

  • Every Data Principal’s PII is encrypted with a unique per-user Data Encryption Key (DEK).
  • When the user requests erasure, the enterprise permanently destroys that user’s specific DEK in KMS.
  • Without the key, the encrypted PII residing in historical backups becomes mathematically irreversible ciphertext, satisfying statutory erasure mandates.

4. PII Redaction & Tokenization Architecture (Python)

Before application logs are shipped to centralized logging clusters (Elasticsearch, Datadog, CloudWatch), automated tokenization filters must scrub sensitive Indian PII identifiers (Aadhaar numbers, PAN cards, phone numbers, email addresses).

import re

class PIIFilter:
    # Regex patterns for Indian Statutory Identifiers
    AADHAAR_REGEX = r'\b[2-9]{1}[0-9]{3}\s[0-9]{4}\s[0-9]{4}\b'
    PAN_REGEX = r'\b[A-Z]{5}[0-9]{4}[A-Z]{1}\b'
    PHONE_REGEX = r'\b(?:\+91|91)?[6-9]\d{9}\b'
    EMAIL_REGEX = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b'

    @classmethod
    def redact_log_line(cls, log_message: str) -> str:
        redacted = re.sub(cls.AADHAAR_REGEX, '[REDACTED_AADHAAR]', log_message)
        redacted = re.sub(cls.PAN_REGEX, '[REDACTED_PAN]', redacted)
        redacted = re.sub(cls.PHONE_REGEX, '[REDACTED_PHONE]', redacted)
        redacted = re.sub(cls.EMAIL_REGEX, '[REDACTED_EMAIL]', redacted)
        return redacted

5. Cyberfact Security DPDP Compliance Engineering Audits

Cyberfact Security bridges the gap between legal privacy mandates and technical implementation:

  • Data Flow Mapping & Inventory Audits: Mapping all PII ingress, processing, storage, and egress points.
  • Crypto-Shredding & Erasure Pipeline Architecture: Designing automated deletion workers across databases and cloud storage.
  • Full VAPT Compliance Certification: Verifying that consent mechanisms and security controls withstand adversarial penetration testing.

Schedule a DPDP Act technical readiness review with Founder Saket Choudhary on WhatsApp (+91 82520 02914).

Topics:#DPDP Act 2023#Data Privacy#Compliance India#PII Tokenization#Consent Management#Data Protection
SC
Saket Choudhary

Founder and Lead Security Architect at Cyberfact Security. Specializing in offensive penetration testing (VAPT), distributed cloud architectures, and hardened full-stack engineering for high-growth enterprises.

EXECUTIVE AUDIT & ENGINEERING DESK

Initiate a Technical Audit or Custom Engineering Scope

Cyberfact Security delivers certified VAPT audits, source code reviews, and enterprise software engineering for institutions across India. Direct technical engagements with Founder Saket Choudhary.

WhatsApp