Add PII protection documentation #1973
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add PII protection documentation
Summary
This PR adds comprehensive documentation for Elementary's PII protection features that were implemented in PR #831 (table-level protection) and mentions PR #833 (column-level protection). The new documentation file covers:
disable_samples_on_pii_tags,pii_tags)The documentation is based on code inspection of the implementation in the
dbt-data-reliabilityrepository, particularly the logic inmacros/edr/materializations/test/test.sqlandmacros/edr/system/system_utils/is_pii_table.sql.Review & Testing Checklist for Human
disable_samples_on_pii_tags,pii_tags) and default values are correct in the actual codebase/data-tests/directoryRecommended test plan: Set up a test dbt project with Elementary, tag a model with
pii, enabledisable_samples_on_pii_tags: true, run tests, and verify that no sample rows are collected in theelementary_test_resultstable.Diagram
%%{ init : { "theme" : "default" }}%% graph TD subgraph "Elementary Documentation" DocsTests["docs/data-tests/"]:::context PIIDoc["docs/data-tests/pii-protection.mdx"]:::major-edit ExistingDocs["*.mdx files"]:::context end subgraph "dbt-data-reliability Implementation" TestMat["macros/edr/materializations/test/test.sql"]:::context PIITable["macros/edr/system/system_utils/is_pii_table.sql"]:::context ConfigVar["macros/edr/system/system_utils/get_config_var.sql"]:::context end subgraph "User Configuration" DBTProject["dbt_project.yml vars"]:::context ModelSchema["models/schema.yml tags"]:::context end TestMat --> PIIDoc PIITable --> PIIDoc ConfigVar --> PIIDoc PIIDoc --> DocsTests subgraph Legend L1["Major Edit"]:::major-edit L2["Minor Edit"]:::minor-edit L3["Context/No Edit"]:::context end classDef major-edit fill:#90EE90 classDef minor-edit fill:#87CEEB classDef context fill:#FFFFFFNotes
.mdxformat used throughout the Elementary docs