0tokens

Apply for AI Grants India

Financial support for innovators building the future of AI in India.

Apply now

Chat · Technical Architecture for India DPDP Act Compliance

Technical Architecture for India DPDP Act Compliance

  1. aigi

    India’s Digital Personal Data Protection (DPDP) Act, 2023 requires organisations to treat personal data governance as an engineering, security, and operating-model problem—not only a legal checklist. A compliant architecture must show where personal data enters the environment, why it is processed, who can access it, how long it is retained, and how the organisation can respond to data-principal requests or breaches.

    This guide explains the core design patterns, controls, and implementation priorities for Technical Architecture for India DPDP Act Compliance. It is intended for Indian startups, enterprises, SaaS companies, digital public infrastructure providers, and technology teams serving users in India. Legal interpretation should be validated with qualified counsel, especially as rules, notifications, and sector-specific obligations evolve.

    What DPDP Compliance Means for Technology Teams

    The DPDP Act establishes obligations for data fiduciaries—the organisations deciding the purpose and means of processing personal data—and responsibilities for data processors acting on their behalf. The architecture must support lawful, transparent, purpose-limited, and secure processing across the complete data lifecycle.

    From a systems perspective, DPDP compliance typically requires the ability to:

    • Identify personal data and connect it to a data principal, purpose, and processing activity.
    • Present clear notices and capture consent where consent is the chosen legal basis.
    • Record consent, withdrawal, and preference changes as auditable events.
    • Enforce purpose-based access and processing restrictions.
    • Support correction, updating, and erasure workflows.
    • Apply retention and deletion rules consistently across production, analytics, backups, and vendors.
    • Detect, investigate, and report personal data breaches.
    • Demonstrate governance through logs, policies, risk assessments, and processor oversight.

    A useful architecture principle is privacy by design: controls should be embedded in APIs, data models, identity systems, pipelines, and operational workflows rather than relying on manual intervention after deployment.

    Build a Personal Data Inventory and Data Map

    The foundation of DPDP readiness is a continuously maintained data inventory. Organisations often underestimate the number of locations containing personal data: application databases are only one part of the environment.

    Map personal data across:

    • Web and mobile applications.
    • Customer relationship management and support platforms.
    • Identity and access management systems.
    • Payment, billing, and fraud systems.
    • Data warehouses, lakes, notebooks, and business intelligence tools.
    • Logs, traces, crash reports, and observability platforms.
    • Email, collaboration, ticketing, and document systems.
    • Cloud object storage and shared drives.
    • Backups, disaster recovery replicas, and archives.
    • Third-party processors, APIs, SDKs, and advertising or analytics tools.

    For every dataset, capture metadata such as:

    | Metadata | Example |
    |---|---|
    | Data element | Name, phone number, device identifier |
    | Data principal | Customer, employee, applicant, vendor contact |
    | Purpose | Account creation, support, fraud prevention |
    | Collection channel | Web form, mobile SDK, partner API |
    | System of record | Customer database |
    | Processors | Cloud provider, email vendor |
    | Access roles | Support agent, fraud analyst |
    | Retention period | Active account plus defined post-closure period |
    | Data location | India region, other approved region, or unknown |
    | Disposal method | Hard delete, cryptographic deletion, anonymisation |

    Use automated discovery where possible. Database scanners, DLP tools, cloud asset inventories, schema registries, and source-code scanning can identify likely personal data. Automation should be supplemented with interviews and application reviews because business meaning cannot always be inferred from field names.

    Design a Consent and Notice Management Layer

    Where consent is used, consent management must be technically separate from the application screen that collects it. A checkbox without a durable, queryable record is difficult to defend during an audit or dispute.

    A consent record should generally include:

    • A pseudonymous or internal data-principal identifier.
    • The notice or policy version displayed.
    • The precise purpose or purpose group.
    • The consent status: granted, refused, withdrawn, or expired.
    • Timestamp and time zone.
    • Collection channel and application version.
    • Relevant language or regional presentation.
    • Evidence that the notice was made available.
    • Consent source, such as web, app, call centre, or API.

    Use an append-only consent event log rather than overwriting the current status. The current consent state can be materialised for fast enforcement, while the event history provides auditability.

    A consent service should expose APIs such as:

    POST /consent/grants
    POST /consent/withdrawals
    GET  /consent/status?principal_id=...
    POST /consent/preferences

    Downstream services should check consent before initiating optional processing. For example, a marketing service should query a central preference service or receive a signed, cacheable entitlement—not maintain an independent spreadsheet or stale local flag.

    Consent withdrawal should propagate quickly. Use event-driven patterns through a message bus, webhook, or workflow engine. Consumers must be designed for eventual consistency and should fail closed for sensitive optional processing when consent status is unavailable.

    Create Purpose-Based Data Access Controls

    Traditional role-based access control is necessary but often insufficient. Two employees with the same role may need access to different purposes or customer populations. DPDP-ready architecture benefits from combining RBAC with attribute-based and purpose-based controls.

    Relevant access attributes may include:

    • User role and department.
    • Tenant or business unit.
    • Data sensitivity classification.
    • Processing purpose.
    • Geographic or residency constraints.
    • Case assignment or customer relationship.
    • Time-bound approval.
    • Device and network trust level.

    For example, a support agent may view contact details to resolve a ticket but not export a full customer list for marketing. A fraud analyst may access transaction metadata under a documented fraud-prevention purpose but not use it for unrelated profiling.

    Implement controls at multiple layers:

    1. Identity layer: SSO, MFA, lifecycle management, privileged access management.
    2. API layer: Authorisation middleware, purpose claims, tenant isolation, rate limits.
    3. Data layer: Row-level security, column masking, views, tokenisation, encryption.
    4. User interface: Hide fields and actions that are not required for the task.
    5. Export layer: Approval workflows, watermarking, download restrictions, and monitoring.

    Never treat UI hiding as a security boundary. Enforcement must occur at the API and data layers.

    Apply Data Minimisation and Purpose Limitation in Schemas

    Data minimisation is partly a product and schema-design discipline. Before adding a field, ask whether it is essential for a defined purpose, whether a less identifying alternative exists, and whether the same outcome can be achieved using derived or aggregated data.

    Practical patterns include:

    • Store age bands rather than full dates of birth when exact age is unnecessary.
    • Tokenise identity numbers and keep the mapping in a restricted vault.
    • Use short-lived identifiers for analytics instead of direct identifiers.
    • Separate identity data from behavioural or transactional data.
    • Collect optional attributes only after presenting a specific explanation.
    • Configure SDKs to disable unnecessary collection by default.
    • Remove personal data from application logs and telemetry payloads.

    A canonical data model should distinguish direct identifiers, quasi-identifiers, sensitive business data, derived attributes, and operational metadata. This classification supports consistent masking, retention, and access policies across systems.

    Encrypt, Tokenise, and Pseudonymise Personal Data

    Encryption is a core safeguard, but it should be implemented with appropriate key management and access separation.

    Use:

    • TLS for data in transit, including internal service-to-service traffic where feasible.
    • Strong encryption for databases, object storage, backups, and removable media.
    • Envelope encryption with keys managed through a cloud KMS or hardware security module.
    • Key rotation, access logging, and separation of key administrators from data administrators.
    • Field-level encryption for high-risk attributes where database-level encryption is not enough.
    • Tokenisation when applications need to reference a value without seeing the original.
    • Pseudonymisation for analytics and experimentation environments.

    Pseudonymised data can still be personal data if the organisation can re-identify the individual. Do not treat pseudonymisation as automatic anonymisation. Maintain re-identification keys in a separate security domain with stricter permissions.

    Engineer Data-Principal Rights Workflows

    A DPDP-ready rights architecture must handle requests reliably across distributed systems. Depending on the request and applicable obligations, individuals may need mechanisms related to access to information, correction and erasure, grievance redressal, and withdrawal of consent.

    Build a rights-request service that can:

    • Authenticate the requester using proportionate identity verification.
    • Create a unique case ID and record timestamps.
    • Classify the request type and applicable policy.
    • Locate records through a master identity index.
    • Dispatch tasks to system owners and processors.
    • Track completion, exceptions, and approvals.
    • Produce a human-readable response and internal evidence package.
    • Escalate unresolved cases to the designated grievance channel.

    The identity index should map stable internal identifiers to system-specific IDs. Avoid using email addresses as the only key: users may change contact details, have duplicates, or exist in systems that use another identifier.

    Deletion is particularly difficult. Design a deletion orchestration workflow that covers primary stores, search indexes, caches, files, derived tables, analytics extracts, support tools, and processor-held copies. Where immediate removal from immutable backups is impractical, document backup expiry, restoration controls, and compensating measures. A deletion request should not accidentally remove records that must be retained under another legal or security obligation; such exceptions require documented rules and access restrictions.

    Implement Retention and Deletion as Policy-as-Code

    Retention schedules should be machine-readable wherever possible. A retention engine can evaluate data class, purpose, account status, last activity, legal hold, and regulatory requirements to determine when records become eligible for deletion or anonymisation.

    Example policy logic:

    IF account_status = "closed"
    AND legal_hold = false
    AND retention_deadline <= today
    THEN enqueue deletion workflow

    Important controls include:

    • Default retention periods for each data category.
    • Separate rules for active data, derived data, logs, and backups.
    • Legal holds that suspend deletion with an audit trail.
    • Deletion verification and exception reporting.
    • Processor deletion confirmations where contractually required.
    • Scheduled reviews for fields and systems without a defined retention period.

    Do not rely on database TTL alone. TTL may not cover replicas, object versions, caches, exports, or third-party systems.

    Secure Logs, Monitoring, and Breach Response

    Logs frequently become an ungoverned personal-data repository. Redact tokens, passwords, authentication headers, full payment details, identity numbers, and unnecessary request bodies before data reaches the logging pipeline.

    Use structured security telemetry to detect:

    • Unusual bulk reads or exports.
    • Repeated failed access to restricted fields.
    • Privilege escalation and role changes.
    • Disabled audit logging or key-management events.
    • Unexpected data transfers to external destinations.
    • High-volume deletion or consent changes.
    • Processor API anomalies.

    Maintain tamper-evident audit logs with controlled access, synchronised timestamps, defined retention, and alerting. Security information and event management (SIEM), cloud-native detection, endpoint telemetry, and data access monitoring can be combined according to risk and budget.

    A breach-response architecture should define the flow from detection to containment, assessment, internal escalation, regulatory communication where required, and affected-party communication where applicable. Maintain tested playbooks, contact lists, evidence preservation procedures, and clear ownership. The legal notification clock should not depend on an engineer manually discovering which systems contain the affected records.

    Govern Processors, APIs, and Cross-Border Data Flows

    Your architecture is only as strong as the processors connected to it. Maintain a processor registry containing service purpose, data categories, access method, hosting locations, sub-processors, security certifications, retention behaviour, and exit procedures.

    Technical controls for processors include:

    • Data minimisation in API payloads.
    • Scoped credentials and short-lived tokens.
    • Mutual TLS or signed requests for sensitive integrations.
    • Network segmentation and egress controls.
    • Contractual deletion and incident-notification requirements.
    • Periodic access reviews and processor attestations.
    • Monitoring for unexpected fields or destinations.
    • Tested data export and migration plans.

    India-based organisations should also track data location and transfer implications. The DPDP framework’s restrictions and government notifications may evolve, while sectoral requirements can impose additional conditions. Maintain a data-flow register that can be updated without redesigning the entire platform.

    A Reference DPDP Technical Architecture

    A practical reference architecture may contain:

    • Collection layer: Notice service, consent UI, SDK controls, validation.
    • Identity layer: Customer identity, authentication, deduplication, verification.
    • Policy layer: Purpose registry, consent state, retention policies, access policies.
    • Data layer: Segmented operational stores, encrypted vaults, tokenisation service.
    • Processing layer: Purpose-tagged services, controlled ETL, privacy-safe analytics.
    • Rights layer: Request intake, identity resolution, orchestration, case management.
    • Security layer: KMS, secrets management, DLP, SIEM, vulnerability management.
    • Governance layer: Data catalogue, processor registry, risk register, audit evidence.

    Use an event bus to distribute consent changes, deletion commands, and identity updates. Use a policy decision point for centralised authorisation, while allowing local enforcement for resilience and low latency. Establish data contracts so new services declare the fields they consume, purpose, retention, and deletion behaviour before production access is approved.

    Implementation Roadmap for Indian Organisations

    A staged programme reduces risk and creates visible progress.

    Phase 1: Discover and prioritise

    • Appoint privacy, security, product, and engineering owners.
    • Inventory systems and processors.
    • Classify personal data and high-risk processing.
    • Identify missing notices, consent evidence, and retention rules.
    • Prioritise customer-facing and high-volume data flows.

    Phase 2: Establish foundational controls

    • Centralise identity and access management.
    • Implement encryption and secrets management.
    • Remove personal data from logs.
    • Create a consent and preference service.
    • Document processor and data-flow registers.

    Phase 3: Automate lifecycle operations

    • Deploy rights-request orchestration.
    • Implement retention-as-code and deletion workflows.
    • Add data discovery, DLP, and access monitoring.
    • Integrate processor confirmations and audit evidence.
    • Test breach response and backup restoration.

    Phase 4: Measure and improve

    Track metrics such as:

    • Percentage of systems with an identified data owner.
    • Percentage of personal-data fields with purpose and retention metadata.
    • Consent propagation latency.
    • Rights-request completion time.
    • Deletion success and exception rates.
    • Number of privileged access violations.
    • Mean time to detect and contain data incidents.
    • Processor review coverage.

    Common Architecture Mistakes

    Avoid these recurring failures:

    • Treating a privacy policy as proof of technical compliance.
    • Building consent only in the frontend.
    • Keeping independent consent flags in every application.
    • Assuming encrypted disks solve access-control problems.
    • Ignoring backups, logs, analytics, and vendor copies.
    • Using a shared administrator account with no attribution.
    • Treating pseudonymised data as anonymous by default.
    • Deleting production data but retaining unrestricted exports.
    • Collecting more data “for future use” without a defined purpose.
    • Selecting tools before mapping requirements and data flows.

    FAQ: Technical Architecture for India DPDP Act Compliance

    Is encryption alone enough for DPDP compliance?

    No. Encryption is an important security measure, but compliance also requires governance, purpose limitation, consent or another applicable basis, rights workflows, retention controls, processor oversight, and incident readiness.

    Do startups need a consent management platform?

    Not necessarily. A startup can build a focused service if it maintains reliable consent records, versioned notices, withdrawal propagation, access controls, and audit evidence. A third-party platform may be useful at larger scale, but it does not replace correct integration.

    Is data stored outside India automatically non-compliant?

    Not automatically. Data-location requirements can depend on the DPDP framework, government notifications, sectoral rules, contracts, and the nature of processing. Maintain an accurate transfer and processor inventory and obtain current legal advice.

    How should companies handle personal data in backups?

    Define backup retention, restrict restoration access, document deletion exceptions, and ensure restored systems reapply current access, consent, and deletion controls. Do not assume backup copies disappear when a primary record is deleted.

    What should be built first?

    Start with data discovery, identity and access controls, consent evidence, retention rules, logging hygiene, and a tested breach-response process. These foundations make later rights and deletion automation substantially more reliable.

    Apply for AI Grants India

    Building privacy-preserving AI infrastructure for India? Apply through AI Grants India to explore support and opportunities for Indian AI founders developing responsible, secure technology.

    Last updated 26 September 2026

AIGI may be inaccurate. Replies seeded from the guide above.