I started to use ReadonlyREST a few days ago and I was having a very good experience.
I’ve installed to use Elasticsearch as a Multi-Tenant enviorement.
Everything was going really fine, until I found an unexpected problem.
I have two indexes: testea and testeb.
So, I’ve created an Index Pattern in Kibana with the name teste*.
After that, I built some visualizations with the “teste*” as the source and putted them on a dashboard.
I was planning to use 3 users:
- teste: Allowed to visualize testea and testeb.
- testea: Allowed to visualize testea.
- testeb: Allowed to visualize testeb.
The my intention was to use the same dashboard to login with the 3 users and have distinct access.
And my plan is working and is not working.
The histogram and metric are working perfectly on the dashboard (they are providing only the values for the allowed index).
However, the pies and bars are returning the information of all indexes, even the forbidden ones.
The strangest thing is that it only happens in the dashboard page, when I click to check the visualization on the visualization page of the pies and the bars, it works as it is expected.
I’ve already tried to rebuild the dashboard, visualization and nothing.
Would you please help me to clarify?
Follow the elasticsearch.yml:
response_if_req_forbidden: Forbidden by ReadonlyREST ES plugin
- name: "::LOGSTASH::"
- name: "ADMIN"
- name: "Teste"
indices: [".kibana", "testea", "testeb"]
- name: "Testea"
indices: [".kibana", "testea"]
- name: "Testeb"
indices: [".kibana", "testeb"]