title: Spring Boot + Kafka + Kerberos configuration
body: <p>I am using <strong>Spring Boot 1.5.6.RELEASE</strong> to connect to <strong>Kafka 0.11</strong> using Kerberos authentication. These are the dependencies I'm using for Kafka:</p>
  
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.integration&lt;/groupId&gt;
              &lt;artifactId&gt;spring-integration-kafka&lt;/artifactId&gt;
              &lt;version&gt;3.0.0.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.kafka&lt;/groupId&gt;
              &lt;artifactId&gt;spring-kafka&lt;/artifactId&gt;
              &lt;version&gt;2.0.8.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-starter-stream-kafka&lt;/artifactId&gt;
              &lt;version&gt;2.1.1.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>I have to send messages to a Kafka server that is not under our management and I was given a Kafka username, <code>keytab</code> file and a <code>krb5.conf</code> file. </p>
  
  <p>These are the properties used for testing without Kerberos:</p>
  
  <pre><code>spring:
    kafka:
      bootstrap-servers: "10.10.20.185:9092"
      producer:
        value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
  </code></pre>
  
  <p>Works fine.</p>
  
  <p>How do I implement Kerberos in my app configuration? 
  As I am new to Kafka and Kerberos, any help would be appreciated.</p>