Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Add new "db:anonymize" command, that will scan all database for text that looks like e-mail (hopefully database is small enough) and replaces them based on DBG_EMAIL setting value.

Implementation details:

  • create IDatabaseAnonymizer interface with "anonymizeDatabase()" method
  • whoever wants (e.g. each module or unit) create a class (or use existing class), that would implement that interface and in that method anonymize it's own tables (e.g. mangle usernames, e-mail, anything else)
  • or we can create base abstract class with some helper methods and let sub-class it and then discover sub-classes

Related Tasks