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

Sink tasks expose secrets in DEBUG logging

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.10.2.0
    • connect
    • None

    Description

      As it stands today worker tasks print secrets such as Key/Trust store passwords to their respective logs.

      https://github.com/confluentinc/kafka/blob/trunk/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerSinkTask.java#L213-L214

      i.e.

      [2016-11-01 12:50:59,254] DEBUG Initializing connector test-sink with config

      {consumer.ssl.truststore.password=password, connector.class=io.confluent.connect.jdbc.JdbcSinkConnector, connection.password=password, producer.security.protocol=SSL, producer.ssl.truststore.password=password, topics=orders, tasks.max=1, consumer.ssl.truststore.location=/tmp/truststore/kafka.trustore.jks, producer.ssl.truststore.location=/tmp/truststore/kafka.trustore.jks, connection.user=connect, name=test-sink, auto.create=true, consumer.security.protocol=SSL, connection.url=jdbc:postgresql://localhost/test}

      (org.apache.kafka.connect.runtime.WorkerConnector:71)

      Attachments

        Issue Links

          Activity

            People

              Ryan P Ryan P
              Ryan P Ryan P
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: