Closed ChristinaLy closed 8 years ago
Hi @ChristinaLy
At this time for non-root user you need to specifically add permissions to access the service indexes Kibana needs. You can check the Elasticsearch logs to see what gets blocked and add permissions to the admin
account - let us know if you need assistance while trying
@lmangani Thanks for your quick response:) I'd like to know what do you mean "service indexes Kibana needs"? Does this mean the index .kibana?
I tried to use restful api to access the .kibana index, it works well. _curl -u admin -XGET 'xx.xx.xx.xx:9200/.kibana/search?pretty' Enter host password for user 'admin': { "took" : 13
By the way, there is no error/warning messages in Elasticsearch logs. The latest messages in Elasticsearch log is: [2016-07-08 06:26:38,492][INFO ][gateway ] [Tamara Rahn] recovered [4] indices into cluster_state
@ChristinaLy when access is prevented a logline should from elasticfence should appear indicating the user and the path trying to be accessed IF blocked by the plugin. I will try to replicate this.
The admin
user should be whitelisted for .kibana*
or you can start with a more permissive approach and trim it down later, ie: "*,_*
:
Maybe other users can share their whitelist for Kibana4 and we can integrate it directly in new releases
Did the suggestion solve your issue?
The latest snapshot for ES 2.3.4 enables defining filters are regex match rules and greatly simplifies the task. You can be as permissive as you want with the custom user rules now, ie:
/logstash.*,/_.*,/.kibana,/
@lmangani Tried all the method you provided, it didn't work. I haven't tried with ES 2.3.4 yet since i have to user ES 2.1.1 for some reason.
Now I am using the root user for kibana.:)
@ChristinaLy thanks for the update, root will of course work fine. We'll try to backport the regex matching to earlier ES plugin versions but no promises.
Feel free to reopen the ticket if needed and thanks for the report!
Steps to reproduce:
But with the root user, can start kibana successfully. elasticsearch.username: "root" elasticsearch.password: "rootpass"