You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2017/03/03 20:47:45 UTC

[jira] [Commented] (SOLR-9693) BasicAuthPlugin API should not allow setting blockUnknown=true if no users configured

    [ https://issues.apache.org/jira/browse/SOLR-9693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15895000#comment-15895000 ] 

Jan Høydahl commented on SOLR-9693:
-----------------------------------

Any thoughts on this? Should we add some safeguards here?

> BasicAuthPlugin API should not allow setting blockUnknown=true if no users configured
> -------------------------------------------------------------------------------------
>
>                 Key: SOLR-9693
>                 URL: https://issues.apache.org/jira/browse/SOLR-9693
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: security
>            Reporter: Jan Høydahl
>              Labels: authentication
>
> If you use the API to configure BasicAuth, the order in which you specify your config matters. Currently it is possible to set the {{blockUnknown}} property without any users being configured, rendering Solr useless. The same would be the case if the last user is removed when blockUnknown is still set.
> Perhaps fail with code *409 Conflict* or something?
> More tricky is the case where BasicAuth is configured with no users, and someone adds an Authorization config requiring a certain user to do anything at all - it would also lock down Solr but since the plugins don't know about each other it is hard to control.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org