-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
…s-compatible way. Pass in one or more strategies under "masking_strategy", either as a single strategy or a list of strategies. If a list is supplied, the strategies will be applied in the same order as the list.
@ethyca/docs-authors Adding this PR in fidesops instead of fides after talking to Sean - sounds like there may be another release - Small docs changes around using fides as a masking engine |
…le - it still needs to be a Dict with string keys, but the values are much more open. This supports other masking strategies with more complex configurations.
) | ||
masked_values = strategy.mask(values, None) | ||
values = request.values or [] | ||
masked_values: Optional[List[Any]] = request.values.copy() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be optional? It looks like it might always be an empty list if nothing else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes I agree with you, I was getting "Incompatible types in assignment" mypy errors because masking.mask
is allowed to take in None. I think we should instead ignore the type hint error then when we call masking.mask
👍 Looks good on the docs front, thank you! |
…_masking_strategies # Conflicts: # CHANGELOG.md
thanks for reviewing @conceptualshark 😄 |
Made some type adjustments @seanpreston back to you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @pattisdr
…l/1428 to allow multiple masking strategies to be specified when using fides as a masking engine.
* add redis settings fix * Copy and paste over the work inhttps://github.com/ethyca/fidesops/pull/1428 to allow multiple masking strategies to be specified when using fides as a masking engine. * Consolidate multiple Fixed headings, and update Changelog with the redis db index and the multiple masking strategies changes. Co-authored-by: Dawn Pattison <[email protected]>
Purpose
Allow multiple masking strategies to be specified when using fides as a masking engine.
Changes
Checklist
CHANGELOG.md
fileCHANGELOG.md
file is being appended toUnreleased
section in an appropriate category. Add a new category from the list at the top of the file if the needed one isn't already there.Run Unsafe PR Checks
label has been applied, and checks have passed, if this PR touches any external servicesTicket
Fixes https://github.com/ethyca/fidesops-plus/issues/74