Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebased version #58

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Chobsz
Copy link

@Chobsz Chobsz commented Jan 13, 2023

rebased version of previous PR #41

To enable masking and unmasking of single models or sources, functionality has been added as an optional parameter [resource_name].
The changeset should be backwards compatible.

I found the commands for unmasking too broad, affecting more resources than needed when applying of unapplying them.
I introduced this optional parameter, to quickly mask or unmask just 1 resource (sourcename from yamlfile) or nodename/foldername for model.
The old way, all sources would be unmasked during the post-hook or on-run-end, leaving unnecisary data exposed.

@Chobsz
Copy link
Author

Chobsz commented Jan 13, 2023

dbt run-operation apply_masking_policy --args '{"resource_type": "models","resource_name": "afas" }'
image
Works as designed, also tested in database.

dbt run-operation unapply_masking_policy --args '{"resource_type": "models","resource_name": "afas" }'
image
Works as designed, also tested in database.

dbt run-operation apply_masking_policy --args '{"resource_type": "sources","resource_name": "qisdm_replica_dbo" }'
image
Works as designed, also tested in database.

dbt run-operation unapply_masking_policy --args '{"resource_type": "sources","resource_name": "qisdm_replica_dbo" }'
image
Works as designed, also tested in database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant