Wildcard does not work in masking log rule for CaptureDecorator
Steps to reproduce
1.) Create route with "*" in the mask rule
{ "maskedCapture" : "all", "condition" : "${request.uri.path == '/home/mask_headers_and_attributes'}", "handler" : { "baseURI" : "http://app.example.com:8080", "type" : "ReverseProxyHandler" }, "heap" : [ { "config" : { "captureContext" : true, "masks" : { "headers" : [ "test-header*" ] } }, "name" : "maskedCapture", "type" : "CaptureDecorator" } ] }
2.) Access resource with headers which match the rule
curl -H "test-header_1: value" -H "test-header: value2" http://openig.example.com:8081/home/mask_headers_and_attributes
3.) Observe route logs
Expected behavior
both headers should be masked
Observed behavior
test-header_1 is not masked
GET http://openig.example.com:8081/home/mask_headers_and_attributes HTTP/1.1
Accept: */*
Host: openig.example.com:8081
test-header: *****
test-header_1: value
User-Agent: curl/7.58.0
Context's content as JSON:
attributes:
Documentation says that wildcard are supported