Dbt: Flag personally identifiable information in dbt docs

Created on 17 Sep 2018  路  3Comments  路  Source: fishtown-analytics/dbt

Feature

Feature description

Add ability to flag PII-containing fields and/or models in dbt documentation

Who will this benefit?

Anyone needing to deal with PII handling responsibilities

Most helpful comment

Thanks for the feature request @jgillies! We currently surface schema tests in the report, though it would be really great to also surface _attributes_ of columns, including (but not limited to) their status as PII.

That interface currently looks like this:
screen shot 2018-09-17 at 4 41 51 pm

Are you imagining that you'd tag these columns as PII in schema.yml? It might be compelling to add another field to schema.yml for properties that looks something like this:

version: 2

models:
  - name: some_model

    columns:
        - name: customer_name
          properties:
              - pii
          tests:
              - not_null

A property like that could flow through to the documentation website, for instance

All 3 comments

Thanks for the feature request @jgillies! We currently surface schema tests in the report, though it would be really great to also surface _attributes_ of columns, including (but not limited to) their status as PII.

That interface currently looks like this:
screen shot 2018-09-17 at 4 41 51 pm

Are you imagining that you'd tag these columns as PII in schema.yml? It might be compelling to add another field to schema.yml for properties that looks something like this:

version: 2

models:
  - name: some_model

    columns:
        - name: customer_name
          properties:
              - pii
          tests:
              - not_null

A property like that could flow through to the documentation website, for instance

Yep, that's exactly what I had in mind. And expanding the properties beyond just PII is a great idea, too.

edit: another thought - it would be cool to be able to filter on the properties as well, so you could see all columns with a particular property set.

+1 on this. This would be extremely useful.

Was this page helpful?
0 / 5 - 0 ratings