Skip to content

Commit

Permalink
Refactor handling of sensitive data
Browse files Browse the repository at this point in the history
  • Loading branch information
MajaCernja committed Jan 3, 2024
1 parent 67d10c9 commit 2cf87a8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
3 changes: 3 additions & 0 deletions jaffle_shop/models/.sqlfluffignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# sqlfluff incompatible with models using hash_sensitive_columns macro - disabled till resolved.

stg_customers.sql
16 changes: 16 additions & 0 deletions jaffle_shop/models/staging/src_seeds/_models.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
version: 2

models:
- name: stg_customers_pii
meta:
owner: "[email protected]"
description: List of jaffle shop customers
columns:
- name: customer_id
tests:
- unique
- not_null
- name: first_name
meta:
sensitive: true
- name: last_name
meta:
sensitive: true

- name: stg_customers
meta:
owner: "[email protected]"
Expand Down
18 changes: 0 additions & 18 deletions jaffle_shop/models/staging/src_seeds/sensitive/_models.yml

This file was deleted.

0 comments on commit 2cf87a8

Please sign in to comment.