Kibana Read Only Dashboards

467 views
Skip to first unread message

anabella....@gmail.com

unread,
Aug 20, 2018, 4:19:15 AM8/20/18
to Search Guard Community Forum
Hi, I'm running ELK 6.32 Stack with SearchGuard 6.
I have a doubt regarding to read only modes in Kibana

1. Is it posiible to define read only dashboards in kibana?
2. Is it dependent of the multy tennancy feature?


Thank you
Regards
Ana
 






When asking questions, please provide the following information:

* Search Guard and Elasticsearch version
* Installed and used enterprise modules, if any
* JVM version and operating system version
* Search Guard configuration files
* Elasticsearch log messages on debug level
* Other installed Elasticsearch or Kibana plugins, if any

Jochen Kressin

unread,
Aug 20, 2018, 9:25:35 PM8/20/18
to Search Guard Community Forum
Hi,

it is possible to define read-only dashboards, but this is implemented via the multi-tenancy feature as you indicsted. With multi-tenancy, you can define multiple tenants per role, and then assign read/write or read-only permissions to these tenants. 

Without multi-tenancy (Kibana default behavior), all saved objects end up in the same index without the possibility to separate them on a per-role basis or to assign permissions.

anabella....@gmail.com

unread,
Aug 21, 2018, 6:38:33 AM8/21/18
to Search Guard Community Forum
Thank you for the response.

We are doing a POC in order to test the multitenancy feature. The goal is to present readonly dashboards to diferent clients.
For each client we want to
1. Define a custom index
2. Define a tenant
3. Have a RW user that indexes the data in the custom index and create the visualizations and dashboard in the tenant
4. Have a read only user over that tenant in order to provide read only access to that dashboards

I have enabled the multitenancy feature but i'm not able to define the tenants.
It is not clear for me in the doc
Any help will be appreciated

Regards
Ana

anabella....@gmail.com

unread,
Aug 21, 2018, 8:38:48 AM8/21/18
to Search Guard Community Forum
In order to create the tenant:
I go to roles, and add a tenant to that role. Once I'm loging with a user in this role I'm not able to see the new tenant (only Global and Private tenants)
Regards and thank you
Ana

anabella....@gmail.com

unread,
Aug 21, 2018, 9:11:28 AM8/21/18
to Search Guard Community Forum
Hi, 
This is what I mean: 

1. Define the role with the asociated Tenants
GET /_searchguard/api/roles/sg_read_only

{"sg_read_only":{"cluster":["READ","SEARCH"],"tenants":{"T1":"RW","T2":"RO"},"indices":{"logstash-*":{"doc":["READ","SEARCH"]}}}}

2. Define a user with that role
GET /_searchguard/api/internalusers/kibanaro
{"kibanaro":{"password":"","roles":["sg_read_only"],"hash":"xxxxx"}} 

And no tenants other than global and private are visible (see attachment)

What I'm doing wrong?
Thank you
Regards
visible_tenants.JPG

Jochen Kressin

unread,
Aug 21, 2018, 9:13:33 AM8/21/18
to Search Guard Community Forum
This may be a stupid question, but have you updated the config via sgadmin after making the changes? If yes, can you post your role definition including the tenant here?

anabella....@gmail.com

unread,
Aug 21, 2018, 9:15:11 AM8/21/18
to Search Guard Community Forum
Hi, I realize that  the role mapping was missing.

Thank you
Regards
Ana

Jochen Kressin

unread,
Aug 21, 2018, 9:17:30 AM8/21/18
to Search Guard Community Forum
Yes, that's what I wanted to post as well ;) You can always use the /_searchguard/authinfo endpoint for checking the mapped roles of the currently logged in user. Quite useful when debugging. Let me know if you have more questions regarding your PoC.

anabella....@gmail.com

unread,
Aug 21, 2018, 11:00:17 AM8/21/18
to Search Guard Community Forum
Thank you Jochen,
I was able to complete the initial scenario of the POC.

Regards
Ana

tuse...@gmail.com

unread,
Oct 9, 2018, 9:33:51 AM10/9/18
to Search Guard Community Forum
Hi,
I am newer for SG. I want to confirm:
  1. whether multy tennancy is only for commercialize.
  2. whether below config also can  define read only dashboards
    
searchguard.readonly_mode.roles: ["sg_read_only_1", "sg_read_only_2", ...]

在 2018年8月21日星期二 UTC+8上午9:25:35,Jochen Kressin写道:

Jochen Kressin

unread,
Oct 9, 2018, 1:30:09 PM10/9/18
to Search Guard Community Forum
Hi,

1. yes, this is a commercial feature

2. only partly. You can use the dashboard only feature to limit Kibana accessibility to dashboards (only) by setting the readonly_mode.roles as you described. However, this feature is implemented on Kibana only, so users would still be able to access the .kibana index by directly querying Elasticsearch.
Reply all
Reply to author
Forward
0 new messages