thelabdude edited a comment on pull request #394:
URL: https://github.com/apache/solr/pull/394#issuecomment-959956128
Yeah, just verified ... `"role": null` doesn't do anything when just using
the `BasicAuthPlugin` unless `"blockUnknown": false` ... here's my config:
```
authentication":{
"blockUnknown":true,
"class":"solr.BasicAuthPlugin",
"credentials":{
"admin":"BLAH BLAH BLAH"},
"":{"v":6}},
"authorization":{
"class":"solr.RuleBasedAuthorizationPlugin",
"permissions":[
{
"name": "k8s-probe-0",
"role": null,
"collection": null,
"path": "/admin/info/system"
}, ...
```
Now curl that endpoint using: `curl
http://localhost:8983/solr/admin/info/system`
```
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 401 require authentication</title>
</head>
<body><h2>HTTP ERROR 401 require authentication</h2>
<table>
<tr><th>URI:</th><td>/solr/admin/info/system</td></tr>
<tr><th>STATUS:</th><td>401</td></tr>
<tr><th>MESSAGE:</th><td>require authentication</td></tr>
<tr><th>SERVLET:</th><td>default</td></tr>
</table>
</body>
</html>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]