Hi everyone!
I've been trying unsuccessfully to read an alias to a collection with a
curl command.
The command only works when I put in the admin credentials, although the
user I want access for also has the required role for accessing.
Is this perhaps built-in, or should anyone be able to access an alias from
the API?

The command I'm using is:
curl http://
<user>:<pass>@<solrhostname>/solr/<AliasName>/select?q=<field>:<value>
This fails for the user but succeeds for the admin

My minimum working example of security.json follows.
Many thanks!

{
  "authentication":{
    "blockUnknown":true,
    "class":"solr.BasicAuthPlugin",
    "credentials":{
      "admin":"blahblahblah",
      "user":"blahblah"},
    "":{"v":13}},
  "authorization":{
    "class":"solr.RuleBasedAuthorizationPlugin",
    "permissions":[
      {
        "name":"all",
        "role":"admin",
        "index":1},
      {
        "name":"readColl",
        "collection":"Coll",
        "path":"/select/*",
        "role":"readColl",
        "index":2},
      {
        "name":"readSCollAlias",
        "collection":"sCollAlias",
        "path":"/select/*",
        "role":"readSCollAlias",
        "index":3}],
    "user-role":{
      "admin":[
        "admin",
        "readSCollAlias"],
      "user":["readSCollAlias"]},
    "":{"v":21}}}

Reply via email to