Privacy and preparation
A secure staging environment for data preparation
By SourceX Editorial · Updated
Short answer
A secure data staging environment is an isolated workspace where raw exports from systems like Zendesk, Slack or NetSuite are held and cleaned before anything is released. Build it as a separate cloud account with MFA, encryption, no outbound internet, full logging and a fixed deletion date. The rule: raw data enters, only approved packages leave.
Key takeaways
- Raw exports are the most sensitive version of your data, so they belong in their own isolated account, not in a shared drive.
- Block outbound network access by default; open only the paths the preparation tools need.
- Give named people access through MFA and roles, and log every read, copy and deletion.
- Set a deletion date for raw data when the environment is created, not after the project ends.
- Only a supplier-approved, de-identified package should ever leave the environment.
Why do raw exports need their own environment?#
Raw exports need their own environment because they combine more sensitive data in one place than any production system does. A help desk export holds every ticket, attachment and requester email at once; a Google Vault or Microsoft Purview export holds whole mailboxes. In production those records sit behind application permissions. In a ZIP file on a laptop they sit behind nothing.
A staging environment restores those controls for the time between export and release. It also gives you a clean answer when counsel, an auditor or a buyer asks where the raw data lived, who touched it and when it was destroyed.
Export deadlines add pressure to skip this step. Google Vault export files are deleted after a fixed window, and Purview eDiscovery exports expire too, so teams are tempted to download to whatever machine is handy. Decide where downloads land before you start the export.
The reference setup, control by control#
The reference setup has six controls: isolation, identity, encryption, egress, logging and deletion. Each one closes a specific way that raw records leak during preparation, and none requires exotic tooling; the major cloud providers offer all of them as standard features.
Treat the table as a build checklist for your IT lead or managed service provider. If a control cannot be met, write down why and what compensates for it.
| Control | Reference setting | Risk it closes |
|---|---|---|
| Isolation | Dedicated cloud account or project, separate from production and corporate IT | Raw data reachable from everyday admin accounts |
| Identity | Named users only, MFA enforced, roles split between preparer and approver | Shared logins and unreviewed access |
| Encryption | Storage encrypted at rest with keys the supplier controls; TLS for every transfer | Exposed disks, snapshots or intercepted transfers |
| Egress | Outbound internet blocked by default; allow-list only required endpoints | Copies to personal storage or unknown services |
| Logging | Access, copy, export and deletion events retained outside the environment | No record of who touched what |
| Deletion | Raw data deletion date set at creation; deletion confirmed in writing | Forgotten buckets that outlive the project |
- 01Your work records
- 02Personal details removed
- 03You approve the release
- 04Licensed to AI developers
How should data move in and out?#
Data should move in through one documented path and out through another, with nothing else in between. Inbound, exports go straight from the source system or its eDiscovery tool into the staging bucket, not through an employee's downloads folder. Outbound, only the approved package moves, through an encrypted transfer the supplier initiates.
Keep a simple manifest at each crossing: file names, record counts, date range and a checksum. Matching manifests at entry and exit prove that nothing was added or dropped by accident and support chain of custody later.
- Step 1: create the account, roles and logging before requesting any export.
- Step 2: export from the source system directly into the inbound bucket and record a manifest.
- Step 3: run de-identification and quality checks inside the environment only.
- Step 4: write the prepared package to a separate outbound location.
- Step 5: the supplier reviews samples and approves release in writing.
- Step 6: transfer the encrypted package, then delete raw data on the scheduled date.
Where do preparation tools run?#
Preparation tools should run inside the staging environment, next to the data, rather than calling out to a hosted service. Cloud providers offer inspection and de-identification services, such as Google's Sensitive Data Protection API and Amazon Comprehend, that are offered by the same cloud provider as the staging account, which keeps the egress allow-list short.
If a tool must call an external API, treat that vendor as a subprocessor: confirm what it stores, whether it keeps logs of content, and whether its terms let it use inputs to improve its models. Add only that endpoint to the egress allow-list. Avoid pasting samples into general chat assistants during troubleshooting; it is an easy exit that no control in the environment can see.
Common mistakes that undo the controls#
The mistake that most often undoes the controls is a second copy. Someone downloads a sample to check formatting, attaches it to a ticket or shares it in Slack, and the isolated environment no longer holds all the raw data.
Other mistakes are quieter: a contractor account left active after the work ends, logs stored inside the same account they are meant to audit, or snapshots and backups that escape the deletion date. Check for each before signing off.
- Samples copied to laptops, chat or tickets for convenience.
- Service accounts with broad, permanent keys instead of short-lived credentials.
- Logs that an environment admin could edit or delete.
- Backups and snapshots not covered by the deletion schedule.
- Token maps stored in the same bucket as the de-identified output.
Illustrative: a distributor stages ERP and email exports#
Illustrative: a fictional regional industrial distributor plans to license order exceptions and customer service email from its NetSuite instance and Google Workspace. Its outsourced IT provider creates a new cloud project with MFA, blocks outbound traffic, and routes logs to the company's existing security account.
The NetSuite saved-search exports and the Vault mbox files land directly in the inbound bucket. A preparer replaces customer contact details with consistent tokens, and the token map is written to a separate key-managed store. The COO reviews samples and approves release. After transfer, the provider deletes raw exports on the planned date and sends written confirmation, which goes into the deal file.
How SourceX approaches staging#
SourceX plans staging as part of the Preparation step in the SourceX five-step transaction. Large datasets stay in the seller's own storage or ship on encrypted drives; SourceX does not host multi-terabyte archives, so the staging environment is usually one the supplier controls.
The SourceX Evidence Packet records where data was prepared, which controls applied, who approved release and when raw copies were deleted. That record gives the buyer provenance and gives the supplier proof that its records were handled as agreed.
Frequently asked questions
Can we use an existing data warehouse as the staging environment?
Usually not without changes. Production warehouses connect to BI tools, analysts and pipelines that should never see raw exports headed for licensing. A separate project or account is simpler to lock down and to delete. If you must reuse infrastructure, create an isolated schema with its own roles, logging and network rules.
Does a SOC 2 report cover our staging environment?
Only if the environment is inside the scope of the report. A SOC 2 is an attestation by a CPA firm against the Trust Services Criteria for defined systems. A new project created for one data licensing transaction is often outside that scope, so document its controls directly rather than pointing to an existing report.
Who should have access during preparation?
A short list of named people: one or two preparers, the approver on the supplier side and an administrator for break-glass access. Contractors should get time-limited accounts that expire automatically. Review the list before release and again before deletion, and record each review.
What if the export is too large for cloud storage?
Very large archives can be prepared on the supplier's own servers or shipped on encrypted drives. The same principles apply: an isolated machine or network segment, named access, no outbound connections, logging and a deletion date for raw copies. Record drive serial numbers and handovers in the chain of custody.
How long should logs be kept after deletion?
Keep access and deletion logs at least as long as the license and any related retention obligations, because they are the evidence that raw data was handled properly. Store them outside the staging account so deleting the environment does not delete its audit trail. Agree the exact period with counsel.
Sources
- Google Vault export files are available for a limited period after the export starts and are then deleted. Source
- Microsoft Purview eDiscovery search exports expire after creation and must be downloaded before they are automatically deleted. Source
- Google's Sensitive Data Protection provides sensitive data inspection, classification and de-identification for text, images and Google Cloud storage repositories. Source
- Amazon Comprehend detects PII entity types and supports redaction as an asynchronous batch job. Source
- SOC 2 examinations use the AICPA Trust Services Criteria, and a SOC 2 is an attestation report by a CPA firm. Source
Related resources
See if your company qualifies
A short company assessment. No data uploads are needed.