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

add procedure to anonymize and clean data #694

Closed
jexp opened this issue Dec 10, 2017 · 5 comments
Closed

add procedure to anonymize and clean data #694

jexp opened this issue Dec 10, 2017 · 5 comments

Comments

@jexp
Copy link
Member

jexp commented Dec 10, 2017

Using faker to replace fields

call apoc.data.anonymize({Label:{field:type},*:{field:type}});

where type would be

  • remove (for fields that are to be removed)
  • name
  • firstname
  • lastname
  • email
  • date
  • time
  • ip
  • company
  • city
  • country
  • street
  • ssn

The new content of the fields would come from the faker library.

@jexp
Copy link
Member Author

jexp commented Dec 6, 2018

@cskardon wants to work on this.

@lqst
Copy link
Contributor

lqst commented Mar 23, 2020

Maybe add functions that can "fake" data as well, i.e

set n.name = apoc.generate.fake('name').firstName

Not sure what the best function signature would be to wrap all fakers.

@jexp
Copy link
Member Author

jexp commented Mar 23, 2020

We should merge this into apoc: https://github.com/neo4j-contrib/neo4j-faker

@kvegter can you help with that?

then we have the infrastructure in place and can use it.

@jexp jexp assigned lqst and unassigned cskardon Mar 23, 2020
@lqst
Copy link
Contributor

lqst commented Mar 23, 2020

I totally missed https://github.com/neo4j-contrib/neo4j-faker @kvegter if you are up for it, let me know if I can help with testing, documenting or anything else.

@vga91
Copy link
Collaborator

vga91 commented Feb 19, 2025

Closing as it's obsolete and it's possible to anonymize data also using hashing functions like apoc.util.md5

@vga91 vga91 closed this as completed Feb 19, 2025
@github-project-automation github-project-automation bot moved this to Done (check if cherry-pick) in APOC Extended Larus Feb 19, 2025
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

4 participants