Skip to content

Privacy and preparation

Dataset pseudonym key custody: who should hold the reversal key?

By SourceX Editorial · Reviewed by Noah Loul ·

10 sections

Short answer

The data owner should hold the key that reverses dataset pseudonyms, or a processor acting only on its instructions, and the key, lookup table and entity crosswalk should never reach the recipient. Whether to destroy or retain it depends on post-delivery needs such as consistent refreshes or withdrawals; if retained, separate who administers it, who uses it and who approves any reversal.

Redaction

Dataset pseudonym key

This page covers dataset pseudonym key custody: who should hold the reversal key.Illustrative

Key takeaways

  • The key includes the hash secret, any token vault or lookup table, and the entity-resolution crosswalk; protect all of them.
  • Keep every reversal secret outside the recipient's environment; buyers act on pseudonym lists, never on keys.
  • Destroy the key when no post-delivery need exists; retain it only for refreshes, withdrawals or privacy requests.
  • Separate the person who administers the key, the job identity that uses it and the owner who approves reversal.
  • Safe custody does not make data anonymous; quasi-identifiers and long-lived pseudonyms still need review.

Who should hold the key that reverses dataset pseudonyms?

The data owner should hold the key, or a processor acting only on the owner's documented instructions, and it should never travel with the dataset or reach the recipient. What changes the decision is whether anyone has a legitimate need to re-link records after delivery. If nobody does, set a date to destroy the key. If someone does, keep it under separated duties, with each use approved and logged.

Here the key means everything that can turn a pseudonym back into a person: a secret used to compute keyed hashes, a token vault, a lookup table, and the entity-resolution crosswalk that decided which name variants belong to the same person. A custody plan that protects the hash secret but leaves the crosswalk in a shared folder has protected nothing.

This page is for data owners preparing records for licensing who have already chosen a pseudonymisation technique and now need to decide who controls reversal. It is general information, not legal advice; whether a dataset is personal, pseudonymised or de-identified under a particular law is a question for counsel on the specific facts.

Why the key counts as additional information, not just a password

Under GDPR Article 4(5), pseudonymisation means processing personal data so it can no longer be attributed to a specific person without additional information, provided that information is kept separately and protected by technical and organisational measures. The key is that additional information. Lose control of it and the dataset is back to being directly attributable.

The EDPB's Guidelines 01/2025 on pseudonymisation, adopted for public consultation in January 2025, call these items pseudonymisation secrets: secret keys used in transformation functions and tables that match pseudonyms to the data they replace. The guidelines also introduce a pseudonymisation domain, the context in which the controller wants attribution to be impossible, which can be as narrow as one external recipient. For a licensing workflow, the recipient's environment is the obvious domain, and the secrets must stay outside it.

A keyed hash shows why the secret matters. Python's hmac module implements HMAC as described in RFC 2104, taking a secret key and a message. Anyone holding the key and a list of candidate identifiers can recompute the pseudonyms and match them, so the key is a re-identification tool in its own right even without any lookup table.

Destroy, retain or escrow: which need after delivery decides it?

Decide custody by listing every reason someone might need to reverse a pseudonym after delivery, then keeping the key only as long as the strongest of those reasons lasts. The table shows the common reasons and what each implies.

Destroy, retain or escrow: which need after delivery decides it?
Need after deliveryExampleCustody decisionWhat it costs
NoneOne-time delivery, no refreshes, no withdrawal dutiesDestroy key and crosswalk after acceptance; record the destructionLater batches cannot reuse the same pseudonyms
Consistent pseudonyms across refreshesMonthly ticket deltas joined to earlier batchesRetain with the owner under separated dutiesA long-lived secret that must be protected for the whole feed
Withdrawal of specific people or recordsA customer leaves and their records must be removed downstreamRetain, or keep a pseudonym-only withdrawal list instead of the keyWithdrawal requests need an approval path
Individual privacy requestsAccess or deletion requests that reach licensed recordsRetain with the privacy owner as approverEach lookup is a re-identification event to log
Per-recipient pseudonymsTwo licensees must not be able to join their copiesOne key per recipient, all held by the ownerMore keys to track, rotate and destroy
Health records under HIPAAA covered entity assigns a re-identification codeCode not derived from individual information; mechanism not disclosedKeyed hashes of identifiers point to the expert determination route

