1.0.4 • Published 12 months ago

@mtayel/anonymize2 v1.0.4

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
12 months ago

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'],
        },
      ]
    }
  }
  // ...
}