@mtayel/anonymize2
v1.0.4
Published
anonymizes data in a collection
Downloads
290
Readme
Strapi plugin anonymize
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.
Status
WIP - Work in Progress/Planning
Install
yarn add @cross-solution/strapi-plugin-anonymize
Configuration:
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'],
},
]
}
}
// ...
}