Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Read only users see "[security_exception] no permissions" when looking at index patterns that point to no indices #17368

Open
jhenley-icr-team opened this issue Feb 15, 2025 · 0 comments
Labels
bug Something isn't working _No response_ untriaged

Comments

@jhenley-icr-team
Copy link

Describe the bug

Currently we have many read only users who will occasionally run into a bug where if they open an index pattern that points to no indices they see the below error

Error fetching fields for index pattern cognos1291_test_datasource_scripted_pattern (ID: cognos1291_test_datasource_scripted_pattern)

[object Object]: [security_exception] no permissions for [indices:data/read/field_caps] and User [name=/cn=cognos base user, ou=integration, o=cognos, l=aurora, st=colorado]

This causes confusion for users as it gives them the impression they cannot see the info, not that there is no data.

Related component

No response

To Reproduce

  1. Create an index pattern that points to no indices (easiest way to force it is to create an index pattern pointing at an index which is then deleted)
  2. As a user with read only permissions
  3. Go to Dashboards Management, select the created index pattern above
  4. See error like below image

Image

Expected behavior

Would expect that for a read only user that they would also see the same much more descriptive error that a user with read and write can see

Image

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@jhenley-icr-team jhenley-icr-team added bug Something isn't working untriaged labels Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working _No response_ untriaged
Projects
None yet
Development

No branches or pull requests

1 participant