You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2021/11/03 18:16:46 UTC

[GitHub] [solr] thelabdude opened a new pull request #394: SOLR-15766: MultiAuthPlugin should send non-AJAX anonymous requests to the plugin that allows anonymous requests

thelabdude opened a new pull request #394:
URL: https://github.com/apache/solr/pull/394


   https://issues.apache.org/jira/browse/SOLR-15766
   


-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] thelabdude commented on pull request #394: SOLR-15766: MultiAuthPlugin should send non-AJAX anonymous requests to the plugin that allows anonymous requests

Posted by GitBox <gi...@apache.org>.
thelabdude commented 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"],
           "method":["GET"],
           "params":{},
           "index":1}, ...
   ```
   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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] thelabdude merged pull request #394: SOLR-15766: MultiAuthPlugin should send non-AJAX anonymous requests to the plugin that allows anonymous requests

Posted by GitBox <gi...@apache.org>.
thelabdude merged pull request #394:
URL: https://github.com/apache/solr/pull/394






-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] thelabdude commented on pull request #394: SOLR-15766: MultiAuthPlugin should send non-AJAX anonymous requests to the plugin that allows anonymous requests

Posted by GitBox <gi...@apache.org>.
thelabdude commented on pull request #394:
URL: https://github.com/apache/solr/pull/394#issuecomment-959941548






-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] thelabdude edited a comment on pull request #394: SOLR-15766: MultiAuthPlugin should send non-AJAX anonymous requests to the plugin that allows anonymous requests

Posted by GitBox <gi...@apache.org>.
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] epugh commented on pull request #394: SOLR-15766: MultiAuthPlugin should send non-AJAX anonymous requests to the plugin that allows anonymous requests

Posted by GitBox <gi...@apache.org>.
epugh commented on pull request #394:
URL: https://github.com/apache/solr/pull/394#issuecomment-959966356


   Thanks!   WE are getting closer to our magic future of just having everything delegate credential look ups!


-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] thelabdude merged pull request #394: SOLR-15766: MultiAuthPlugin should send non-AJAX anonymous requests to the plugin that allows anonymous requests

Posted by GitBox <gi...@apache.org>.
thelabdude merged pull request #394:
URL: https://github.com/apache/solr/pull/394


   


-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] epugh commented on pull request #394: SOLR-15766: MultiAuthPlugin should send non-AJAX anonymous requests to the plugin that allows anonymous requests

Posted by GitBox <gi...@apache.org>.
epugh commented on pull request #394:
URL: https://github.com/apache/solr/pull/394#issuecomment-959966356


   Thanks!   WE are getting closer to our magic future of just having everything delegate credential look ups!


-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] thelabdude edited a comment on pull request #394: SOLR-15766: MultiAuthPlugin should send non-AJAX anonymous requests to the plugin that allows anonymous requests

Posted by GitBox <gi...@apache.org>.
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] thelabdude edited a comment on pull request #394: SOLR-15766: MultiAuthPlugin should send non-AJAX anonymous requests to the plugin that allows anonymous requests

Posted by GitBox <gi...@apache.org>.
thelabdude edited a comment on pull request #394:
URL: https://github.com/apache/solr/pull/394#issuecomment-959956128






-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] thelabdude merged pull request #394: SOLR-15766: MultiAuthPlugin should send non-AJAX anonymous requests to the plugin that allows anonymous requests

Posted by GitBox <gi...@apache.org>.
thelabdude merged pull request #394:
URL: https://github.com/apache/solr/pull/394


   


-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] thelabdude commented on pull request #394: SOLR-15766: MultiAuthPlugin should send non-AJAX anonymous requests to the plugin that allows anonymous requests

Posted by GitBox <gi...@apache.org>.
thelabdude commented on pull request #394:
URL: https://github.com/apache/solr/pull/394#issuecomment-959941548


   I don't think `"role": null` works unless you `"blockUnknown": false` ... otherwise, requests would never make it to the endpoint, but let me verify with just the basic auth plugin ...


-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] epugh commented on pull request #394: SOLR-15766: MultiAuthPlugin should send non-AJAX anonymous requests to the plugin that allows anonymous requests

Posted by GitBox <gi...@apache.org>.
epugh commented on pull request #394:
URL: https://github.com/apache/solr/pull/394#issuecomment-959966356






-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org


[GitHub] [solr] thelabdude commented on pull request #394: SOLR-15766: MultiAuthPlugin should send non-AJAX anonymous requests to the plugin that allows anonymous requests

Posted by GitBox <gi...@apache.org>.
thelabdude commented on pull request #394:
URL: https://github.com/apache/solr/pull/394#issuecomment-959941548






-- 
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: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org