Skip to content

Latest commit

 

History

History
65 lines (53 loc) · 5.46 KB

data-classes.md

File metadata and controls

65 lines (53 loc) · 5.46 KB

Data classes and retention

Every classified column on the platform, and what happens to it, per ADR-0301.

A new service is reviewed against this checklist. Without it, a service can omit its obligations and nobody sees it. The gap then shows on the first erasure request that needs it, at best a month before the deadline.

It is a view, not a source. The classes come from the pii:<class> tags in the migrations. The tag lives in the DDL and moves with the schema. The periods and disposals come from .config/retention.yaml. A column tag cannot hold how long to keep a class, or whether to delete or anonymise it. An edit to this file changes nothing: add the tag, or change the policy.

Policy per class

Class Retention At the end Why
contact life of the account, then 30 days delete Email, phone, postal address. It identifies a person directly, so an erasure request removes it and does not anonymise it.
device 90 days delete IP address, user agent, device identifier. Raw IP addresses are never stored, per ADR-0700. This class covers what is left after reduction.
financial 7 years anonymise Payment instrument details. The period is a bookkeeping obligation, not a product decision. It overrides an erasure request for the row's financial fields.
free_text life of the account, then 30 days delete A field that a user types into, which can hold anything. It gets the strictest likely class, because its contents cannot be predicted.
government_id only while a legal obligation requires it delete National identifier, passport, tax number. The shortest period of any class, because the risk is to hold one with no current obligation.
identifier life of the account, then 30 days anonymise A pseudonymous subject or account identifier. It is anonymised, not deleted, because rows keyed by it, such as orders and charges, have their own retention obligation. That obligation outlives the account.
location 90 days delete Coordinates and precise geolocation.
name life of the account, then 30 days delete A person's name.
none not applicable not applicable Checked, and holds no personal data. The tag shows that someone decided, so it differs from a column nobody checked.
special_category only while a legal obligation requires it delete GDPR Art. 9 data, such as health and biometrics. The platform stores none. The class exists so that adding one is a deliberate act against a stated rule.

Classified columns

28 columns across 5 services.

Service Column Class Retention At the end
analytics consent.identity_id identifier life of the account, then 30 days anonymise
analytics consent.purpose_version none not applicable not applicable
analytics consent.session_id identifier life of the account, then 30 days anonymise
analytics consent.source none not applicable not applicable
analytics consent.state none not applicable not applicable
analytics events.device_class device 90 days delete
analytics events.identity_id identifier life of the account, then 30 days anonymise
analytics events.name none not applicable not applicable
analytics events.properties free_text life of the account, then 30 days delete
analytics events.session_id identifier life of the account, then 30 days anonymise
analytics funnel_rollup.bucket_end none not applicable not applicable
analytics funnel_rollup.bucket_start none not applicable not applicable
analytics funnel_rollup.computed_at none not applicable not applicable
analytics funnel_rollup.funnel none not applicable not applicable
analytics funnel_rollup.sessions none not applicable not applicable
analytics funnel_rollup.step_index none not applicable not applicable
analytics funnel_rollup.step_name none not applicable not applicable
catalog products.currency none not applicable not applicable
catalog products.price none not applicable not applicable
orders orders.currency none not applicable not applicable
orders orders.idempotency_key none not applicable not applicable
orders orders.org_id none not applicable not applicable
orders orders.owner_id identifier life of the account, then 30 days anonymise
orders orders.total none not applicable not applicable
orgs org_members.user_id identifier life of the account, then 30 days anonymise
orgs orgs.name none not applicable not applicable
payment charges.amount none not applicable not applicable
payment charges.currency none not applicable not applicable

What this does not cover

ADR-0500 owns telemetry retention, and ADR-0200 owns backup retention. This registry owns application data, which is the part that an erasure request reaches.

A column tagged pii:none appears here too, on purpose. The tag shows that someone checked the column and found no personal data. Without the tag, nobody can tell that from a column nobody checked.