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

Solr admin api's are not authenticated after enabling blockUnknown parameter in jwt authentication.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Invalid
    • Affects Version/s: 8.1.1
    • Fix Version/s: None
    • Labels:
    • Environment:

      solr stand

      Description

      Hi, 

      I am enabling jwt authentication using solr 8.1.1 in standalone mode. below is my security.json file. 

      {{  "authentication":{ "blockUnknown": true,    "class":"solr.JWTAuthPlugin", "jwk":{      "kty":"oct",      "use":"sig",      "kid":"k1",      "k":"8347834radajklajdlkajskdjaskldjkasljdklasjdklaskdjaslkdjklasjdlkasjkldaskldjlkasdasjdlkasjdlkdsl",      "alg":"HS256"},    "aud":"solr"},  "authorization":{      "class":"solr.RuleBasedAuthorizationPlugin",      "permissions":[  {            "name":"all", "path":"/*",            "role":"admin"         }      ],      "user-role":{         "solr":"admin"      }   }}
      

      as you can see in above code, blockunknown parameter is enabled because of that my solr admin/info/system api is not authenticated. 

      I've read in 8.1.1 documentation as blockunknown parameter block unknown request. so that, my admin/info/system api causing problem. I need an urgent help! 

       

      Really appreciate if someone can give me a quick solution.

       

      Thanks 

      Laksh Gupta 

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lakshgupta29 Lakhan Gupta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: