title: Kafka producer/consuper Topic not authorized
body: <p>Whenever I try to connect to kafka to producer/consume I get "Not authorized for topics [test2]"</p>
  
  <p>If I turn off the authorization I get authenticated successfully, so the authentication works and only the authorization doesn't.</p>
  
  <p>ACL authorization with kafka.security.auth.SimpleAclAuthorizer not working.</p>
  
  <p>config/server.properties</p>
  
  <pre><code>authorizer.class.name=kafka.security.auth.SimpleAclAuthorizer
  listeners=SASL_PLAINTEXT://kafka3:9092
  security.inter.broker.protocol= SASL_PLAINTEXT
  sasl.mechanism.inter.broker.protocol=PLAIN
  sasl.enabled.mechanisms=PLAIN
  delete.topic.enable=false
  </code></pre>
  
  <p>logs/kafka-authorizer</p>
  
  <pre><code>[2019-04-06 13:24:05,693] DEBUG No acl found for resource Topic:LITERAL:test2, authorized = false (kafka.authorizer.logger) [2019-04-06 13:24:05,695] INFO Principal = User:alice is Denied Operation = Describe from host = 10.0.9.20 on resource = Topic:LITERAL:test2(kafka.authorizer.logger)uper.users=User:admin
  </code></pre>
  
  <p>server's jaas file:</p>
  
  <pre><code>KafkaServer {
      org.apache.kafka.common.security.plain.PlainLoginModule required
      username="admin"
      password="admin"
      user_admin="admin"
      user_alice="alice";
  };
  
  </code></pre>
  
  <p>bin/kafka-server-start.sh</p>
  
  <pre><code>$base_dir/kafka-run-class.sh $EXTRA_ARGS -Djava.security.auth.login.config=$base_dir/../config/jaas-kafka-server.conf kafka.Kafka "$@"
  </code></pre>
  
  <p>acl output:</p>
  
  <pre><code>Current ACLs for resource `Topic:LITERAL:test2`:
      User:alice has Allow permission for operations: Write from hosts: *
  </code></pre>