Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: elgentos/masquerade
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.3.5
Choose a base ref
...
head repository: elgentos/masquerade
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Sep 25, 2021

  1. Twitter incorrect URL

    Twitter incorrect URL, two times ".com".
    matheusgontijo authored Sep 25, 2021
    Copy the full SHA
    820a91d View commit details

Commits on Sep 26, 2021

  1. Merge pull request #88 from matheusgontijo/patch-1

    Incorrect URL for Twitter link
    peterjaap authored Sep 26, 2021
    Copy the full SHA
    63f1d85 View commit details

Commits on Nov 27, 2021

  1. Added support for PHP 8.0

    peterjaap committed Nov 27, 2021
    Copy the full SHA
    5e56604 View commit details
  2. Copy the full SHA
    ddf8a4f View commit details
  3. Tagged version 1.0.0

    peterjaap committed Nov 27, 2021
    Copy the full SHA
    c60bad1 View commit details
  4. Copy the full SHA
    5100ca3 View commit details
  5. Copy the full SHA
    de8f560 View commit details
  6. Copy the full SHA
    a3803ce View commit details
  7. Copy the full SHA
    e92ee70 View commit details
  8. Fixed identify command

    peterjaap committed Nov 27, 2021
    Copy the full SHA
    01917fc View commit details
  9. Fixed identify command

    peterjaap committed Nov 27, 2021
    Copy the full SHA
    27b4726 View commit details
  10. Fixed Shopware 6 config

    peterjaap committed Nov 27, 2021
    Copy the full SHA
    28d26e0 View commit details
  11. Raised version to 1.0.1

    peterjaap committed Nov 27, 2021
    Copy the full SHA
    d761860 View commit details
  12. Update README.md

    peterjaap authored Nov 27, 2021
    Copy the full SHA
    7975b9e View commit details

Commits on Nov 28, 2021

  1. Copy the full SHA
    c5074bb View commit details
  2. Copy the full SHA
    e36167d View commit details
  3. Copy the full SHA
    a0c699e View commit details
  4. Copy the full SHA
    b74e0c2 View commit details
  5. Updated Shopware 6 config

    peterjaap committed Nov 28, 2021
    Copy the full SHA
    987ed49 View commit details
  6. Updated README

    peterjaap committed Nov 28, 2021
    Copy the full SHA
    014734d View commit details
  7. Updated README

    peterjaap committed Nov 28, 2021
    Copy the full SHA
    23ea6a1 View commit details
  8. Updated README

    peterjaap committed Nov 28, 2021
    Copy the full SHA
    c018444 View commit details
  9. Raised version to 1.0.2

    peterjaap committed Nov 28, 2021
    Copy the full SHA
    bfea992 View commit details

Commits on Dec 11, 2021

  1. Copy the full SHA
    96335a6 View commit details

Commits on Jul 7, 2022

  1. Copy the full SHA
    128a8ad View commit details
  2. Copy the full SHA
    4a794f0 View commit details

Commits on Jul 8, 2022

  1. Merge pull request #97 from elgentos/php81

    Php81
    peterjaap authored Jul 8, 2022
    Copy the full SHA
    a5a7e07 View commit details
  2. Copy the full SHA
    a9aa2bd View commit details

Commits on Sep 1, 2022

  1. Up version to 1.2.1

    peterjaap committed Sep 1, 2022
    Copy the full SHA
    7b2c29f View commit details

Commits on Oct 1, 2022

  1. Create CONTRIBUTING.md

    peterjaap authored Oct 1, 2022
    Copy the full SHA
    42c786e View commit details

Commits on Oct 5, 2022

  1. Add config files for Perfex CRM

    Nemo Pohle committed Oct 5, 2022
    Copy the full SHA
    1dad379 View commit details
  2. Merge pull request #101 from nemopohle/master

    Add config files for Perfex CRM
    peterjaap authored Oct 5, 2022
    Copy the full SHA
    d87ce00 View commit details

