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

Refactor StandardAuthorizer for easier extension

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.8.0
    • None
    • core
    • None

    Description

      Refactor of the Standard Authorizer, associated classes and tests to make it easier to create new AuthorizerData implementations.

      It is implemented in pull request 16779

      The goal of this change is to refactor the existing code so that new Implementations of the StandardAuthorizer may be created by creating new implementations of  StandardAuthorizerData class.

      Changes include

      • creation of an AbstractAuthorizerData class for consistent logging implementation.
      • Moving MatchingRule interface and implementations from StandardAuthorizerData.java to AuthorizerData.java
      • Adding a  authorizeByResourceType method to AuthorizerData.
      • Implementing authorizeByResourceType in StandardAuthorizerData by reimplementing the default Authorizer.authorizeByResourceType method.

       

      This is a precursor to the Trie implementation described in KIP-1042.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              claude Claude Warren
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: