Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10885

Add mask option to log EIP and log component

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.19.0
    • camel-core
    • None
    • Moderate

    Description

      See nabble
      http://camel.465427.n5.nabble.com/Mask-password-using-log-component-tp5794301.html

      We can add a mask option to the Log EIP. It would then take the toString to be logged, and then run a series of reg exp to search/replace sensitive information such as password and passphrase.

      We need to do this for key=value, xml and json format. So it kinda works on most common formats.

      We can then add this in the docs that this is what it can do, so users can use it as-is or not. Only if they have very special cases they would then need to write their own mask method and call as a bean from the log message.

      We can also add such functionality to the log component itself, eg <to uri="log:xxx">.

      So they reuse the same masking algorithm.

      See UriSupport which have masking for uris with key=value

      Attachments

        Issue Links

          Activity

            People

              igarashitm Tomohisa Igarashi
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: