[1.0.x] Advanced Sanitize

Created on 6 February 2024, 5 months ago
Updated 9 June 2024, 19 days ago

The Advanced Sanitize module provides ability for developers to setup obfuscation of data in database using FakerPHP library methods, by manually set constants, or using SQL expressions.

<!--break-->

Target fields/columns/entities and data providers are specified using .yml file, which must be added using settings form for module to work. Example file is provided with module.
Once config file is found and checked, data cleanup is being launched either by command provided by module or by UI from settings from, data is being processed with use of Batch API (by Entity/Database API). Way of data processing is decided based on configuration file by detection of specific parameter names in configuration.
In addition to obfuscation of data mentioned on configs, for revisions of entity (if there are any) data will be duplicated from current (sanitized) version.

Currently supported processing ways (how data is being replaced): thru Drupal's Entity API and Database API.
Currently supported data providers (which data will replace original) are FakerPHP library methods, constants set within config file and SQL expressions (for Database API processing only).

It's also possible to inject custom logic into sanitization process using Event dispatched from module in certain points. For now these points are: pre-/post-sanitize, pre-/post-sanitize revision and sanitization finish (dispatched from batch finished callback).

Project link

https://www.drupal.org/project/advanced_sanitize

📌 Task
Status

Fixed

Component

module

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024