BRAMANTHYO ANDRIAN
← All work

Protecting personal data in 46 production pipelines without breaking them

Tokenization built into a data lake and ingestion layer for Indonesia's PDP Law, with a custom integration designed for the latency each pipeline could afford.

Tower lead and engineer for the ingestion layer and the data lake

46
PII pipelines protected in the first wave
59
historical tables tokenized in the second drop
6
cutovers coordinated across surrounding systems

Context

Indonesia’s Personal Data Protection Law (UU 27/2022) requires organisations to protect personal data. A company-wide program onboarded applications in waves onto a central encryption, masking and tokenization platform. The data lake and the ingestion layer, which sit upstream of dozens of reports and models, were in the first wave.

Role

Tower lead for the ingestion layer and the data lake: I designed the approach, wrote the integration code and coordinated the teams around us through each cutover.

Approach

  • Tokenize at the earliest safe point. At the source for applications that were ready, inside the ingestion layer for the ones that were not. Historical data was tokenized at rest with table names unchanged, so downstream queries kept working. Authorised users read real values through functions governed by existing access management.
  • Build the integration around the latency budget. The standard integration route did not fit the throughput these pipelines need, so I wrote a custom Java library and shipped it as a NiFi processor plus Hive and Spark functions, which kept each pipeline inside its latency budget.
  • Cut over without partial loads. Tokenized files were validated weeks ahead, schedules were suspended so no load saw half-tokenized data, and every cutover was followed by hypercare.

Result

46 personal-data pipelines were integrated in the first wave. A second drop moved 59 more tables from plain storage to tokenized form. Personal data is protected in flight and at rest, and the compliance milestone was met.

What I’d do differently

I would test the tokenization step under production-shaped load before locking the design. Latency is the constraint that decides where tokenization can sit, and it is cheapest to learn early.