The key custody and access responsibility matrix

Fill the matrix before the first pseudonymised record is produced, and attach it to the dataset's preparation record. Each row is a lifecycle activity; each column names who is responsible and the evidence that proves it happened. Recipient permissions are deliberately empty of key access.

At a glance

The key custody and access responsibility matrix

The key custody and access responsibility matrix
ActivityData owner (supplier)Processor or preparation partnerRecipient (buyer)Evidence
Generate secret or vaultApproves method and key length; security admin creates it in a managed key storeUses only through a service identity if engagedNo roleCreation log with date, creator and key ID
Store and back upOwns the key store and backup location, separate from the datasetNo copies outside the owner's storeNo roleStorage location record and backup policy
Use to pseudonymiseAuthorises each runRuns the job under a key-user identity with no admin rightsNo roleJob log with run ID, key ID and record counts
Hold the crosswalk or lookup tablePrivacy owner holds it in the same protected storeDeletes working copies after the runNo roleDeletion confirmation for working copies
Approve re-linkingPrivacy owner approves each request against a listed purposeExecutes only with written approvalMay request withdrawal by pseudonym, never by nameRequest, approval and result per event
RotateDecides rotation and whether history is re-issuedRe-runs pseudonymisation if instructedTold only that pseudonyms changed and from which batchRotation record and batch mapping note
Respond to suspected exposureTreats the key as compromised, stops use, assesses re-identification riskReports at once to the ownerReports any received secret immediately and deletes itIncident record and key state change
Offboard peopleRemoves key access on role change the same daySame for its staffNo roleAccess review with dates
DestroyDestroys key, backups and crosswalk at the agreed pointConfirms no retained copiesNo roleDestruction record listing every location

How do you separate duties inside the supplier?

Split the people who administer the key from the identity that uses it, and give approval of re-linking to a third role. No single person should be able to create, use and approve the use of the same key.

Cloud key services already model this split. Google Cloud KMS documentation distinguishes key managers, who manage key lifecycles, from key users, who encrypt and decrypt, and its recommended practice is that no principal holds both administrative and cryptographic usage roles on the same resource. The same pattern works for a pseudonymisation secret: a security administrator manages it, the preparation job's service identity uses it, and a privacy owner approves any reversal.

In a mid-sized company this usually maps to an IT or security lead, a data engineer whose job runs under a service account, and whoever owns privacy, often in legal or operations. Write the names and backups into the matrix; a custody plan that depends on one person being available fails the first time that person is on leave.

What can still identify people when the key is perfectly safe?

Combinations left in the data can identify people even if nobody ever touches the key. Good custody removes one route to re-identification; it does not make the dataset anonymous.

GDPR Recital 26 still treats pseudonymised data as information on an identifiable person when it could be attributed using additional information. California's CCPA definition of deidentified information asks for more than technique: the business must take reasonable measures, publicly commit to keep the data deidentified and not reidentify it, and contractually require recipients to comply. HHS guidance on HIPAA de-identification allows a re-identification code only if it is not derived from information about the individual and the mechanism is not disclosed.

Before relying on key custody, check what remains: job titles and locations in free text, rare events, exact timestamps that line up with public records, and the profile a stable pseudonym builds over years of activity. Where long linkage is not needed, scope pseudonyms to a period or a recipient so they cannot assemble a multi-year profile of one person.

Worked scenario (illustrative): timesheets and support tickets with a withdrawal duty

Illustrative only. A staffing company prepares three years of timesheet records and internal support tickets for licensing. Workers and client contacts are replaced with keyed-hash pseudonyms, and the buyer wants quarterly refreshes that join to earlier batches.

Because refreshes need consistent pseudonyms, the company retains the secret. Its security lead creates it in the company's managed key store; the data engineer's export job uses it through a service account; the head of people operations approves any reversal. The entity-resolution crosswalk that merged 14 name variants for one long-serving contractor goes into the same store, and working copies are deleted after each run.

In the second year, a client ends its contract and its contacts' records must be withdrawn. The privacy owner approves one lookup, the job produces a list of pseudonyms, and the buyer receives only that list with instructions to delete matching records. Nobody outside the supplier sees a name.

