Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Applying read only permission to Kibana dashboard?

Tags:

kibana

is there a way to set some sort of permissions when sharing kibana dashboard with others. I'm worried that someone would either delete it or make changes and save it. I googled but didn't find anything.

like image 415
codeBarer Avatar asked Jul 25 '14 21:07

codeBarer


People also ask

How do I make Kibana dashboard read-only?

Just create a space and a dashboard (index pattern, visualizations ecc...) in it. Create (with an admin user) a role with access restricted to that index (in read-only mode) and with permission to access to that specific space only, only to Dashboard section.

How do I grant access to Kibana?

Granting access to Kibanaedit The Elastic Stack comes with the kibana_admin built-in role, which you can use to grant access to all Kibana features in all spaces. To grant users access to a subset of spaces or features, you can create a custom role that grants the desired Kibana privileges.

How do I manage users in Kibana?

To manage privileges in Kibana, open the main menu, then click Stack Management > Roles. The built-in kibana_admin role will grant access to Kibana with administrator privileges. Alternatively, you can create additional roles that grant limited access to Kibana.


3 Answers

A lot has happened since the question was asked. Role based access control is now available in the community edition since May.

https://www.elastic.co/blog/security-for-elasticsearch-is-now-free

like image 56
Michiel Leegwater Avatar answered Sep 28 '22 00:09

Michiel Leegwater


Without shield, you can try to lock .kibana index on read only mode :

curl -XPUT 'localhost:9200/.kibana/_settings' -d '{ "index.blocks.read_only" : true }'

It's working well, nobody can save/delete a dashboard / search / visualization. If user resize / move something on dashboard he can reset easily by bookmarking dashboard without parameters in url (or load it directly).

You can check more options about indices : https://www.elastic.co/guide/en/elasticsearch/reference/1.4/indices-update-settings.html

like image 38
Calumah Avatar answered Sep 27 '22 23:09

Calumah


When you go to the configure items of widgets and the dashboard (top right of the screen) you can set the editable flag to false. Beware though, now you cannot change it yourself anymore as well. Other options are available to provide the dashboard as a script, you can export it, enough options. But there is not something like, I am user x and I am the only one who can make changes.

like image 45
Jettro Coenradie Avatar answered Sep 27 '22 23:09

Jettro Coenradie