You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experiencing a permissions error when accessing OpenSearch Dashboards with a user that has the read_only_role backend role from Keycloak. Despite configuring the appropriate roles and permissions according to documentation, I'm receiving a security exception. [security_exception] no permissions for [indices:monitor/settings/get] and User [name=<my-email>, backend_roles=[read_only_role, offline_access], requestedTenant=null]
To Reproduce
I've set up the OpenSearch cluster using the Operator with security configurations as shown in the attached YAML files. After deployment, I've created and configured additional roles through the OpenSearch Dashboards UI following the official documentation at Defining users and roles - OpenSearch Documentation.
Created backend roles in Keycloak and assigned them to users
Created corresponding roles in OpenSearch with appropriate permissions including indices_monitor
Mapped the Keycloak backend roles to OpenSearch roles
Verified that all the necessary permissions are included in the role definitions
Checked tenant configurations (noticing that requestedTenant=null in the error)
Verified that admin users can access the indexes without issues
Expected behavior
I expect users with the read_only_role backend role to be able to see all indexes starting with 'pra' in OpenSearch Dashboards without permission errors. Admin users can currently see all indexes without issues.
OpenSearch Version
2.19.0
Dashboards Version
2.19.0
Plugins
Please list all plugins currently enabled.
Screenshots
Host/Environment (please complete the following information):
OS: Linux VM
Browser and version : Tried with every browser in the latest version, it is the same.
Describe the bug
I'm experiencing a permissions error when accessing OpenSearch Dashboards with a user that has the read_only_role backend role from Keycloak. Despite configuring the appropriate roles and permissions according to documentation, I'm receiving a security exception.
[security_exception] no permissions for [indices:monitor/settings/get] and User [name=<my-email>, backend_roles=[read_only_role, offline_access], requestedTenant=null]
To Reproduce
I've set up the OpenSearch cluster using the Operator with security configurations as shown in the attached YAML files. After deployment, I've created and configured additional roles through the OpenSearch Dashboards UI following the official documentation at Defining users and roles - OpenSearch Documentation.
Created backend roles in Keycloak and assigned them to users
Created corresponding roles in OpenSearch with appropriate permissions including indices_monitor
Mapped the Keycloak backend roles to OpenSearch roles
Verified that all the necessary permissions are included in the role definitions
Checked tenant configurations (noticing that requestedTenant=null in the error)
Verified that admin users can access the indexes without issues
Expected behavior
I expect users with the read_only_role backend role to be able to see all indexes starting with 'pra' in OpenSearch Dashboards without permission errors. Admin users can currently see all indexes without issues.
OpenSearch Version
2.19.0
Dashboards Version
2.19.0
Plugins
Please list all plugins currently enabled.
Screenshots
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: