参数
请参阅插件通用配置,了解所有插件可用的配置选项。
request
array[object]
屏蔽请求中敏感信息的动作数组。
type
string
vaild vaule:
query,header, orbody应屏蔽敏感信息的位置。
body_format
string
vaild vaule:
jsonorurlencoded请求体的编码。当
type为body时需要。name
action
string
vaild vaule:
regex,replace, orremove屏蔽敏感数据的动作。
regex
string
用于匹配敏感数据的正则表达式。当
action为regex时需要。value
string
用于替换敏感数据的值。当
action为regex或replace时需要。
max_body_size
integer
default:
1048576允许的最大请求体大小(字节)。如果请求的体大小超过配置的值,则数据屏蔽规则将被忽略。