Commits on Oct 31, 2022

  1. Copy the full SHA
    19384e3 View commit details
  2. Merge pull request #102 from tdgroot/update_20221031

    debian/changelog: Update to latest version
    peterjaap authored Oct 31, 2022
    Copy the full SHA
    407fc4c View commit details

Commits on Nov 22, 2022

  1. Copy the full SHA
    03a8091 View commit details
  2. Added new line

    rickkuilman authored and peterjaap committed Nov 22, 2022
    Copy the full SHA
    38305dc View commit details
  3. Upped version to 1.2.2

    peterjaap committed Nov 22, 2022
    Copy the full SHA
    dee1599 View commit details

Commits on Oct 19, 2023

  1. ABANDONED

    peterjaap authored Oct 19, 2023
    Copy the full SHA
    d07e2a2 View commit details
Showing with 1,670 additions and 371 deletions.
  1. +38 −0 CONTRIBUTING.md
  2. +18 −114 README.md
  3. +3 −6 box.json
  4. BIN box.phar
  5. +8 −7 composer.json
  6. +1,105 −225 composer.lock
  7. +53 −2 debian/changelog
  8. +9 −3 src/Elgentos/Masquerade/Console/GroupsCommand.php
  9. +48 −10 src/Elgentos/Masquerade/Console/IdentifyCommand.php
  10. +10 −4 src/Elgentos/Masquerade/Console/RunCommand.php
  11. +33 −0 src/Elgentos/Masquerade/WorkingDirectory.php
  12. +5 −0 src/config/perfex/announcements.yaml
  13. +39 −0 src/config/perfex/clients.yaml
  14. +11 −0 src/config/perfex/consent.yaml
  15. +13 −0 src/config/perfex/contacts.yaml
  16. +25 −0 src/config/perfex/credits.yaml
  17. +6 −0 src/config/perfex/departments.yaml
  18. +29 −0 src/config/perfex/estimates.yaml
  19. +5 −0 src/config/perfex/files.yaml
  20. +33 −0 src/config/perfex/invoices.yaml
  21. +27 −0 src/config/perfex/leads.yaml
  22. +19 −0 src/config/perfex/log.yaml
  23. +5 −0 src/config/perfex/maillist.yaml
  24. +9 −0 src/config/perfex/notes.yaml
  25. +25 −0 src/config/perfex/projects.yaml
  26. +29 −0 src/config/perfex/proposals.yaml
  27. +5 −0 src/config/perfex/reminders.yaml
  28. +13 −0 src/config/perfex/staff.yaml
  29. +9 −0 src/config/perfex/surveys.yaml
  30. +9 −0 src/config/perfex/tasks.yaml
  31. +11 −0 src/config/perfex/tickets.yaml
  32. +2 −0 src/config/shopware6/customer.yaml
  33. +2 −0 src/config/shopware6/customer_address.yaml
  34. +4 −0 src/config/shopware6/log.yaml
  35. +2 −0 src/config/shopware6/newsletter_recipient.yaml
  36. +2 −0 src/config/shopware6/order_address.yaml
  37. +2 −0 src/config/shopware6/order_customer.yaml
  38. +2 −0 src/config/shopware6/product_review.yaml
  39. +2 −0 src/config/shopware6/user.yaml
38 changes: 38 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## Contributing

Hi there! We're thrilled that you'd like to contribute to masquerade. Your help is essential for keeping it great.

Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE).

## Opening an issue
.
Before opening an issue, please be sure that your issue hasn't already been asked by using [GitHub search](https://help.github.com/articles/searching-issues/)

Here are a few things that will help us help resolve your issues:

- A descriptive title that gives an idea of what your issue refers to
- A thorough description of the issue, (one word descriptions are very hard to understand)
- Screenshots (if appropriate)
- Links (if appropriate)

## Submitting a pull request

