How to set authentication in kibana

2019-01-14 10:37发布

Is it possible to enable authentication in Kibana in order to restrict access to a dashboard to only be accessible to particular users?

3条回答
老娘就宠你
2楼-- · 2019-01-14 11:06

Check this plugin named elasticsearch-readonlyrest. It allow easy access control, by authentication or ip/network, x-forwarded-for header and allows one to setup read-write or read-only access in kibana and limit indexes access per user. It is simple to setup and should give enough control for most people.

If more control is needed, you can use the search-guard, a free alternative to shield.

查看更多
走好不送
3楼-- · 2019-01-14 11:18

Kibana4 doesn't currently support this.

查看更多
We Are One
4楼-- · 2019-01-14 11:22

Kibana itself doesn't support authentication or restricting access to dashboards.

You can restrict access to Kibana 4 using nginx as a proxy in front of Kibana as described here: https://serverfault.com/a/345244. Just set proxy_pass to port 5601 and disable this port on firewall for others. This will completly enable or disable Kibana.

Elastic also has a tool called Shield which enables you to manage security of elasticsearch. With Shield you can for example allow someone to analyze data in specific indexes with read-only permissions. https://www.elastic.co/products/shield


Edit: Elastic has an issue on github and they recommend to use Shield.

  1. Install Shield (plugin for elasticsearch) following these instructions
  2. Configure roles for Kibana users
  3. Configure Kibana to work with Shield

Remember Shield provides only index-level access control. That means user A will be able to see all dashboards but some of them will be empty (because he doesn't have access to all indices).

查看更多
登录 后发表回答