-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: anonymization using DbToolsBundle
- Loading branch information
1 parent
504c92a
commit c49382b
Showing
4 changed files
with
113 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
vault_database_password: <remote_database_password> | ||
vault_lephare_packagist_com_token: <lephare_packagist_com_token> | ||
vault_anonymization_remote_database_password: <anonymization_remote_database_password> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
faros_user: | ||
firstname: firstname | ||
lastname: lastname |
96 changes: 96 additions & 0 deletions
96
makinacorpus/db-tools-bundle/1.2/config/packages/db_tools.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
db_tools: | ||
# Where to put generated backups. | ||
#storage: | ||
# Root directory of the backup storage manager. Default filename | ||
# strategy will always use this folder as root path. | ||
#root_dir: '%kernel.project_dir%/var/db_tools' | ||
|
||
# Filename strategies. You may specify one strategy for each doctrine | ||
# connection. Keys are doctrine connection names. Values are strategy | ||
# names, "default" (or null) or omitting the connection will use the | ||
# default implementation. | ||
# If you created and registered a custom one into the container as a | ||
# service, you may simply set the service identifier. If no service | ||
# exists, and your implementation does not require parameters, simply | ||
# set the class name. | ||
#filename_strategy: | ||
# Backup filename strategy. | ||
# "default" is an alias of "datetime" | ||
#default: default | ||
# "datetime" implementation is "%db_tools.storage.root_dir%/YYYY/MM/<connection-name>-<datestamp>.<ext>" | ||
#other_connection_strategy: datetime | ||
# Example of using a service name: | ||
#yet_another_connection: app.db_tools.filename.custom_strategy | ||
# Or a classe name: | ||
#another_one: App\DbTools\Storage\MyCustomStrategy | ||
|
||
# When old backups are considered obsolete | ||
# (Use relative date/time formats : https://www.php.net/manual/en/datetime.formats.relative.php) | ||
#backup_expiration_age: '6 months ago' # default '3 months ago' | ||
|
||
# Timeout for backups. | ||
# backup_timeout: 1200 # default 600 | ||
|
||
# Timeout for restores. | ||
# restore_timeout: 2400 # default 1800 | ||
|
||
# List here tables (per connection) you don't want in your backups | ||
#excluded_tables: | ||
#default: ['table1', 'table2'] | ||
|
||
# Specify here paths to binaries, only if the system can't find them by himself | ||
# platform are 'mysql', 'postgresql', 'sqlite' | ||
#backupper_binaries: | ||
#mariadb: '/usr/bin/mariadb-dump' # default 'mariadb-dump' | ||
#mysql: '/usr/bin/mysqldump' # default 'mysqldump' | ||
#postgresql: '/usr/bin/pg_dump' # default 'pg_dump' | ||
#sqlite: '/usr/bin/sqlite3' # default 'sqlite3' | ||
#restorer_binaries: | ||
#mariadb: '/usr/bin/mariadb' # default 'mariadb' | ||
#mysql: '/usr/bin/mysql' # default 'mysql' | ||
#postgresql: '/usr/bin/pg_restore' # default 'pg_restore' | ||
#sqlite: '/usr/bin/sqlite3' # default 'sqlite3' | ||
|
||
# Default options to pass to the binary when backing up or restoring | ||
# a database. Those options must be defined per connection. | ||
# If you do not define some default options, here or by using the | ||
# "--extra-options" option when invoking the command, the following | ||
# ones will be used according to the database vendor: | ||
# - When backing up: | ||
# - MariaDB: --no-tablespaces | ||
# - MySQL: --no-tablespaces | ||
# - PostgreSQL: -Z 5 --lock-wait-timeout=120 | ||
# - SQLite: -bail | ||
# - When restoring: | ||
# - MariaDB: None | ||
# - MySQL: None | ||
# - PostgreSQL: -j 2 --clean --if-exists --disable-triggers | ||
# - SQLite: None | ||
#backupper_options: | ||
#default: '' | ||
#another_connection: '' | ||
#restorer_options: | ||
#default: '' | ||
#another_connection: '' | ||
|
||
# Update this configuration if you want to look for anonymizers in a custom folder. | ||
# These are default paths that will always be registered even if you override | ||
# the setting and don't repeat them: | ||
#anonymizer_paths: | ||
#- '%kernel.project_dir%/vendor/makinacorpus/db-tools-bundle/src/Anonymizer' | ||
#- '%kernel.project_dir%/src/Anonymization/Anonymizer' | ||
|
||
# Anonymization configuration. | ||
anonymization: | ||
# If you want to configure anonymization with attributes on | ||
# Doctrine entities, you have nothing to add here: if doctrine/orm | ||
# is available the DbToolsBundle will automatically look for it. | ||
# | ||
# If you want to load configuration from a yaml: | ||
# 1/ If you want to configure anonymization only for the default | ||
# DBAL connection, declare it like this: | ||
yaml: '%kernel.project_dir%/config/anonymizations.yaml' | ||
# 2/ If you use multiple connections, declare each configuration like this: | ||
#yaml: | ||
#- connection_one: '%kernel.project_dir%/config/anonymizations/connection_one.yaml' | ||
#- connection_two: '%kernel.project_dir%/config/anonymizations/connection_two.yaml' |