You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The security.json that the Solr operator creates during security boostrapping when using:
spec:
...
solrSecurity:
authenticationType: Basic
Grants the all permission to the users role.
I misinterpreted this permission to mean all endpoints unless specifically overridden by another rule, which is how it works but seems to be order dependent. If this "all" permission is listed last, then we get the behavior I intended. But if it's listed before the more restrictive rules, then it takes precedence and allows broader access than I intended for the default authz rules. Upon further reflection, I think the operator should not assign the users role to the all permission at all, so the change looks like:
The work-around for users that have already bootstrapped a SolrCloud with basic-auth enabled is to manually update their security.json to remove users from the all role. You can do this using the zkcli.sh script to update the security.json directly:
The
security.json
that the Solr operator creates during security boostrapping when using:Grants the
all
permission to theusers
role.I misinterpreted this permission to mean all endpoints unless specifically overridden by another rule, which is how it works but seems to be order dependent. If this "all" permission is listed last, then we get the behavior I intended. But if it's listed before the more restrictive rules, then it takes precedence and allows broader access than I intended for the default authz rules. Upon further reflection, I think the operator should not assign the
users
role to theall
permission at all, so the change looks like:The work-around for users that have already bootstrapped a SolrCloud with basic-auth enabled is to manually update their
security.json
to removeusers
from theall
role. You can do this using the zkcli.sh script to update the security.json directly:The text was updated successfully, but these errors were encountered: