In short
- A copy of production in staging is still personal data under the GDPR, with every obligation attached: minimisation, security, breach notification, and the subject’s rights. Pseudonymised data stays personal data; only data that relates to no identifiable person is outside the regulation.
- Synthetic data generated from a schema and rules relates to nobody, which is why it answers the staging question outright; masking is for the cases that genuinely need production-shaped data, and it has to be done consistently so the relationships survive.
- India’s Digital Personal Data Protection Act applies the same logic to a company operating from India, and "do you use production data in test environments?" appears on many vendor security questionnaires from the EU, the UK and North America.
About this article
- Format
- Explainer: what a thing is, why it matters, and the evidence.
- Written for
- Developers who own their tests · Security and compliance reviewers · QA leads and test managers
- Where it applies
- The rules it cites are specific to United Kingdom, India, Ireland, Germany, France and Netherlands. The GDPR articles cited bind a company with users in the EU; the UK’s reference is the Information Commissioner’s guidance; India’s Digital Personal Data Protection Act applies the same minimisation and security duties to processing in India.
The habit nobody defends out loud
Ask how test data gets made and the honest answer at many companies is "we restore a production dump into staging". It is convenient and it is realistic. It also means real names, email addresses, postal addresses and transaction histories now live in an environment with weaker access control, more verbose logging and more third-party tools than production has. The regulation does not care which environment the data is in. Under the GDPR the copy is personal data, and the obligations follow it: data minimisation under Article 5(1)(c), data protection by design under Article 25, security of processing under Article 32, and the breach duties if it leaks. The upper fine tier, under Article 83(5), is 20 million euros or 4% of worldwide annual turnover, whichever is higher.
Two details of the regulation decide the whole question. Recital 26 says the principles do not apply to anonymous information, which does not relate to an identified or identifiable person. The same recital says pseudonymised data, which could be attributed to a person with additional information, is still personal data. Replacing names with hashes is pseudonymisation; it does not take the staging copy out of scope.
Not only Europe
India’s Digital Personal Data Protection Act, 2023, with its rules notified in 2025, places obligations on anyone processing digital personal data in India, including the same minimisation and security duties, so a company operating from India has its own reason to keep production out of staging. In the UK the Information Commissioner’s guidance on anonymisation and pseudonymisation is the reference, and it was marked under review in 2026 after the Data (Use and Access) Act, which is worth knowing before you quote it. And on the buyer’s side, the same question reaches vendors from the EU, the UK and North America alike.
Two honest alternatives, both in the product
- Synthetic generation. Dokimore’s data generator produces realistic records, names, addresses, transactions, locale-aware formats and identifiers that pass the checksum a downstream validator applies, from a schema, rules and a seed. No production record is read by the generator, so the result relates to nobody and the staging question disappears for those datasets; if you infer a schema from a sample, infer it from a generated or masked one. Generation runs are metered by plan.
- Masking and governance. When tests genuinely need production-shaped data, the fields that identify a person have to be masked consistently, so referential integrity survives, and who used which dataset has to be recorded. Since 13 November 2026 Dokimore’s enterprise test-data management does this for a CSV, TSV or JSON extract you upload: it proposes a rule for each column from a sample, a person reviews the plan, and the run masks (pseudonymises) the extract with a fresh key that is destroyed when the run ends, so we cannot recreate the mapping. The same value masks the same way in every table, which keeps joins intact, and the run stops if masking would break one. National identifiers are re-issued from ranges never issued to a person and e-mail addresses move to example.com. The masked copy is saved as a dataset in your workspace, and the module’s audit trail records the run and every download. Masked data is pseudonymised data; it is still personal data under the GDPR and India’s DPDP Act, and it still needs the controls.
In the product
What this does not promise
- Synthetic data is not a guarantee that a test finds every production bug. Real data has edge cases a rule set has not imagined yet; add those cases to the rules when you find them.
- Masking is not anonymisation. A masked dataset remains in scope of the regulation, and a masked dataset copied to a laptop is a copy of personal data on a laptop.
- Masking does not find everything. Every column the plan keeps is checked for e-mail addresses, US social security numbers, UK national insurance numbers, card numbers and IBANs, and the run stops until a person acknowledges a hit; the checks match patterns, so a name inside free text is not found. Review the columns you keep.
- A masked row keeps what the plan keeps. Amounts stay as they are unless you choose to vary them, so payslip arithmetic still adds up, and a kept date, postcode prefix or job code can still help single a person out. The key that masked the run is gone, but you still hold the original.
- We publish no number for breaches avoided or questionnaires passed. The argument is the regulation’s own text, not an industry statistic.
What to do this quarter
- Find every environment that holds a copy of production, including the ones on developer machines and in CI caches. The inventory is usually longer than anyone expected.
- Replace the copies that exist for convenience with generated datasets from the same schema (Test Data Factory).
- Where a copy must stay, mask it consistently and record who used it; treat it as personal data because it is.
- Write the answer to the questionnaire question before anyone asks it: "Staging runs on generated data; where a masked copy is unavoidable we treat it as personal data, and here is the masking and access record."
Questions people ask
Is a copy of production data in a test environment covered by the GDPR?
Yes. The regulation follows the data, not the environment. The copy in staging carries the minimisation, security and breach obligations of Articles 5, 25 and 32, and the subject’s rights apply to it. Only information that relates to no identified or identifiable person, in the words of Recital 26, is outside the regulation.
Is pseudonymised or masked test data still personal data?
Yes. Recital 26 of the GDPR says data that could be attributed to a person by use of additional information is personal data, and pseudonymisation is named as an example. Masking reduces the risk and is worth doing; it does not remove the obligations.
What is synthetic test data?
Records generated from a schema, rules and a seed that look like real data, with realistic names, addresses and identifiers that pass validators, but relate to no real person. Because they are generated rather than derived from production, the datasets are outside the regulation’s scope, which is the point.
Does Dokimore mask production data?
Yes, since 13 November 2026, in enterprise test-data management. You upload a CSV, TSV or JSON extract, a person reviews the rule proposed for each column, and the run masks (pseudonymises) it with a fresh key that is destroyed when the run ends, so we cannot recreate the mapping; joins stay intact and the masked copy is saved as a dataset in your workspace. Masking supports the safeguards named in Articles 25 and 32 of the GDPR and in Rule 6 of India’s DPDP Rules, which applies from May 2027, and the masked copy is still personal data under both laws, so keep treating it as such.
Does India’s data protection law affect test data?
Yes. The Digital Personal Data Protection Act, 2023, with its rules notified in 2025, places minimisation and security duties on anyone processing digital personal data in India, which includes a production copy in a test environment. The same two alternatives apply: generate, or mask and govern.
How we measured this
- Synthetic records are produced by the platform generator from schema, rules, locale settings and a seed only; no production records are read by the generator, and a schema inferred from a sample should come from a generated or masked one. Masking is a separate step in enterprise test-data management: it reads the extract you upload, applies the column plan a person reviewed, and saves the masked copy as a new dataset; the uploaded files and the key are not stored. The masking statements in this article were checked against the masking engine’s source on 2026-11-13. Data generator runs are metered per plan.
- The regulation’s articles and recital are cited by number from the EUR-Lex text; the Indian Act and the DPDP Rules from the official texts the Ministry of Electronics and Information Technology publishes (Rule 6’s wording confirmed again on 2026-11-13); the EDPB’s pseudonymisation guidelines from its consultation page. This article is not legal advice. Corrected 2026-10-27: an earlier version said "teams that switch tell the same story in security reviews"; we had collected no such stories, and the sentence is withdrawn. Corrected 2026-10-28: the description promised tests "without the risk" and the suggested questionnaire answer claimed no production personal data in staging while describing a masking pipeline; both now say what the article says, that masked data stays personal data. Corrected 2026-11-11: an earlier version counted two approaches in the product, generation and masking, and said "the masking tooling for enterprise test-data management" masked production-shaped data and recorded who used which dataset. Enterprise test-data management generates synthetic data and has no masking step; the statistic, the section heading, the masking bullet and this note now say so. Corrected 2026-11-13: masking shipped in enterprise test-data management that day, so the statistic, the section heading, the masking bullet, the excerpt and the first note now describe what it does and what it does not, with two new limits under "What this does not promise"; the 2026-11-11 note above records the earlier state.
Sources
- Regulation (EU) 2016/679 (GDPR): Articles 5(1)(c), 25, 32 and 83(5); Recital 26 on anonymous and pseudonymised data read
- ICO, Anonymisation guidance (marked under review after the Data (Use and Access) Act) read
- The Digital Personal Data Protection Act, 2023 (No. 22 of 2023), the Ministry of Electronics and Information Technology copy read
- The Digital Personal Data Protection Rules, 2025 (G.S.R. 846(E), 13 November 2025): Rule 6 on reasonable security safeguards, which names masking and applies eighteen months after notification read
- EDPB, Guidelines 01/2025 on Pseudonymisation, version 1 (public consultation from 17 January to 14 March 2025; no final version published when read) read