lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wei <weiwan...@gmail.com>
Subject Leader initiated recovery authentication failure
Date Sat, 04 Nov 2017 18:47:34 GMT
Hi All,

After enabling basic authentication for solr cloud, I noticed that the
internal leader initiated recovery failed with 401 response.

The recovery request from leader:

GET //replica1.mycloud.com:9090/solr/admin/cores?action=*REQUESTRECOVERY*&core=replica1&wt=javabin&version=2
HTTP/1.1" 401 310 "-"
"Solr[org.apache.solr.client.solrj.impl.HttpSolrClient] 1.0" 5

My authorization config is:

authorization:
{

   - class: "solr.RuleBasedAuthorizationPlugin",
   - permissions:
   [
      -
      {
         - name: "security-edit",
         - role: "admin",
         - index: 1
         },
      -
      {
         - name: "schema-edit",
         - role: "admin",
         - index: 2
         },
      -
      {
         - name: "config-edit",
         - role: "admin",
         - index: 3
         },
      -
      {
         - name: "core-admin-edit",
         - role: "admin",
         - index: 4
         },
      -
      {
         - name: "collection-admin-edit",
         - role: "admin",
         - index: 5
         }
      ],


Looks the unauthorized error is because core-admin-edit requires admin
access. How can I config authentication credentials for solr cloud's
internal request? Appreciate your help!

Thanks,
Wei

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message