Acme Marketing Architecture

6. Personal data: anonymisation gate before Bronze and a token vault

6. Personal data: anonymisation gate before Bronze and a token vault

Date: 2026-10-26

Status

Accepted


Problem

Personal data is present in two of the three sources and, indirectly, in the third. The full register is in data classification; the headline:

Source Personal data present Examples
Salesforce Yes, direct Lead and Contact names, emails, phones, addresses, titles; CampaignMember links a person to a campaign; Task and Event free text; User (employee) names and emails on owner and audit fields
HubSpot Yes, direct and behavioural Contact properties; IP-derived location; cookie-based visitor id (hutk); email engagement per recipient (opens, clicks with IP and user agent); form submissions; notes, calls and emails as free text; consent and subscription status
Google Ads Mostly aggregate, with exceptions Performance metrics are aggregates and not personal. Click identifiers (gclid) become personal when joined to a CRM lead that captured the same gclid. Customer Match and enhanced-conversion uploads contain hashed identifiers. change_event carries the email of the employee who made each change.

Two positions for the gate were weighed. A first draft placed it at Silver → Gold, which keeps raw fidelity in two restricted layers but makes erasure a physical delete across Bronze, Silver, Delta history and landing files. The architect's reference design for right to erasure on a lakehouse (reference/right-to-erasure-on-a-lakehouse.png) sets the opposite rule: personal identifiers are anonymised before Bronze; erasure is primarily the deletion of a mapping, not a scrub of ten stores. The architect confirmed that rule on 2026-10-26.

Terminology, stated precisely because regulators do: replacing an identifier with a token while a mapping exists is what GDPR Recital 26 calls pseudonymisation; the data is still personal data, with reduced risk. Once the mapping is deleted and no reasonable means of re-identification remain, the residual tokenised rows are anonymous. These documents call the mechanism the anonymisation gate after that end state, the term the business uses; towards the DPO or a regulator the tokenised layers are described as pseudonymised until the mapping is deleted. The DPO must agree with that position for this design before go-live.


Decision

We will run an anonymisation gate inside the Bronze loader, between the landing files and the Bronze Delta tables, backed by a token vault outside OneLake. Nothing carrying a direct identifier is ever written to a Delta table.

1. Where the data is (the places that matter here)

# Place Holds identifiers? Erasure action
1 Landing files (Files/landing/..., written by the copy activity and the adapters) Yes, for at most 7 days after successful promotion Delete the subject's records by rewriting or deleting the file (Path B)
2 Bronze Tokens only None: not attributable once the mapping is gone
3 Silver Tokens only None
4 Gold and business_event Tokens only None, unless the DPO requires person-level facts deleted as well (DELETE by token, then VACUUM)
5 Delta history and time travel Tokens only None
6 Token vault The mapping The only place erasure must succeed (Path A)
7 Adapter state and Service Bus messages Source object ids and tokens, no identifiers 30-day retention; messages expire
8 Logs and traces (Functions, pipelines, Application Insights) Must not: payload logging is forbidden; object ids only Purge by subject hash if a breach of the logging policy is found
9 Non-production copies Tokens only, refreshed from tokenised production Refresh; never from a raw copy
10 Backups and exports (optional cross-region export of Bronze) Tokens only Retention clock, documented

2. The gate (in the Bronze loader, driven by the classification register):

3. The token vault

4. Erasure run (the runbook, in order):

  1. Request received from the data subject or the DPO; identity, scope and legal holds verified.
  2. Path A, crypto-shred: in the vault, delete lookup_hash, identifier_enc and subject_link rows for the subject and stamp erased_at. From this moment the subject's tokens in every lake layer, history and event are not attributable.
  3. Path B, only where direct identifiers exist: delete the subject's records from landing files younger than 7 days; confirm no payload logging occurred (policy), else purge Application Insights by subject hash; non-production is refreshed from production, never from a raw copy; the optional backup export is on its retention clock.
  4. Verify per store: vault count = 0 for the subject; landing scan = 0; log scan = 0; optionally Gold count by token if the DPO required deletion there.
  5. Evidence record: request id, SHA-256 of the normalised identifier (computed at request time, not stored elsewhere), scope, each store, time, who, result. Appended to immutable storage (Azure Blob with a time-based retention policy, write-once, with a hash chain) and summarised in control.erasure_log. A zero-row query is a test, not evidence; the record is the evidence.
  6. Reply within one month (GDPR Article 12).
  7. Path A requires the DPO's documented position that residual tokenised data is no longer attributable (Recital 26); without it, Path B extends to Gold deletion by token.

5. Access and workspaces: the restricted workspace holds the landing files (place 1), the control schema, the Bronze loader (the only identity with vault lookup-or-create) and the Silver and Gold jobs. Bronze, Silver and Gold hold tokens and may be shared more widely than before, but remain personal data in law until a mapping is deleted; the workspace split is kept as the access boundary.

⚠️ Requires stakeholder input (DPO): the Recital 26 position for Path A; jurisdictions of data subjects; retention for landing files (7 days proposed), vault backups and adapter state; whether person-level facts in Gold must be deleted on erasure.


Considered Options

Option Summary Pros Cons
✅ Gate before Bronze in the Bronze loader, token vault outside OneLake Identifiers replaced at landing → Bronze; random tokens by vault lookup; erasure deletes the mapping No identifier in any Delta table, history, event or export; erasure is one delete plus verification; one place for cross-source identity; replay and reload never touch identifiers; broad Gold audience without per-consumer privacy review The vault is on the ingestion path (batch lookups, retries, caching per run); landing files are the one hot spot and must be purged on a short clock; free text is lost unless redacted; a consumer that needs identities must use the vault API
Gate at Silver → Gold (first draft) Raw fidelity with identifiers in Bronze and Silver; HMAC tokens in Gold Debugging and reconciliation on identifiers; no vault Identifiers in two layers plus history and landing; erasure is physical DELETE plus VACUUM across them; HMAC tokens are recomputable by anyone with the key. Rejected by the architect in favour of the reference design.
Gate in each adapter before landing Functions tokenise before writing landing files Landing files never hold identifiers Gate logic duplicated per adapter and vendor connector (the Salesforce copy activity cannot run it); the vault sits behind the public webhook path. Rejected; the loader is the single choke point.
HMAC-only tokens, no vault Deterministic keyed hash, no mapping store Simplest Erasure cannot delete a mapping, only the key for everyone; re-identification possible with the key and a candidate identifier. Rejected.
No gate, access control only Security in the semantic model Least work Fails data minimisation; one misconfiguration exposes everything. Rejected.

Consequences

Positive:

Negative / Trade-offs:

Risks: | Risk ID | Description | Impact (E/H/M/L) | Mitigation | |---------|-------------|------------------|------------| | R1 | An unclassified column or free text carries an identifier past the gate | H | Hard fail on unclassified columns; PII scanner on all string columns; free text dropped by default | | R2 | Vault compromise (dump plus k_lookup) enables re-identification | H | Customer-managed key, Entra-only auth, PIM, auditing, encrypted identifier column, alerting on reverse lookups | | R3 | Vault unavailable stalls ingestion | M | Batch API, retries, per-run token cache; landing retained; Azure SQL S1 at launch (locally redundant; the Standard tier cannot be zone-redundant), moved to zone-redundant General Purpose serverless if the vault SLA requires it (technology architecture, assumption A-64) | | R4 | Payloads logged by an adapter or pipeline leak identifiers outside the lake | H | Logging policy (ids only), code review item, Application Insights purge in the runbook | | R5 | DPO does not accept the Recital 26 position | M | Path B extends to Gold deletion by token; design unchanged otherwise |