Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1682 Security for Kafka
  3. KAFKA-2690

Protect passwords from logging

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • security
    • None

    Description

      We currently store the key (ssl.key.password), keystore (ssl.keystore.password) and truststore (ssl.truststore.password) passwords as a String in `KafkaConfig`, `ConsumerConfig` and `ProducerConfig`.

      The problem with this approach is that we may accidentally log the password when logging the config.

      A possible solution is to introduce a new `ConfigDef.Type` that overrides `toString` so that the value is hidden.

      Attachments

        Activity

          People

            sinus Jakub Nowak
            ijuma Ismael Juma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: