Parameters
See plugin common configurations (opens in Apache APISIX docs) for configuration options available to all plugins.
request
An array of actions to mask sensitive information in the request.
type
vaild vaule:
query,header, orbodyLocation where sensitive information should be masked.
body_format
vaild vaule:
jsonorurlencodedEncoding of the request body. Required when
typeisbody.name
Name of the information field that contains sensitive data. For JSON body, you can use JSONPath syntax.
action
vaild vaule:
regex,replace, orremoveAction to mask the sensitive data.
regex
Regular expressions to match the sensitive data. Required when
actionisregex.value
Value to replace the sensitive data with. Required when
actionisregexorreplace.
max_body_size
Maximum body size allowed in bytes. If a request's body size exceeds the configured value, data masking rules will be ignored.
max_req_post_args
vaild vaule:
greater than or equal to 0
Maximum number of URL-encoded form fields to parse when masking request body data with
body_formatset tourlencoded.