I install the plugin into the elastic container, mount the readonlyrest.yml to /usr/share/elasticsearch/config/readonlyrest.yml, restart the docker-compose but it seems to have no effect (eg. i can curl -vvv “http://localhost:9200/_cat/indices” without auth. error).
Is it because we are using oss version? For example, we cannot set xpack.security.enabled: false as xpack is not present.
You basically download the zip and install it with bin/elasticsearch-plugin install file://<absolute_path>
Then you add your readonlyrest.yml and you restart ES. Please tell us where exactly you find a problem, i.e. paste some Dockerfile bits maybe.