JSPM

strapi-plugin-audit-log-marje3

1.1.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 171
  • Score
    100M100P100Q90754F
  • License MIT

A plugin that logs all user interactions, fully-equiped with permissions and configurations.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (strapi-plugin-audit-log-marje3) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Audit Log Plugin

    Description

    This plugin aims to store all user interactions as logs that can be accessed easily and securely through the use of permissions.

    picture showing the logs page picture showing the log settings page

    Configuration:

    The default configuration is as follows (you must add it to ./config/plugin.js):

    module.exports = {
        // ...
        "audit-log-marje3": {
            enabled: true,
            config: {
                deletion: {
                  enabled: true,
                  frequency: "logAge", // "logAge" or "logCount"
                  options: {
                      value: 2,
                      interval: "week", // "day" or "week" or "month" or "year" // Don't add this config property if the frequency is "logCount"
                  } 
                },
                filters: {
                  endpoint: {
                    exclude: ["/content-manager/uid", "/admin/renew-token", "/_health"],
                  },
                  status: {},
                  method: {
                    exclude: ["GET"],
                  },
                },
                redactedValues: [
                  "password",
                  "token",
                  "firstname",
                  "lastname",
                  "username",
                ],
              }
        }
        // ...
    }

    Each of the filter properties can either have an exclude or an include property, but not both. The redactedValues proterty will specify the set of properties to redact in the request body and response body in the logs.