Describe the issue:
The Discover page is blank in OpenSearch Dashboards with a 403 Forbidden error on /api/saved_objects/_find?fields=title&per_page=10000&type=index-pattern with the following message:
no permissions for [indices:data/read/search] and User [name=test, backend_roles=[], requestedTenant=null]: security_exception: [security_exception] Reason: no permissions for [indices:data/read/search] and User [name=test, backend_roles=[], requestedTenant=null]
Even after adding indices:data/read/search + indices:data/read/search* + indices:data/read/search/template in both Cluster and Index permissions, the error occurs.
Error fetching index pattern: Could not locate that index-pattern (id: test-kubernetes-logs), [click here to re-create it](management/opensearch-dashboards/indexPatterns)
The index pattern exists. There’s no error and the data is shown when I log in with the admin user.
Here’s the output: yellow open test-kubernetes-logs-2024.10.22 M24gYX9NQY2UIt1pyB6yDA 1 1 14817 0 5.6mb 5.6mb
For that to work, I had to add cluster permissions cluster:monitor/state + cluster:monitor/health and index permissions indices:monitor/settings/get + indices:monitor/stats.
Yes, but the error persists with my test user. With my admin user, everything is working fine. My admin user has the all_access role, which of course I don’t want to give to my test user. I want my test user to only be able to browse the data of test-kubernetes* indices.
@sebtheone, I noticed an opened issue[BUG] (I assume you cut it?) in GitHub (link below).
I think that is a good place to take this conversation to, as there seem to be similar reports in the forum - such as here.
Could you please let me know if you have any luck “breaking this nut”, I’ll run some tests in my lab and get back to you here if any progress.
Yes I created the GitHub issue you’re mentioning. When I have the solution, I will for sure share it there as well as here.
My objective is simply this: give access to some users to read-only browse the data of indices under specific index patterns, though a UI (it could be something else then the Discover feature of OpenSearch Dashboards, but that’s what I know about).
It feels like the permissions were not designed to work in conjunction with OpenSearch Dashboards, which is odd to me. I’m not sure what to test now, but I’m not giving up.