the plugin filters data from collections and anonymizes all fields that do not appear in a whitelist. It expects a boolean field “anonymized” in the collection that is to be anonymized.
WIP - Work in Progress/Planning
yarn add @cross-solution/strapi-plugin-anonymize
The default configuration is as follows (you must add it to ./config/plugin.js
):
module.exports = {
// ...
"anonymize": {
cron: "*/10 * * * * *",
enabled: true,
config: {
anonymize: [
{
collection: "Strapi UID, eg. plugin::bfa.bfa-beruf",
filters: {
foo: {
$contains: "bar",
},
},
limit: 4,
keepData: ['field1', 'field2'],
},
]
}
}
// ...
}