-
Notifications
You must be signed in to change notification settings - Fork 49
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
Specify table name in obfuscate calls #29
Labels
Comments
What do you think, @danielvlopes? |
How about
or something like that |
This looks even better. Though I think this would break the existing api. |
I needed this feature so I made this #30 |
Merged
Solved by #30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of today, we just blindly try to match a global list of fields we want to be obfuscated against all the attributes of every row Polo traverses:
polo/lib/polo/translator.rb
Line 38 in b79e48e
To do so, we pass in a list of fields to
Polo.configure
While this has been working well, it could be the case that someone wants to only obfuscate certain fields in certain tables.
What I'm suggesting is that we change the
obfuscate
method to also accept something like this:So in this case we're only obfuscating
email
fields in theusers
table, and not obfuscating emails on some other tables such asinvites
or some other table where emails are not sensitive.The text was updated successfully, but these errors were encountered: