OSS version with REST user management API

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 (GitHub - floragunncom/search-guard-rest-api: [OUTDATED] This module for Search Guard adds user- and role management capabilities via REST API.)?

That would be really awesome.

Thanks

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…?

That is included in the OSS version?

Who does it work? Is it documented?

Thanks a lot :slight_smile:

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.

Update:

Because people have been asking for this, not understanding it, and falling back to writing the “.readonlyrest” index manualy (and making a mess). This is the settings update API:

This REST API is used to update the settings in a running cluster:

POST $ES_URL/_readonlyrest/admin/config
{
"settings": "...JSON escaped settings YAML"
}

This is to read the currently loaded ROR settings

GET $ES_URL/_readonlyrest/admin/config

Please use and protect the access to this endpoint at your own risk.