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

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Invalid
    • 8.1.1
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: