OSS version with REST user management API


#1

Hi everyone,

I reading documentation and thinking about testing this plugin but I’d like to know if it expose some kind of management API to manage users and roles like in search guard (https://github.com/floragunncom/search-guard-rest-api)?

That would be really awesome.

Thanks


(Simone Scarduzio) #2

The only thing we have is the ability to dump the settings into an index and call a single refresh API endpoint. If that’s good enough for you…?


#3

That is included in the OSS version?

Who does it work? Is it documented?

Thanks a lot :slight_smile:


(Simone Scarduzio) #4

No it’s not documented because it’s an internal API, part of the Kibana plugin support. I’ve not been publicising this much as I don’t want to commit to its stability during time.

But if you feel like using it, who am I to stop you?

Refresh API (REST & Transport)

https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/tree/master/es52x/src/main/java/org/elasticsearch/plugin/readonlyrest/es/rradmin

Index reading

https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin/blob/master/es53x/src/main/java/org/elasticsearch/plugin/readonlyrest/es/ESClientSettingsContentProvider.java

First you write, then you refresh.