跳到主要内容

参数

请参阅插件通用配置,了解所有插件可用的配置选项。

  • request

    array[object]


    屏蔽请求中敏感信息的动作数组。

    • type

      string


      vaild vaule:

      query, header, or body


      应屏蔽敏感信息的位置。

    • body_format

      string


      vaild vaule:

      json or urlencoded


      请求体的编码。当 typebody 时需要。

    • name

      string


      vaild vaule:

      json or urlencoded


      包含敏感数据的信息字段名称。对于 JSON 体,你可以使用 JSONPath 语法。

    • action

      string


      vaild vaule:

      regex, replace, or remove


      屏蔽敏感数据的动作。

    • regex

      string


      用于匹配敏感数据的正则表达式。当 actionregex 时需要。

    • value

      string


      用于替换敏感数据的值。当 actionregexreplace 时需要。

  • max_body_size

    integer


    default: 1048576


    允许的最大请求体大小(字节)。如果请求的体大小超过配置的值,则数据屏蔽规则将被忽略。