Index Pattern modifications allowed even though "feature_indexPatterns" is set to "Read" #134593
Labels
bug
Fixes for quality problems that affect the customer experience
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Kibana version: 7.16.3
Elasticsearch version: 7.16.3
Server OS version: RHEL7
Browser version: n/a
Browser OS version: n/a
Original install method (e.g. download page, yum, from source, etc.): yum
Describe the bug: An Elasticsearch role with feature-level privileges defined for Kibana as shown below, allows the user to modify the Index Pattern through the workflow of Discover -> Select a field on the left -> Click the "pencil" icon to edit -> make changes via the "Edit field" dialog. That same user, when navigating to Stack Management -> Index Patterns -> select a pattern, is restricted for being able to edit any fields (as expected).
Steps to reproduce:
Similarly, swapping the read/all on those two privileges (so that indexPatterns is "all" and savedObjectsManagement is "read") also allows the Discover-based workflow to successfully modify a fields' custom label.
It appears so though "either" of these privileges provides ability to make changes to the Index Pattern via Discover -> field -> pencil -> Edit field workflow.
Expected behavior: It is expected that the "Discover -> field -> pencil -> Edit field" workflow should be governed 100% by the
feature_indexPatterns
privilege. -- or, said another way.. The fact that "Index Pattern Management" and "Saved Objects Management" each have "None/Read/All" privileges, implies that they are able to be controlled separately. Yet, in reality, it doesn't matter what you select for "Index Pattern Management" since the "Saved Object Management" can still override it.At minimum, the bug here is the way that these two "features" are presented as separate items that have no bearing on each other.
Screenshots (if relevant): n/a
Errors in browser console (if relevant): n/a
Provide logs and/or server output (if relevant): n/a
Any additional context:
This is somewhat related to #49045 , yet I feel that the issue with the confusion between "Index Pattern Management" and "Saved Objects Management" in the UI and how that actually affects privileges on the back-end is a separate issue.
The text was updated successfully, but these errors were encountered: