Privacy and preparation
Raw and prepared dataset access separation: five zones, one read test
By SourceX Editorial · Reviewed by Noah Loul ·
10 sections
Short answer
Raw and prepared dataset access separation means no person or job that reads identifiable raw exports can also approve or ship the prepared release, unless a logged exception says so. Split preparation into five zones, give each its own roles, key and log, then prove the split with a read test per identity. Prebuilt cloud roles can quietly break it: 30 AWS managed policies allow object reads in any S3 bucket with no condition.
Checklist
Raw prepared dataset access
Key takeaways
- Separation is a written set of read rules per stage plus dated evidence that each identity can read only its own zones; a diagram is not evidence.
- Five zones keep the problem small: raw landing, working, key vault, candidate and release, each with its own readers, writers, encryption key and log stream.
- Whoever saw the identifiers should not certify they are gone, and nobody who reviews prepared output should be able to open the token map.
- Of 186 customer-attachable AWS managed policies that allow S3 object reads, 30 allow them on any bucket with no condition, ReadOnlyAccess and the DataScientist job-function policy among them (IAMTrail copy, 28 October 2026).
- Separation lowers exposure during preparation; it does not make prepared records anonymous or licensable, and pseudonymised data stays personal data while a key exists (EDPB for the EU, ICO for the UK).
What does raw and prepared dataset access separation have to prove?
It has to prove that identifiable raw records and the prepared dataset are reachable by different identities, and that the few identities allowed near both reach them only through a logged, time-limited path. A policy document saying so is the claim; a dated read test against every identity is the proof.
The decision belongs to a privacy or security reviewer before the first export lands, and it is narrower than it sounds. It is not whether the prepared data is anonymous, which is a separate identifiability review, and not whether the company may license it, which is a rights question. It is who can read what at each stage of preparation, and which record shows the answer held for the whole run.
Regulators describe the same idea in their own terms. The European Data Protection Board's Guidelines 01/2025 on pseudonymisation, written for the EU GDPR and adopted for public consultation in January 2025, describe a pseudonymisation domain: the people and systems within which data must not be attributable to individuals, with the lookup tables and keys that would allow attribution kept outside it. The UK Information Commissioner's Office says the additional information that re-links pseudonyms has to be held separately and kept secure, and it suggests separating the people who pseudonymise, the people allowed to access that information and the people who later process the pseudonymised data.
In the United States, NIST's voluntary Privacy Framework defines its access-control category as "Access to data and devices is limited to authorized individuals, processes, and devices." None of this is legal advice: which rule applies, and what it demands of a particular company, is for counsel to decide.
Five zones, each with its own readers and writers
Five zones cover a typical preparation run for business records such as help desk tickets, ERP transactions or file-share documents, and each zone gets its own readers, writers, encryption key and log stream. Fewer zones force identities to straddle stages; more zones add handoffs without adding much protection for most record sets.
Name the zones in the run plan before any export is requested, and treat anything in a mixed state as raw. The matrix below is the part to copy; the right-hand column is the rule an auditor would test:
| Zone | What it holds | Who may read | Who may write | Rule that keeps it apart |
|---|---|---|---|---|
| 1. Raw landing | Exports exactly as they left the source system, identifiers intact | The de-identification job; the exporter for manifest and checksum checks only | The exporter, append-only | No reviewer, approver, release job or recipient can read here |
| 2. Working | Intermediate files part-way through transformation | The de-identification job; an engineer on a named, expiring debug grant | The de-identification job | Handled as raw: same key family and log stream as zone 1, emptied when the run ends |
| 3. Key vault | Token maps, salts and any reversal key | The de-identification job, to use keys; the key custodian | The key custodian | Closed to reviewers, approvers, the release job and recipients; every read logged and reviewed |
| 4. Candidate | De-identified output awaiting privacy review | The privacy reviewer, the release approver and the preparation engineer | The de-identification job only | Fixes go back as rule changes and a rerun, never as hand edits |
| 5. Release | The approved package, its manifest and file hashes | The release job; each recipient through a per-delivery grant | The release job, only after approval | Written only from a candidate version that passed review |
Four pairings no single identity should hold
Four pairings break separation and should be impossible by design rather than merely discouraged. Each lets one identity undo what the zones were built to keep apart, so the matrix is not finished until the role definitions make every pairing below unreachable.
The pairings follow roles, not job titles. In a company of 60 people the engineer who ran the export may later need to debug a failed transformation; that works if the debug grant is named, time-limited and logged, and if the same engineer is then barred from approving the release. NIST's Privacy Framework puts the underlying principle as managing access permissions under least privilege and separation of duties (subcategory PR.AC-P4).
- Reading raw records and approving the release: whoever saw the identifiers should not be the person who certifies they are gone.
- Holding key-vault access and reviewing prepared output: a reviewer with the token map can re-link every record they are checking.
- Editing candidate files by hand and approving them: hand edits bypass the logged rules, so nobody else can reproduce what shipped.
- Receiving the release while holding any upstream grant: a recipient with a raw or working-zone path can rebuild what de-identification removed.
Measured: how many AWS-made policies would read the raw bucket?
Thirty. Of the 1,223 AWS managed IAM policies on the paths customers attach to their own roles, service-linked role policies excluded, 186 allow reading S3 objects somewhere, and 30 of those, 16.1 percent, allow it on any bucket with no condition. Attaching any of the 30 to a preparation role opens the raw zone as well as the release, according to our count on the IAMTrail copy of AWS's managed policies (commit 69143f1, 28 October 2026).
The 30 include ReadOnlyAccess, AmazonS3ReadOnlyAccess and AmazonS3FullAccess, the DataScientist, DatabaseAdministrator and SystemAdministrator job-function policies, AWSLambdaExecute and AmazonEC2RoleforSSM, along with AdministratorAccess and PowerUserAccess. Another 33 reach any bucket only under a condition; AmazonSageMakerFullAccess, for example, reads objects anywhere only when they carry a specific tag. The remaining 123 name the buckets they read, usually through an AWS naming pattern such as aws-glue-*, which a bucket called example-raw-zone-bucket does not match.
The label read-only misleads here. AWS's own policy reference shows AmazonS3ReadOnlyAccess allowing s3:Get*, s3:List* and s3:Describe* on every resource, which covers downloading objects from any bucket in the account unless something else, such as a bucket policy, denies it. Because AWS does not let customers change the permissions inside a managed policy, the way to bring a role back inside its zone is to detach the broad policy and write one scoped to that zone's storage.
Encryption keys add a second lock worth testing. Of the 30, 23 contain no kms:Decrypt grant that would cover a customer-managed key, 4 grant one only under a condition and 3 grant it on any key, so a raw zone encrypted under its own customer-managed key, with a key policy that names only raw-zone roles, would likely stop most of them even if one were attached by mistake. Whether it does in a given account is exactly what the read test in the next section checks. The four classes, counted over all 1,223 customer-attachable policies:
| Class | Policies | Share of 1,223 | What it means for a raw-zone bucket |
|---|---|---|---|
| A. Any bucket, no condition | 30 | 2.5% | Reads raw objects as soon as it is attached to a role |
| B. Any bucket, under a condition | 33 | 2.7% | Reads raw objects if the condition holds, for example an object tag |
| C. Named buckets only | 123 | 10.1% | Reads only buckets matching its own name patterns |
| D. No object read | 1,037 | 84.8% | Cannot read S3 objects on its own |
The separation read test: probes, expected results, evidence
Run a short read test for every identity in the matrix three times: after the zones are built and before any raw export lands, after any role or policy change, and on the final candidate version before anything ships. A pass means every probe returns exactly the expected allow or deny, with the evidence filed alongside the run.
Use two kinds of probe. A policy evaluation, such as a cloud provider's policy simulator, shows what the written rules allow; a live attempt against a harmless test object placed in each zone shows what the running system does. A denied live attempt should also appear in the access log. If it does not, the logging has failed, not the permission.
The probes below are the ones that catch the four forbidden pairings; extend the table with one row per identity in your own matrix:
| Probe | Identity | Expected | Evidence to file |
|---|---|---|---|
| Read a test object in raw landing | Privacy reviewer | Denied | Simulator result and the logged denial |
| Read a test object in candidate | Privacy reviewer | Allowed | Logged read with time and identity |
| Read the token map in the key vault | Release approver | Denied | Simulator result and the logged denial |
| Read a test object in release | De-identification job | Denied | Simulator result for the job's service identity |
| Write a file to release | Preparation engineer | Denied | Logged denial on the write attempt |
| Read a test object in raw landing | Recipient grant | Denied | Simulator result for the per-delivery grant |
| Edit or delete an access log entry | Any data role | Denied | Logged denial in a log store the data roles cannot administer |
When a reviewer asks to see raw records
Grant the narrowest view that answers the reviewer's question, inside the zone where the records already sit, instead of copying raw records into the candidate or release zone. Most requests to see raw data are requests to confirm that a transformation did what it claimed, and paired evidence usually answers them.
Weigh each request on two axes: how much identifiable content the view exposes, and what the reviewer learns that a safer view cannot show. The rows are requests that come up in most runs, each with a decision:
| Request | Exposure if granted | What the reviewer learns | Decision |
|---|---|---|---|
| Spot-check that names were replaced | Identifiable text for the sampled records | Whether the replacement rule fired on real cases | Paired before-and-after view of a seeded sample, read inside raw landing, no export |
| Count records an exclusion rule dropped | None when only counts are shown | Whether exclusions match the approved scope | Counts from the job log; no record view |
| Debug a transformation that failed on some records | Raw fields of the failing records | The cause of the failure | Named, expiring grant to the working zone; that engineer cannot approve the release |
| Check that tokens stay consistent across files | Token map entries | Whether links between records survived | A consistency report from the job run; the key vault stays closed |
| A buyer asks to validate against originals | Raw records leave the supplier's control | Little that a candidate sample cannot show | Decline; offer the candidate sample and the job's rule report |
Does separation make the prepared data safe to license?
No. Separation limits who can see identifiable records while preparation runs; it does not change what the prepared records reveal, and it says nothing about whether the company may license them.
European regulators are explicit on the first point. The EDPB's guidelines treat pseudonymised data as personal data while it can still be attributed to a person, even when another party holds the additional information, and the ICO's guidance says that holding the information that allows identification means still holding personal data. A perfectly separated pipeline can therefore release records that point to someone through their content, which is why the identifiability review and the residual risk report are their own steps. Removing direct identifiers or securing transfer does not eliminate privacy risk or rights risk.
Rights are another review again. Separation does not settle customer contract limits, vendor terms or earlier licenses; those are decided on documents before the export. What a separated pipeline adds is assurance that records excluded for rights reasons never reach a zone from which someone could ship them.
Eight checks before the release zone opens
Open the release zone only when all eight checks pass and the evidence for each is filed with the run. Each item is a yes or no that someone other than the preparer can confirm, which is what makes the list useful at sign-off:
- The zone matrix in force matches the one approved for this run, and any change is dated and approved.
- The read test passed on the final role and policy set, with simulator output and logged denials attached.
- No prebuilt cloud policy that reads any bucket is attached to a zone role; each role carries a policy scoped to its own zone.
- Every grant opened during the run, debug grants included, is closed, with open and close times in the log.
- The key vault's access log was reviewed and shows only the de-identification job and the key custodian.
- The release job wrote the package from the reviewed candidate version, and the file hashes match the manifest the reviewer signed.
- The release approver held no raw or working-zone grant at any point in the run.
- Raw landing and working copies carry a deletion date or a written retention decision with a named owner.
Where SourceX's own controls begin
When a company licenses records through SourceX, the zones above sit on the supplier's side of the line, and SourceX's live trust page describes the controls on its side in its own words. It says that "Companies only see their own records," that supplier files sit in private storage and are shared only through links that expire within minutes, that SourceX authorizes its customers' access to deidentified datasets explicitly for each delivery, and that every status change is recorded with who made it and when.
On preparation, the same page leaves the choice of systems, records and years to the supplying company, with nothing outside that choice included, and says that once SourceX gives the go-ahead, the data is "extracted, transferred and de-identified through approved processing routes," with large datasets able to stay in the supplier's own storage or ship on encrypted drives. The legal framework page adds that the de-identification method used is recorded for each dataset and that no method removes re-identification risk entirely.
A zone matrix and a passing read test are the supplier's own controls; SourceX's pages do not list them as entry conditions. The first step toward licensing is a short company assessment with no data uploads, which checks fit, is not an offer and promises no payment.
Methods note: the managed-policy count and what it leaves out
The count uses the IAMTrail archive (formerly MAMIP), an unofficial copy of AWS managed IAM policies refreshed from the AWS API every hour, cloned on 28 October 2026 at commit 69143f1. The population is the 1,591 policies in the archive's saved policy list (policies-list.json); 82 files in its policies folder that are not on that list, deprecated or stray, were ignored. Customer-attachable means a path of /, /service-role/ or /job-function/ (1,223 policies); the 363 policies under /aws-service-role/ and 5 under /root-task/ were excluded. Where the list and a policy file disagreed on version (11 of the 1,223), the file's document was used.
Each policy was probed for the action s3:GetObject on the object key exports/2026/records.csv in a bucket named example-raw-zone-bucket; an independent recount with three different keys gave the same result. Matching follows IAM wildcards (an asterisk matches any run of characters, a question mark one character), with actions compared without regard to case and resources with case; NotAction and NotResource are honored. A statement with a non-empty Condition counts as conditional. An unconditional Deny that applies to the probe cancels the policy's grant; five policies carry one, and the only one that also allows object reads elsewhere is counted as named buckets only. The key measure checks the 30 class A policies for an Allow of kms:Decrypt whose resource matches an example customer key ARN. Percentages are rounded half up to one decimal, once. AWS's own reference page for AmazonS3ReadOnlyAccess matched the archive's copy (version 3, the same five actions on every resource).
Not measured: customer-managed and inline policies, bucket policies, service control policies, permissions boundaries and KMS key policies, any of which can narrow or widen what a role can do; Microsoft Azure and Google Cloud roles; and how often companies attach these policies to preparation roles. The script and its full output, including every policy in classes A to C, are kept with this article's working files.
Frequently asked questions
Should the de-identification job be allowed to read raw data?
Yes; it is the one identity that has to read raw landing and the key vault and write candidate output. Run it under its own service identity, give it no access to the release zone, and make sure no person can borrow its credentials. If an engineer needs to inspect what the job saw, that is a separate, expiring grant to the working zone.
Does each zone need its own cloud account?
Not always. Separate storage locations with their own policies, encryption keys and log streams can be enough for a business record set. Separate accounts add a boundary that one mistakenly attached policy cannot cross on its own, which matters most for the raw landing zone and the key vault.
Can the same person review the candidate and approve the release?
It can work in a small team if that person never held a raw or working-zone grant during the run and never edited candidate files by hand. The separation that matters most is between seeing identifiers and certifying that they are gone. Record who did both roles and why.
Does AWS ReadOnlyAccess let someone download data?
Yes. In the copy of AWS managed policies counted for this article, ReadOnlyAccess allows s3:GetObject on any bucket with no condition, so it can download objects unless something else denies the read. Read-only means it cannot change resources, not that it cannot read the data in them.
How often should the separation read test run?
At least three times per run: before the first raw export lands, after any role or policy change, and on the final candidate version before release. Add a run whenever a new person, contractor or vendor identity joins the project, since new identities are where broad prebuilt permissions most often arrive.
Sources
- IAMTrail (formerly MAMIP) archives AWS managed IAM policies fetched hourly from the AWS API; at commit 69143f1 (28 October 2026) its saved list holds 1,591 policies, of which 1,223 sit on customer-attachable paths and 30 allow s3:GetObject on any bucket with no condition (our count). Source
- AWS's managed policy reference shows AmazonS3ReadOnlyAccess version 3 allowing s3:Get*, s3:List*, s3:Describe*, s3-object-lambda:Get* and s3-object-lambda:List* on all resources. Source
- AWS states that customers cannot change the permissions defined in AWS managed policies and that AWS updates apply to every identity the policy is attached to. Source
- EDPB Guidelines 01/2025 on pseudonymisation (EU GDPR) describe a pseudonymisation domain, keeping pseudonymisation secrets such as lookup tables and keys separate from it, and pseudonymised data remaining personal data while attributable. Source
- ICO pseudonymisation guidance (UK GDPR) says the additional information must be held separately and kept secure, suggests separating pseudonymisation, key-access and downstream processing roles, and treats data as personal while identifying information is retained. Source
- NIST Privacy Framework Version 1.0 core: category PR.AC-P limits access to data and devices to authorized individuals, processes and devices; subcategory PR.AC-P4 manages access permissions under least privilege and separation of duties. Source
- SourceX's trust page lists organization-level access, private storage with links that expire within minutes, per-delivery authorization of customer access to deidentified datasets, a full audit trail of status changes, and preparation through approved processing routes. Source
- SourceX's legal framework page says the de-identification method used is recorded for each dataset and that de-identification reduces risk but cannot remove it entirely. Source
- SourceX's how-it-works page says that once SourceX gives the go-ahead, the data is extracted, transferred and de-identified through approved processing routes. Source
See if your company qualifies
A short company assessment. No data uploads are needed.