rheinwerk-verlag / pganonymize

A commandline tool for anonymizing PostgreSQL databases
http://pganonymize.readthedocs.io/
Other
42 stars 26 forks source link

Allow environment variables in schema definition #38

Closed nurikk closed 2 years ago

nurikk commented 2 years ago

Hi! This PR introduces environment variable substitution for schema configuration

Now you can craft config file like this:

    tables:
     - auth_user:
        search: id  = '${USER_ID_TO_BE_DELETED}'
        fields:
         - first_name:
            provider:
              name: clear

and then run USER_ID_TO_BE_DELETED=145 anonymizer

hkage commented 2 years ago

Hi, thanks again for another contribution :+1: I will take a look at it as soon as possible. The feature looks promising and useful.

hkage commented 2 years ago

Looks good to me :+1: Thanks for the pull request!