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

[smart tag] automatic tags from user patterns #195

Open
bastienboutonnet opened this issue Apr 5, 2021 · 0 comments
Open

[smart tag] automatic tags from user patterns #195

bastienboutonnet opened this issue Apr 5, 2021 · 0 comments

Comments

@bastienboutonnet
Copy link
Member

bastienboutonnet commented Apr 5, 2021

We want to allow users to provide some mappings to use for automated tagging of columns. For example, they may want to say that "everything that contains 'email' should be tagged as PII".

We probably want to make two convenience methods for ease of use such as contains and full_match (under the hood equality test) as well as let more programming oriented users sumbit regex patterns

The entry in the sugar_config.yml could look something like this:

smart_tags:
    - PII:
        - contains:
            - 'email'
        - full_match:
            - 'name'
        - regex:
            - '_name$|name_(?!company)'

NOTE: would we want to maybe offer some sort of --dry-run option? What I mean by this would be we that we may want to tell users "based on your conditions (especially valuable for people using regexes) we would tag x, y, x as PII"

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

No branches or pull requests

1 participant