You cannot protect, minimise or erase data you do not know you have. That is why our first DPDP engineering sprint was not about new features. It was about building an accurate map of where personal data lives across our stack.

The Digital Personal Data Protection Act, 2023 expects organisations to protect personal data, erase it when its purpose is served and answer people's requests about it. Each of those depends on a reliable data inventory. We wanted ours in place well before the Rules are notified.

Key takeaways

  • You cannot protect or erase data you have not mapped.
  • Seaneb catalogued personal data across PostgreSQL, Next.js logs, backups and CDN file storage.
  • A single living data register now records each item’s location, purpose and retention.

Why data mapping comes first

The NIST Privacy Framework puts inventory and mapping at the start of privacy risk management. A data map answers four questions for every piece of personal data: what it is, where it is stored, why it is processed and how long it is kept.

Where personal data can hide

Application databases

Our services use PostgreSQL. We catalogued every table and column that holds personal data, from obvious fields such as names and phone numbers to less obvious ones such as free-text notes, where people sometimes type contact details.

The web layer

Our web apps are built with Next.js. We reviewed server logs, analytics events and error reports, because request URLs, form payloads and stack traces can capture personal data without anyone intending it.

Backups and replicas

Backups are easy to forget. A record deleted from the live database can survive in a backup for weeks. We documented backup schedules and retention so that erasure covers the whole lifecycle.

Files and CDN storage

Uploaded files, such as profile photos, CVs and business images, live in object storage behind a CDN. We tagged each file type with its owner and purpose, so it can be found and removed when needed.

How we built the map

  1. Automated discovery. Scripts scanned schemas and samples for patterns such as phone numbers and email addresses.
  2. Engineer review. Each service owner confirmed or corrected the findings and added the purpose for each field.
  3. One living register. The results went into a single register that records each data element, its location, purpose, legal basis and retention period.
  4. Kept up to date. New fields that hold personal data now need a register entry before they ship.

What we found and fixed

The sprint surfaced the usual suspects: logs that kept more detail than needed, older test data that should not exist, and fields collected "just in case". We reduced log detail, removed unnecessary fields and set retention periods where there were none.

What this enables next

With the map in place, our next steps become possible: itemised consent notices that match what we really collect, security controls targeted at the most sensitive data, and erasure that reaches every copy. We will share each of these as the work progresses.

Read how we handle your data today, and your rights under the DPDP Act, in our Privacy Policy.

Frequently asked questions

What is a personal data map?

An inventory of what personal data an organisation holds, where it is stored, why it is processed and how long it is kept.

Why do backups matter for privacy?

Data deleted from a live database can survive in backups. Erasure must account for backup retention so deleted data does not live on indefinitely.

How does Seaneb keep the map up to date?

Any new field that holds personal data needs an entry in the data register before it ships.