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

Protect passwords from logging

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0.0
    • Component/s: security
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: