1.- Clone the base project
git clone https://github.com/coreBOS/masqueradeAnonymizer.git
2.- Install masquerade
curl -L -o masquerade.phar https://github.com/elgentos/masquerade/releases/latest/download/masquerade.phar
chmod +x masquerade.phar
3.- Edit config.yaml file and set access to the database you want to anonymize. REMEMBER: make a backup! DO NOT work directly on the production database (just in case it wasn't obvious).
4.- Adapt the existing anonymization files. For each module file in the config directory, you will have to add an anonymization step for the custom fields you have created. You can apply a specific transformation to each one and you can read the ones we have created for examples, also read below for some guidelines
5.- Create new anonymization files for each custom module you may have created for your coreBOS install. Read below for some guidelines
6.- Run
./masquerade.phar run
7.- Debug and repeat until finished
8.- After finishing the anonymization, we recommend you put all the
files in the build directory of coreBOS, something like:
build/anonymize
and version them inside the project.
php build/HelperScripts/listmodules.php 1
to get a list of all your custom modules and extensions
php build/HelperScripts/listfields.php modulename
to get the list of fields of your modules