Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14115

Password configs are logged in plaintext in KRaft

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 3.3.0, 3.4.0, 3.2.3
    • kraft
    • None

    Description

      While investigating KAFKA-14111, I also noticed that ConfigurationControlManager is logging sensitive configs in plaintext at INFO level.

      [2022-07-27 12:14:09,927] INFO [Controller 1] ConfigResource(type=BROKER, name='1'): set configuration listener.name.external.ssl.key.password to bar (org.apache.kafka.controller.ConfigurationControlManager)
      

      Once this new config reaches the broker, it is logged again, but this time it is redacted

      [2022-07-27 12:14:09,957] INFO [BrokerMetadataPublisher id=1] Updating broker 1 with new configuration : listener.name.external.ssl.key.password -> [hidden] (kafka.server.metadata.BrokerMetadataPublisher)
      

      Attachments

        Issue Links

          Activity

            People

              mumrah David Arthur
              mumrah David Arthur
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: