Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mschop/shopware-prod2testing
Shopware plugin, that anonymizes person related information and secrets from db.
https://github.com/mschop/shopware-prod2testing
anonymizes shopware testing
Last synced: 3 months ago
JSON representation
Shopware plugin, that anonymizes person related information and secrets from db.
- Host: GitHub
- URL: https://github.com/mschop/shopware-prod2testing
- Owner: mschop
- License: mit
- Created: 2018-07-04T05:47:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-19T15:24:46.000Z (about 5 years ago)
- Last Synced: 2024-04-18T18:56:22.505Z (7 months ago)
- Topics: anonymizes, shopware, testing
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 10
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-shopware - Prod2Testing - Anonymize Shopware database for use of live data in development environments. (Development Plugins)
README
# shopware-prod2testing
If you develop new features for a shop, the best test data are those from the production system. Directly using
production databases for creating development or staging instances can cause legal and organisational problems.This plugins runs all necessary steps, to transform a production db to a staging or testing db.
## Installation
- Download the repo
- Place it into /custom/plugins## Run
The plugin can be executed by running the following command:
bin/console prod2testing:run
## Anonymization ConfigurationThe plugin replaces all non empty values from the db, depending on the provided configuration. The anonymization
configuration is defined in the file `config.json`. You have two ways, to change the configuration:### Override
```
bin/console prod2testing:run --config /path/to/your/custom-config.json
```This replaces the anonymization configuration completely.
### Extend
```
bin/console prod2testing:run --additionalConfig /path/to/your/extension-config.json
```This extends or overrides specific entries in the original config.
You can also declare multiple --additionalConfig options and combine it with the --config option.
```
bin/console prod2testing:run --additionalConfig /path1.json --additionalConfig /path2.json --config /base-config.json
```## Remove Secure Flag
You can remove the secure flag from the shops, if your local installation does not have tls installed. Just use the
`--remove-secure-flag` option, and the script will uncheck the secure flag for you.## No Remove Secret
By default, the script will try to remove secret information like passwords from the db. If you don't want it to do
that, just use the `--no-remove-secret` option.