Epinova / Epinova.Elasticsearch

A search-plugin for Episerver CMS and Commerce
MIT License
29 stars 20 forks source link

Feature Request: configuration for opt-out of `cluster:manage` privileges #180

Open jonascarlbaum opened 1 year ago

jonascarlbaum commented 1 year ago

In my understanding the Epinova.ElasticSearch.Core.Admin.Index.EnableClosing method will throw an exception if user not having cluster:manage privileges.

Could cluster:manage privileges be configured, as opt-out, so this code won't run and throw an exception in initialization?

I mean, if the user has the cluster:monitor privileges, and the cluster is already configured with closing enabled, this code would not be necessary to run? All other cluster-methods seems to work with cluster:monitor privileges. Then I guess an opt-out would be good here? This is the only place where cluster:manage privileges is used, right?

We will be running our indices in a cluster among other indices, and therefore have demands/requests of our user not being granted with too much privileges.