Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7552

Support using ZkCredentialsProvider/ZkACLProvider in custom filter

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.2, 6.0
    • SolrCloud
    • None

    Description

      I have a custom authentication filter sitting in front of the SolrDispatchFilter that writes to ZooKeeper via Curator. Curator has slightly different definitions for ACLProvider and Credentials than the Solr equivalents of ZkACLProvider and ZkCredentialsProvider. I'd like to just write a wrapper to use the existing Solr definitions, but have hit a couple of scoping issues:

      • The ZkCredentialsProvider getScheme and getAuth functions are at package private scope, so I can't convert them to Curator equivalents
      • The code to read the solr.xml (in order to get the config) is private to the SolrDispatchFilter, and my filter doesn't have access to the SolrDispatchFilter (so that code needs to be static as well).

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gchanan Gregory Chanan
            gchanan Gregory Chanan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment