r/SoftwareEngineering • • 14d ago

A Boolean PII Flag Is Not Enough

https://kore-nordmann.de/blog/a-boolean-pii-flag-is-not-enough.html
4 Upvotes

6 comments sorted by

2

u/bostonaholic 14d ago

The classification only holds up if new columns can't skip it. I'd add a check on migrations that fails CI when a column is added without a sensitivity and state annotation. Otherwise the catalog is accurate the week you build it and drifts as people ship schema changes.

1

u/Wagari_Nkurikiye 3d ago

how do you stop devs from just slapping the lowest sensitivity annotation on every new column just to make CI green

1

u/bostonaholic 2d ago

Flip the default so an unannotated column counts as the most sensitive level, and going lower is the choice that needs a reason. Then put the classification file under CODEOWNERS so a downgrade needs a sign-off from whoever owns privacy, and add a cheap name check that flags low ratings on obvious stuff like email, phone, dob, or address columns.

1

u/Nice-Corner9515 13d ago

A false flag can mean someone reviewed the column or nobody ever classified it and those shouldn't look identical to whoever uses the data next.

1

u/sadyetfly11 13d ago

the automation can only make it stricter, only a human can relax it” rule is the best part.

0

u/fagnerbrack 14d ago

TL;DR:

A pii: true/false tag throws away what a data protection officer asks about. On a university learning-analytics platform, the team classifies each column on two axes: sensitivity (direct identifier, quasi-identifier, sensitive content, none) and state (raw, pseudonymised, anonymised, dropped). A provenance tag adds whether a human declared it, lineage inherited it, or nobody knows. Classifications flow through dbt column lineage, and the most sensitive input wins. When parsing fails, the maximum upstream sensitivity applies. Automation can only tighten the assessment, and only an accountable human can relax it. Unknown columns block release, and a lint rule bans SELECT * to keep lineage trustworthy.

If the summary seems inacurate, just downvote and I'll try to delete the comment eventually πŸ‘
Click here for more info, I read all comments