0. Clone the repository
0. Configure and install the dependencies: (See the [README](README.md) for more details)
0. Create a new branch: `git checkout -b my-branch-name`
0. Make your change, add tests, and make sure the tests still pass
0. Push to your branch and [submit a pull request][pr]
0. Wait for your pull request to be reviewed and merged!

Here are a few things you can do that will increase the likelihood of your pull request being accepted:

- Follow the [style guide][style].
- Write tests.
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).

## Resources

- [Contributing to Open Source on GitHub](https://guides.github.com/activities/contributing-to-open-source/)
- [Using Pull Requests](https://help.github.com/articles/using-pull-requests/)
- [GitHub Help](https://help.github.com)
132 changes: 18 additions & 114 deletions README.md
Original file line number Diff line number Diff line change
@@ -4,6 +4,10 @@

# Masquerade

## This project is ABANDONED. Thanks for your support!

This project has been abandoned. For a better, faster and more maintained alternative, see Smile's [gdpr-dump](https://github.com/smile-SA/gdpr-dump/). We have created our own repository for config files for popular Magento 2 extensions, see [elgentos/gdpr-dump-magento-2-extensions](https://github.com/elgentos/gdpr-dump-magento-2-extensions/).

## Faker-driven, platform-agnostic, locale-compatible data faker tool

Point Masquerade to a database, give it a rule-set defined in YAML and Masquerade will anonymize the data for you
@@ -14,6 +18,7 @@ Point Masquerade to a database, give it a rule-set defined in YAML and Masquerad
### Out-of-the-box supported frameworks

- Magento 2
- Shopware 6

### Customization

@@ -27,7 +32,14 @@ For example, to override the `admin.yaml` for Magento 2, you place a file in `co
admin:
```

### Partial anonymisation
You can add your own config files for custom tables or tables from 3rd party vendors. Here are a few examples:
- [Magento 2 Aheadworks YAML file](https://github.com/elgentos/masquerade/wiki/%5BMagento-2%5D-Aheadworks-YAML-file)
- [Magento 2 Amasty YAML file](https://github.com/elgentos/masquerade/wiki/%5BMagento-2%5D-Amasty-YAML-file)
- [Shopware 6 Frosh YAML file](https://github.com/elgentos/masquerade/wiki/%5BShopware-6%5D-Frosh-YAML-file)

To generate such files, you can run the `masquerade identify` command. This will look for columns that show a hint of personal identifiable data in the name, such as `name` or `address`. It will interactively ask you to add it to a config file for the chosen platform.

### Partial anonymization

You can affect only certain records by including a 'where' clause - for example to avoid anonymising certain admin accounts, or to preserve data used in unit tests, like this:

@@ -276,118 +288,10 @@ port: porthere
### Running it nightly
Check out the wiki on [How to run Masquerade nightly with Gitlab CI/CD](https://github.com/elgentos/masquerade/wiki/How-to-run-Masquerade-nightly-with-Gitlab-CI-CD)
#### Magento 2 out-of-the-box rule-set
```
$ php masquerade.phar groups --platform=magento2

+----------+------------+--------------------------+--------------------+---------------------+
| Platform | Group | Table | Column | Formatter |
+----------+------------+--------------------------+--------------------+---------------------+
| magento2 | invoice | sales_invoice | customer_note | sentence |
| magento2 | invoice | sales_invoice_comment | comment | sentence |
| magento2 | invoice | sales_invoice_grid | customer_email | email |
| magento2 | invoice | sales_invoice_grid | customer_name | name |
| magento2 | invoice | sales_invoice_grid | billing_name | name |
| magento2 | invoice | sales_invoice_grid | shipping_address | address |
| magento2 | invoice | sales_invoice_grid | billing_address | address |
| magento2 | creditmemo | sales_creditmemo | customer_note | sentence |
| magento2 | creditmemo | sales_creditmemo_comment | comment | sentence |
| magento2 | creditmemo | sales_creditmemo_grid | customer_email | email |
| magento2 | creditmemo | sales_creditmemo_grid | customer_name | name |
| magento2 | creditmemo | sales_creditmemo_grid | billing_name | name |
| magento2 | creditmemo | sales_creditmemo_grid | shipping_address | address |
| magento2 | creditmemo | sales_creditmemo_grid | billing_address | address |
| magento2 | review | review_detail | nickname | firstName |
| magento2 | review | review_detail | title | sentence |
| magento2 | review | review_detail | detail | paragraph |
| magento2 | newsletter | newsletter_subscriber | subscriber_email | email |
| magento2 | order | sales_order | customer_email | email |
| magento2 | order | sales_order | customer_firstname | firstName |
| magento2 | order | sales_order | customer_lastname | lastName |
| magento2 | order | sales_order | customer_dob | dateTimeThisCentury |
| magento2 | order | sales_order | customer_taxvat | vat |
| magento2 | order | sales_order | remote_ip | ipv4 |
| magento2 | order | sales_order | customer_note | sentence |
| magento2 | order | sales_order_grid | customer_email | email |
| magento2 | order | sales_order_grid | customer_name | name |
| magento2 | order | sales_order_grid | shipping_name | name |
| magento2 | order | sales_order_grid | billing_name | name |
| magento2 | order | sales_order_grid | shipping_address | address |
| magento2 | order | sales_order_grid | billing_address | address |
| magento2 | order | sales_order_address | email | email |
| magento2 | order | sales_order_address | firstname | firstName |
| magento2 | order | sales_order_address | lastname | lastName |
| magento2 | order | sales_order_address | company | company |
| magento2 | order | sales_order_address | street | streetAddress |
| magento2 | order | sales_order_address | city | city |
| magento2 | order | sales_order_address | postcode | postcode |
| magento2 | order | sales_order_address | telephone | phoneNumber |
| magento2 | order | sales_order_address | fax | phoneNumber |
| magento2 | order | sales_order_address | vat_id | vat |
| magento2 | quote | quote | customer_email | email |
| magento2 | quote | quote | customer_firstname | firstName |
| magento2 | quote | quote | customer_lastname | lastName |
| magento2 | quote | quote | customer_dob | dateTimeThisCentury |
| magento2 | quote | quote | customer_taxvat | vat |
| magento2 | quote | quote | remote_ip | ipv4 |
| magento2 | quote | quote_address | email | email |
| magento2 | quote | quote_address | firstname | firstName |
| magento2 | quote | quote_address | lastname | lastName |
| magento2 | quote | quote_address | company | company |
| magento2 | quote | quote_address | street | streetAddress |
| magento2 | quote | quote_address | city | city |
| magento2 | quote | quote_address | postcode | postcode |
| magento2 | quote | quote_address | telephone | phoneNumber |
| magento2 | quote | quote_address | fax | phoneNumber |
| magento2 | quote | quote_address | vat_id | vat |
| magento2 | admin | admin_user | firstname | firstName |
| magento2 | admin | admin_user | lastname | lastName |
| magento2 | admin | admin_user | email | email |
| magento2 | admin | admin_user | username | firstName |
| magento2 | admin | admin_user | password | password |
| magento2 | email | email_contact | email | email |
| magento2 | email | email_automation | email | email |
| magento2 | email | email_campaign | email | email |
| magento2 | customer | customer_entity | email | email |
| magento2 | customer | customer_entity | firstname | firstName |
| magento2 | customer | customer_entity | lastname | lastName |
| magento2 | customer | customer_address_entity | firstname | firstName |
| magento2 | customer | customer_address_entity | lastname | lastName |
| magento2 | customer | customer_address_entity | company | company |
| magento2 | customer | customer_address_entity | street | streetAddress |
| magento2 | customer | customer_address_entity | city | city |
| magento2 | customer | customer_address_entity | postcode | postcode |
| magento2 | customer | customer_address_entity | telephone | phoneNumber |
| magento2 | customer | customer_address_entity | fax | phoneNumber |
| magento2 | customer | customer_grid_flat | name | name |
| magento2 | customer | customer_grid_flat | firstname | firstName |
| magento2 | customer | customer_grid_flat | email | email |
| magento2 | customer | customer_grid_flat | dob | dateTimeThisCentury |
| magento2 | customer | customer_grid_flat | billing_full | address |
| magento2 | customer | customer_grid_flat | shipping_full | address |
| magento2 | customer | customer_grid_flat | billing_firstname | firstName |
| magento2 | customer | customer_grid_flat | billing_lastname | lastName |
| magento2 | customer | customer_grid_flat | billing_telephone | phoneNumber |
| magento2 | customer | customer_grid_flat | billing_postcode | postcode |
| magento2 | customer | customer_grid_flat | billing_street | streetAddress |
| magento2 | customer | customer_grid_flat | billing_city | city |
| magento2 | customer | customer_grid_flat | billing_fax | phoneNumber |
| magento2 | customer | customer_grid_flat | billing_vat_id | vat |
| magento2 | customer | customer_grid_flat | billing_company | company |
| magento2 | shipment | sales_shipment | customer_note | sentence |
| magento2 | shipment | sales_shipment_comment | comment | sentence |
| magento2 | shipment | sales_shipment_grid | customer_email | email |
| magento2 | shipment | sales_shipment_grid | customer_name | name |
| magento2 | shipment | sales_shipment_grid | shipping_name | name |
| magento2 | shipment | sales_shipment_grid | billing_name | name |
| magento2 | shipment | sales_shipment_grid | shipping_address | address |
| magento2 | shipment | sales_shipment_grid | billing_address | address |
+----------+------------+--------------------------+--------------------+---------------------+

```
Check out the wiki on how to run Masquerade nightly in CI/CD;
- [Usage with Gitlab CI/CD](https://github.com/elgentos/masquerade/wiki/Usage-with-Gitlab-CI-CD)
- [Usage with Github Actions](https://github.com/elgentos/masquerade/wiki/Usage-with-Github-Actions)
- [Usage with Bitbucket Pipelines](https://github.com/elgentos/masquerade/wiki/Usage-with-Bitbucket-Pipelines)
### Building from source
@@ -427,4 +331,4 @@ gbp dch --debian-tag="%(version)s" --new-version=$VERSION --debian-branch $BRANC
#### Credits
- Built by [elgentos](https://github.com/elgentos)
- Logo by [Caneco](https://twitter.com.com/caneco)
- Logo by [Caneco](https://twitter.com/caneco)
9 changes: 3 additions & 6 deletions box.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"alias": "masquerade.phar",
"chmod": "0755",
"compactors": [
"Herrera\\Box\\Compactor\\Json",
"Herrera\\Box\\Compactor\\Php"
"KevinGH\\Box\\Compactor\\Json",
"KevinGH\\Box\\Compactor\\Php"
],
"compression": "GZ",
"directories": [
@@ -25,7 +24,5 @@
"in": "vendor"
}
],
"main": "bin/masquerade",
"output": "dist/masquerade.phar",
"stub": true
"output": "dist/masquerade.phar"
}
Binary file modified box.phar
100644 → 100755
Binary file not shown.
15 changes: 8 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -2,13 +2,14 @@
"name": "elgentos/masquerade",
"description": "Framework-agnostic database seeder with fake data",
"require": {
"php": "^7.2",
"doctrine/dbal": "~2.3",
"elgentos/parser": "~2.5",
"fzaninotto/faker": "^1.7",
"illuminate/database": "^6.20",
"symfony/console": "^4.1",
"symfony/yaml": "^4.1"
"php": "^7.4|^8",
"doctrine/dbal": "~3.2",
"elgentos/parser": "~3.0",
"illuminate/database": "^8.75",
"symfony/console": "^5.4",
"symfony/yaml": "^5.4",
"fakerphp/faker": "^1.17",
"webmozart/assert": "^1.11"
},
"license": "MIT",
"authors": [
Loading