Uploaded image for project: 'Identity Gateway'
  1. Identity Gateway
  2. OPENIG-4542

Wildcard does not work in masking log rule for CaptureDecorator

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.0-micsvc-1.0.3
    • Fix Version/s: 7.0.0
    • Component/s: Doc
    • Environment:
      IGStandalone 7.0.0-SNAPSHOT (4f6a6b28ff0)

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              joanne.henry Joanne Henry
              Reporter:
              richard.hruza Richard Hruza
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: