-
Notifications
You must be signed in to change notification settings - Fork 204
Description
Is your feature request related to a problem?
Currently, there are not many controls in place for cluster administrators to determine the menu items in OpenSearch Dashboards.
For instance, there are really only 3 levels of control:
-
Users mapped to
kibana_user
- These users can see all menu items except forSecurity
under theManagement
section of the main menu. Whilekibana_user
lets the user see all plugins, it does not give them permission to use the plugin. Users mapped to this role often get Forbidden errors when trying to use different functionality in OpenSearch Dashboards -
Users mapped to
kibana_read_only
- Users mapped to this role are restricted from seeing most pages. The full list of pages they are allowed to view is defined here: https://github.com/opensearch-project/security-dashboards-plugin/blob/main/public/plugin.ts#L91 -
Security Admins - Security Admins can see all of what 1 can see and can also see
Security
under the Management sub-menu. In order to hide security from 1, security-dashboards-plugin calls an endpoint to see if the logged in user has api permission
There should be better controls to reveal whether the logged in user should see a particular menu item.
One idea could be to copy similar logic to 3) across various dashboards plugins to see if the logged in user has permission to a given dashboards plugin. If the user does not have permission then do not reveal it in the main menu.