josacar / triki

Mysql, PostgreSQL and SQL dump obfuscator aka anonimizer
MIT License
38 stars 4 forks source link

Whitelist all tables by default #7

Closed isaiev closed 2 years ago

isaiev commented 2 years ago

Hi.

I have a case where I want to keep all columns from all tables except table "X". Not it is possible to generate a scaffold, but this solution requires changing the configuration every time some table is added or deleted. If all tables and all columns will be kept, then I'll have the opportunity to build a static binary of obfuscator and forget about it for a long time.

josacar commented 2 years ago

This feature was not in the radar for me, current behavior forces obfuscator to be in sync with production data, so you will avoid storing PII/PHI/PCI data outside of production. PR are welcome to add a option flag.