A magento 2 module that let you anonymize the private data that are present in your MySql database using a specific CLI command.
- Introduction
- Installation
- Enabling the extension
- Configuration
- CLI command
- List of tables anonymized
- Running in developer mode
- Running in Force mode (production)
- Troubleshooting
- Support and contact
The Addeos Anonymize Extension is designed to help Magento store owners comply with GDPR regulations by providing a simple and efficient way to anonymize sensitive customer data on local environments. This extension ensures that personal information in specified database tables is anonymized, making it suitable for development and testing environments.
To install the Addeos Anonymize Extension, follow these steps:
composer require addeos/anonymize
php bin/magento module:enable Addeos_Anonymize
php bin/magento setup:upgrade
After installation, enable the extension using the following command:
php bin/magento module:enable Addeos_Anonymize
php bin/magento setup:upgrade
A new configuration section Addeos
> Anonymize
is visible in BO.
In that section, you will find a few fields that will allow you to define which tables and which tables will be anonymized.
Some default values are set.
The tables that will be anonymized can be configured.
All different types of columns that will be anonymized can be configured.
The generic strings type columns : The phone columns : The password type columns : The email type columns : The IP type columns :
Once the extension is enabled, a new CLI command becomes available:
php bin/magento addeos:anonymize
Use this command to initiate the anonymization process.
The Addeos Anonymize Extension anonymizes data in the following database tables:
- customer_entity
- customer_address_entity
- customer_grid_flat
- email_contact
- newsletter_subscriber
- paradoxlabs_stored_card
- quote
- quote_address
- sales_creditmemo_grid
- sales_invoice_grid
- sales_order
- sales_order_address
- sales_order_grid
- sales_shipment_grid
- stripe_customers
Ensure that you have a backup of your data before running the anonymization process.
The extension can only be executed on a Magento installation in developer mode. Ensure that your Magento environment is set to developer mode before running the anonymization command.
Logs are available in a log file named addeos-anonymize.log.
In a production environment, you can run the extension in force mode by adding the -f or --force parameter to the command:
php bin/magento addeos:anonymize -f
Note: Exercise caution when using force mode on a production Magento installation, and always have a backup of your data.
If you encounter any issues during installation or usage, consider the following troubleshooting steps:
- Check the Magento logs for error messages.
- Ensure that the extension is properly enabled using the `php bin/magento module:status command.
- Verify that the CLI command syntax is correct.
For any further assistance, reach out to our support team at didier@addeos.com. We are here to help you with any questions or concerns regarding the Addeos Anonymize Extension.
Thank you for choosing Addeos to enhance your Magento experience!