Open sscarduzio opened 2 years ago
Pinging @elastic/security-solution (Team: SecuritySolution)
@MadameSheema @peluja1012
If you're ok with this, I'm putting it down as an 8.4 bug to fix. It's not great UX, but nothing is leaked, the user in this scenario still does not have access to Security
.
Pinging @elastic/security-detections-response (Team:Detections and Resp)
Validated 8.15 BC and it's still present:
https://github.com/user-attachments/assets/a8952843-6f03-49e0-929c-6419b68be2fc
Error: [object Object]: security_exception
Root causes:
security_exception: action [indices:data/read/field_caps] is unauthorized for user [paula] with effective roles [custom_role], this action is granted by the index privileges [view_index_metadata,manage,read,all]
at https://paula-8-15-3.kb.us-west2.gcp.elastic-cloud.com:9243/674b3abcdff6/bundles/plugin/dataViews/1.0.0/dataViews.plugin.js:1:55614
at async data_views_service_public_DataViewsServicePublic.refreshFieldSpecMap (https://paula-8-15-3.kb.us-west2.gcp.elastic-cloud.com:9243/674b3abcdff6/bundles/plugin/dataViews/1.0.0/dataViews.plugin.js:1:42078)
at async data_views_service_public_DataViewsServicePublic.initFromSavedObjectLoadFields (https://paula-8-15-3.kb.us-west2.gcp.elastic-cloud.com:9243/674b3abcdff6/bundles/plugin/dataViews/1.0.0/dataViews.plugin.js:1:43587)
at async data_views_service_public_DataViewsServicePublic.initFromSavedObject (https://paula-8-15-3.kb.us-west2.gcp.elastic-cloud.com:9243/674b3abcdff6/bundles/plugin/dataViews/1.0.0/dataViews.plugin.js:1:44121)
Kibana version: 8.1.3
Elasticsearch version: 8.1.3
Server OS version: Ubuntu 20.04
Browser version: Google Chrome (latest)
Browser OS version: MacOS (latest)
Original install method: apt-get
Describe the bug: this is a bug I discovered in Spaces with Security feature only. Could not reproduce it with other features.
Steps to reproduce
Disabling security from current space:
Searching and clicking Security from global search box
Expected behavior: No reference to security feature should be shown in the global search box when it's disabled from Spaces.