Data
Test databases without personal data
Developers wanted to work on copies that look like production but hold nothing about actual people.
Under NDA
The company’s name and logo are under NDA. We left out the details that could identify it.
- Self-service
- a database for work without a ticket to admins
- Masking
- personal fields are replaced during preparation
- Isolation
- preparation has permissions of its own
The problem
Database copies were prepared by hand, which took a lot of time. The law does not allow personal data in them.
What we did
01Preparing databases is automated: a developer starts it without involving admins.
02Masking of personal data is built into the preparation.
03Preparation runs in isolation, with its own permissions, and the credentials for the source databases are kept in a secrets store.
04Which fields to mask, and how, is described in a config. It is checked before each launch, and the preparation runs regularly in CI, so new columns don’t slip through in the clear.
Result
Developers get databases on their own, and the personal data in them is masked.
Technologies
- PostgreSQL
- Kubernetes
Check your own system
Three questions on this topic. After each one, a short note on why it matters.
Do developers debug on data without personal information?
Why it matters
Debugging on real personal data breaks the law, even if the database is “internal only”.
Are database copies, logs and dumps on developers’ machines free of personal data?
Why it matters
Copies and logs live longer and are guarded worse than production, so leaks often start there.
Does someone regularly check that masking missed nothing?
Why it matters
New fields appear in the schema all the time. Without a check, one of them sooner or later goes into a copy unmasked.
Looks like this part is in order
If you want someone to look at the rest of the system from the outside, write to us.
There is something to check
Incidents usually start in places like these. Write to us about how this part of your system works, and we will suggest what to check first.
This is worth looking at first
There are several weak spots, and the rest of the system probably has some too. Write to us, and we will work out what to fix first.
If your mail app did not open, here is the address: hello@infiniteloop.tech
Have a similar problem?
Write to us about what is going on. We reply within 2 business days.
More case studies
- Content Idempotent model calls: no repeat paid for, no call lost
- Subscriptions Paid content for paid subscriptions only
- CI/CD Every release reaches testers the same way, from any machine
- Integrations Events with no loss and no duplicates
- Real time Stream processing in real time
- Platform A common base for new services