The exception: the buyer later asks for the key so it can merge the dataset with its own customer records. That request moves the key into the recipient's domain, defeats the pseudonymisation for that copy and changes the privacy analysis entirely. The answer is no, and the request is recorded as an incident-adjacent event for review.

Which assumption changes the custody decision, and how should uncertainty be recorded?

The assumption that changes the decision most often is how long re-linking will be needed, followed by who counts as inside the recipient's domain. Write both assumptions down with the date they were made and the event that would change them, such as a new refresh, a new recipient or a new legal role.

Key management standards give a vocabulary for the states a key passes through. NIST SP 800-57 Part 1 Revision 5 describes key states including active, suspended, deactivated, compromised and destroyed, and says a compromised key's cryptoperiod should no longer be considered valid. It also cautions that simply deleting keying material might not obliterate it completely. Recording the key's state and every location where it or its backups lived turns destruction from a claim into evidence.

Show uncertainty plainly. If you cannot confirm that every working copy of the crosswalk was deleted, record that the key's state is unknown rather than destroyed, and treat the dataset as still reversible for the purposes of any risk assessment.

When custody needs counsel, a privacy specialist or a security review

  • The dataset includes health, financial, children's or employee records, or records about people in more than one jurisdiction.
  • A recipient asks for the key, the crosswalk, or a re-linked extract for any purpose.
  • Withdrawal or individual privacy requests are expected to reach licensed copies.
  • The key may have been exposed, copied to a shared location or held by someone who has left.
  • The pseudonyms were derived from identifiers without a secret, such as plain hashes of email addresses, which anyone can recompute.

Settling key custody in a SourceX license

Because SourceX's standing terms put de-identification with SourceX through approved processing routes, who holds any pseudonymisation secret is a question to settle in writing before delivery, not after. The matrix above is a practical way to do that: it names who generates, stores, uses, approves and destroys, and keeps the recipient out of every row that touches the key.

Custody, rotation, withdrawal handling and destruction should all be agreed by the time the company signs off on scope and terms, since no record is delivered before that signature. Finding out whether the company qualifies at all takes only a short assessment, with nothing uploaded.

Frequently asked questions

Should the buyer ever receive the pseudonymisation key?

No. Giving the recipient the key or the lookup table places the means of re-identification inside its environment, which defeats the purpose of pseudonymising that copy. If the buyer needs to remove records, it can act on a list of pseudonyms the owner provides.

Is it safer to destroy the key immediately?

Destroying the key removes one re-identification route, but it also ends consistent pseudonyms for later batches and makes targeted withdrawals harder. Destroy it when no post-delivery need exists, and record the destruction across every location, including backups.

Does a hashed identifier need a key at all?

A plain hash of an email address or account number can be recomputed by anyone with a list of candidates, so it offers little protection. A keyed hash such as HMAC, a random token from a vault, or a lookup table puts reversal behind a secret that can actually be controlled.

Who should approve a request to re-link records?

A privacy or data protection owner who does not administer the key and does not run the job. Each approval should name the purpose, the records involved and the outcome, and the log should be reviewable later.

What happens if the key is exposed?

Treat it as compromised: stop using it, record the change of state, assess which delivered copies could now be re-identified and involve counsel on any notification duties. Rotating to a new key protects future batches but does not undo the exposure for past ones.

Sources

  • GDPR Article 4(5) defines pseudonymisation with additional information kept separately and protected, and Recital 26 treats pseudonymised data as information on an identifiable person. Source
  • EDPB Guidelines 01/2025 (consultation version) name keys and matching tables pseudonymisation secrets and define the pseudonymisation domain. Source
  • HHS guidance says a HIPAA re-identification code must not be derived from information about the individual and the re-identification mechanism must not be disclosed. Source
  • NIST SP 800-57 Part 1 Rev. 5 describes key states including compromised and destroyed, and notes that simple deletion may not fully remove keying material. Source
  • California Civil Code 1798.140 defines deidentified information with reasonable measures, a public commitment and contractual obligations on recipients. Source
  • Google Cloud KMS documentation separates key managers from key users and recommends that no principal hold both roles on the same key. Source
  • Python's hmac module implements HMAC as described in RFC 2104 using a secret key. Source

See if your company qualifies

A short company assessment. No data uploads are needed.

See if your company qualifies