Copying the production database into staging feels like the pragmatic choice. The data is realistic, it is already there, and nobody has to spend an afternoon inventing users. It is also how real customers end up in screenshots attached to bug reports, in log files emailed to contractors, and in inboxes receiving test messages that were never meant for them.
The problem is not carelessness. The problem is that a test system is built for access, not for protection, and personal data does not become less personal because the environment is called staging. This guide explains the ordinary ways real records escape test systems, and why fictional data from a tool like the Fake Data Generator on Ovatly removes the risk at the source instead of relying on everyone being careful forever.
Contents
- Quick answer
- How real records escape a test system
- Why fictional records cannot reach anyone
- What testing with fictional data looks like
- Worked example: one record, examined
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Never test with real personal data, because test systems leak in ordinary, unglamorous ways: screenshots, logs, shared staging access and accidental emails. Every copy of a customer record outside production is a copy you must protect with production-level care, and test environments almost never get that care. Use fictional records instead. The Fake Data Generator builds them with email addresses on reserved domains (example.com, example.org and example.net) that can never be registered, and phone numbers in the fictional 555-01XX range, so even when test data escapes, and some eventually does, it cannot reach or identify a real person.
How real records escape a test system
Start with screenshots. A developer reproduces a bug, captures the screen to show the team, and the capture includes a real customer's name, email address and order history. That image lands in a ticket, a chat thread and a slide deck, none of which were designed to hold personal data.
Logs are next. Applications log the inputs they process, and test runs process whatever data the environment holds. Log files get attached to support requests, pasted into forums while debugging, and shipped to outside tools. Shared staging access widens the circle further: staging passwords are weaker, accounts are shared, and contractors, interview candidates and demo audiences all get shown the system with its data inside.
The most direct escape is the accidental email. A test environment with real addresses and a mail setting one toggle away from live will, sooner or later, send real people password resets, receipts and notifications from a half-built system. None of these failures needs a hacker. They are the normal friction of people doing their jobs around data that should never have been there.
Why fictional records cannot reach anyone
Fictional data fails safely because its contact points are inert by construction. Email addresses end in example.com, example.org or example.net, domains that are reserved and can never be registered, so there is no inbox for a message to arrive in. Phone numbers sit in the 555-01XX range, the block set aside for made-up numbers, so an accidental call or text has no real subscriber at the other end.
Names, street addresses, usernames and companies are fabricated from small built-in word lists. A generated name may resemble a real person's name, but that resemblance is coincidence, and the email and phone attached to it still point nowhere. A screenshot of fictional data in a bug report is a process success, not a breach notification.
What testing with fictional data looks like
The workflow is deliberately plain. Open the Fake Data Generator, choose a count of up to 200 records, tick the fields you need (names, emails, phone numbers, addresses, usernames, companies), generate the records, and download them as CSV or JSON or copy the rows into your system. Records are generated fresh with cryptographic randomness and are not stored, so download the batch you test against if you need the same data twice.
One honest gap in the toolset: the generator deliberately produces no credit cards and no ID numbers. If you are testing a payment flow, that testing belongs in your payment provider's sandbox, with the published test numbers the provider supplies for exactly that purpose.
Worked example: one record, examined
A typical generated record reads: Nina Notreal, [email protected], +1 555-0112, 48 Placeholder Boulevard, Anytown, username nina_notreal69, Demo Works LLC.
Walk through what happens if this record escapes. It appears in a screenshot: the name is plainly invented. A test email fires: the address sits on example.net, a reserved domain with no inbox. A test call is placed: 555-0112 is inside the fictional range. The record exercises forms, validation, imports and displays exactly as a real row would, and every one of its escape routes ends at a dead end. That is the entire argument in one row of data.
Limitations and honest tradeoffs
Fictional data is not a perfect substitute, and pretending otherwise would be dishonest. Real databases contain genuinely strange records: unusual name formats, edge-case addresses, legacy data in unexpected shapes. Fabricated records come from small word lists, so names repeat across large batches and combinations can look odd. A bug that only triggers on a rare real-world record may not trigger on generated data.
That gap is the price of safety, and it is worth paying knowingly. You can close much of it by writing the odd cases you already know about as deliberate test fixtures, written by hand, without copying the customer who happened to reveal them. What you should not do is close the gap by importing the production database and hoping the screenshots stay internal.
Common mistakes
- Copying production "just once" for a demo. Temporary copies are the ones nobody tracks, and the ones that survive in old laptops and ticket attachments.
- Anonymising by hand and missing a field. Swapping names while leaving real emails, phone numbers or addresses in place protects nothing.
- Assuming staging is private. Shared credentials, broad access and public demo links make staging the most exposed system you run.
- Screenshotting real records for bug reports. The bug report will outlive the bug, and it will travel further than the database ever did.
FAQs
What actually goes wrong when teams test with real data? The records escape in ordinary ways: a screenshot in a bug report, a log file shared with a contractor, a staging database with a weak password, or a test run that sends a real customer a real email. Each copy outside production is a copy you have to protect.
Why are example.com addresses safe for testing? Example.com, example.org and example.net are reserved domains that can never be registered. Mail addressed to them has no real inbox to arrive in, so a test system can send as much as it likes without contacting anyone.
Are the phone numbers safe to dial by accident? Yes. The generator uses the fictional 555-01XX range, a block set aside for made-up numbers, so an accidental call or text cannot reach a real subscriber. The range is North American only.
Does fake data miss real-world edge cases? It can. Names are fabricated from small word lists, so combinations can look odd and names repeat across large batches, while genuinely strange real records will not appear. That gap is the honest price of never exposing a customer.
Could a generated record accidentally match a real person? Any resemblance is coincidence: the records are assembled from word lists with cryptographic randomness. The contact details are safe by construction, because the email domains are reserved and the phone range is fictional.
Conclusion
Real personal data in a test system is a liability that produces no testing advantage you cannot get another way. Fictional records keep the volume and the realism of shape, while their reserved email domains and fictional phone numbers make every escape harmless. Generate a batch with the Fake Data Generator, and if you need the practical steps, follow our guide on how to fill a test database with fake names and emails. For more guides in this series, see our Security and Privacy Tools guides.
References
- RFC 2606, on the reserved top-level and example domains that can never be registered: https://www.rfc-editor.org/rfc/rfc2606
- IANA, Special-Use Domain Names registry: https://www.iana.org/assignments/special-use-domain-names