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

Sensitive keys are logged in auto-configuration summary

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.0, 3.5.0
    • 3.4.4, 3.6.0
    • camel-main
    • None
    • Novice

    Description

      Hello

      Using camel 3.3.0 in a quarkus app, on startup we get a log statement like this:

      Sep 22, 2020 12:08:35 AM org.apache.camel.main.BaseMainSupport autoconfigure
      INFO: Auto-configuration summary:
      Sep 22, 2020 12:08:36 AM org.apache.camel.main.BaseMainSupport lambda$autoconfigure$0
      INFO: camel.component.activemq.password=password
      Sep 22, 2020 12:08:36 AM org.apache.camel.main.BaseMainSupport lambda$autoconfigure$0
      INFO: camel.component.activemq.username=username
      

      We would expect to see, based on BaseMainSupport.java the following:

      INFO: camel.component.activemq.password=xxxxxx
      

      When I debug this I see the following on BaseMainSupport.autoconfigure(CamelContext camelContext) (line 536):

       

       

      We can work around by disabling the auto-configuration summary or disabling the logger for BaseMainSupport.

       

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              aoakley Aaron Oakley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: