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

Fail the creation with "/" in resource name in zk ACL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.3.0
    • core
    • None

    Description

      Currently, resource names in ACLS can contain any special characters, but resource names with some special characters are not a valid zookeeper path entry.

      For example resource name test/true is not a valid zookeeper path entry.

      Zookeeper will create a child node, name as true inside the test node.

      This will create two problems:-

      1. If there is one  ACL with a resource name test it can't be deleted because if there is only one, Kafka tries to delete the node as well by thinking it will be empty which is not true it has the child node true.
      2. When broker restarts ACL cache(which is used for ACL operations like describe, authorization etc) update from zookeeper and Kafka only looks for  ACLs that are direct child nodes of resource type in the ACL tree. 

       

      Attachments

        Issue Links

          Activity

            People

              amansnh Aman Singh
              amansnh Aman Singh
              Manikumar Manikumar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: