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

Anonymize array fields #191

Open
bvicenzo opened this issue Dec 28, 2022 · 2 comments
Open

Anonymize array fields #191

bvicenzo opened this issue Dec 28, 2022 · 2 comments

Comments

@bvicenzo
Copy link

Hi.
I'd like to know how I would anonymize an array field such as an array of emails.
Is it possible? I didn't find how.

Thanks!

Best regards!

@grvm
Copy link

grvm commented Mar 7, 2024

Was almost done with anonymizing the whole db, then this came up. Any updates?

@grvm
Copy link

grvm commented Mar 14, 2024

Sharing what worked for me here, in case anyone is interested, its pretty simple actually:

some_array_column:
  template:
    format: "{ {{ _1 }} }"
    rules:
      - email: {}

So basically, you enclose a string in {} and it would be saved as an array, if the column is an array in postgres

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

No branches or pull requests

2 participants