Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database anonymization config+command #5

Open
mazsudo opened this issue Mar 20, 2019 · 2 comments
Open

Database anonymization config+command #5

mazsudo opened this issue Mar 20, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@mazsudo
Copy link
Contributor

mazsudo commented Mar 20, 2019

This is a feature proposal:

  • allow user of this bundle to define some configuration that would looks like:
ekino_data_protection:
   ...
   data_anonymization:
        anonymize:
            first_table_name_containing_private_data:
                - firstName: 'fakeValue'
                - lastName: 'fakeValue'
                - email:         'fakeEmail-<id>@fake.com' (pattern to avoid fail with unique primary keys)
            second_table_name_containing_private_data:
                ...
        truncate:
            - first_table_name_to_truncate (like session or basket tables that has no sense to keep)

then with this config we can provide a generic command to anonymize a database

WDYT?

@mazsudo mazsudo added the enhancement New feature or request label Mar 20, 2019
@mremi
Copy link
Member

mremi commented Mar 20, 2019

I guess you're thinking about importing production data?

I would handle that through annotations to group the config over entities.

@mazsudo
Copy link
Contributor Author

mazsudo commented Mar 20, 2019

I guess you're thinking about importing production data?

yes i'm

I would handle that through annotations to group the config over entities.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants