Data Mask Configuration
The data-mask plugin removes or replaces sensitive information in request headers, bodies, and URL queries for logging purposes, enhancing data privacy and security. Configuration covers plugin parameters.
Parameters
See plugin common configurations for configuration options available to all plugins.
request
An array of actions to mask sensitive information in the request.
type
valid value:
query,header, orbodyLocation where sensitive information should be masked.
body_format
valid value:
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
valid value:
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 in-memory JSON request body size in bytes that the plugin will mask. If a JSON body exceeds this value, JSON body rules are skipped; query, header, and URL-encoded body rules are unaffected by this setting.
max_req_post_args
valid value:
greater than or equal to 0Maximum number of URL-encoded form fields to parse when masking request body data with
body_formatset tourlencoded.