Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-9066

MaskSensitiveHelper does not mask multi-line content

    XMLWordPrintableJSON

Details

    • Novice
    • Patch

    Description

      MaskSensitiveHelper does not recognise the sensitive element name(s) if they contain multi-line content.

      This f.ex does not match the password element, and the data is left unmasked in the logs:

      maskSensitiveHelper.addSensitiveElementNames(Set.of("password")) 
      <user>testUser</user><password>my 
      secret 
      password</password> 

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              trustlydaniel Daniel Holm
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Remaining Estimate - 0.5h
                  0.5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified