Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5660C200D24 for ; Tue, 24 Oct 2017 15:22:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5522A160BDB; Tue, 24 Oct 2017 13:22:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 96043160BE0 for ; Tue, 24 Oct 2017 15:22:06 +0200 (CEST) Received: (qmail 4689 invoked by uid 500); 24 Oct 2017 13:22:05 -0000 Mailing-List: contact jira-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@kafka.apache.org Delivered-To: mailing list jira@kafka.apache.org Received: (qmail 4628 invoked by uid 99); 24 Oct 2017 13:22:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2017 13:22:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 6D0E71805BE for ; Tue, 24 Oct 2017 13:22:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.001 X-Spam-Level: X-Spam-Status: No, score=-100.001 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id aBWsmrUZv7hF for ; Tue, 24 Oct 2017 13:22:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 55C9F5FBEA for ; Tue, 24 Oct 2017 13:22:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 38AD1E257D for ; Tue, 24 Oct 2017 13:22:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9136B21300 for ; Tue, 24 Oct 2017 13:22:00 +0000 (UTC) Date: Tue, 24 Oct 2017 13:22:00 +0000 (UTC) From: "Jagadish Prasath Ramu (JIRA)" To: jira@kafka.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (KAFKA-6112) SSL + ACL does not seem to work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 24 Oct 2017 13:22:07 -0000 Jagadish Prasath Ramu created KAFKA-6112: -------------------------------------------- Summary: SSL + ACL does not seem to work Key: KAFKA-6112 URL: https://issues.apache.org/jira/browse/KAFKA-6112 Project: Kafka Issue Type: Bug Components: security Affects Versions: 0.11.0.0, 0.11.0.1 Reporter: Jagadish Prasath Ramu I'm trying to enable ACL for a cluster that has SSL based authentication setup. Similar issue (or exceptions) has been reported in the following JIRA: https://issues.apache.org/jira/browse/KAFKA-3687 (refer the last 2 exceptions that were posted after the issue was closed). error messages seen in Producer: {noformat} [2017-10-24 18:32:25,254] WARN Error while fetching metadata with correlation id 349 : {t1=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient) [2017-10-24 18:32:25,362] WARN Error while fetching metadata with correlation id 350 : {t1=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient) [2017-10-24 18:32:25,470] WARN Error while fetching metadata with correlation id 351 : {t1=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient) [2017-10-24 18:32:25,575] WARN Error while fetching metadata with correlation id 352 : {t1=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient) {noformat} security related kafka config.properties: {noformat} ssl.keystore.location=kafka.server.keystore.jks ssl.keystore.password=abc123 ssl.key.password=abc123 ssl.truststore.location=kafka.server.truststore.jks ssl.truststore.password=abc123 ssl.client.auth=required ssl.enabled.protocols = TLSv1.2,TLSv1.1,TLSv1 ssl.keystore.type = JKS ssl.truststore.type = JKS security.inter.broker.protocol = SSL authorizer.class.name=kafka.security.auth.SimpleAclAuthorizer allow.everyone.if.no.acl.found=false super.users=User:Bob;User:"CN=localhost,OU=XXX,O=XXXX,L=XXX,ST=XX,C=XX" listeners=PLAINTEXT://0.0.0.0:9092,SSL://0.0.0.0:9093 {noformat} client configuration file: {noformat} security.protocol=SSL ssl.truststore.location=kafka.client.truststore.jks ssl.truststore.password=abc123 ssl.keystore.location=kafka.client.keystore.jks ssl.keystore.password=abc123 ssl.key.password=abc123 ssl.enabled.protocols=TLSv1.2,TLSv1.1,TLSv1 ssl.truststore.type=JKS ssl.keystore.type=JKS group.id=group-1 {noformat} The debug messages of authorizer log does not show any "DENY" messages. {noformat} [2017-10-24 18:32:26,319] DEBUG operation = Create on resource = Cluster:kafka-cluster from host = 127.0.0.1 is Allow based on acl = User:CN=localhost,OU=XXX,O=XXXX,L=XXX,ST=XX,C=XX has Allow permission for operations: Create from hosts: 127.0.0.1 (kafka.authorizer.logger) [2017-10-24 18:32:26,319] DEBUG Principal = User:CN=localhost,OU=XXX,O=XXXX,L=XXX,ST=XX,C=XX is Allowed Operation = Create from host = 127.0.0.1 on resource = Cluster:kafka-cluster (kafka.authorizer.logger) {noformat} I have followed the scripts stated in the thread: http://comments.gmane.org/gmane.comp.apache.kafka.user/12619 -- This message was sent by Atlassian JIRA (v6.4.14#64029)