elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.65k stars 8.23k forks source link

Consolidate Index Management missing privileges UX #107484

Open cjcenizal opened 3 years ago

cjcenizal commented 3 years ago

We need to consolidate the way missing privileges are handled by the Index Management UI. The Indices, Data Streams, and Index Templates UIs all handle these errors similarly, but Component Templates does things differently.

When testing with a user with the following privileges, Index Management is accessible, but the Indices and Data Streams tabs report the privileges error.

index_management_user: {
  elasticsearch: {
    cluster: ['monitor', 'manage_index_templates'],
  },
},

image

image

Reducing it further shows error for index and component templates too:

index_management_user: {
  elasticsearch: {
    cluster: ['monitor'],
  },
},

image

Note: Component templates has a specific privileges check for manage_index_templates and renders a custom error message.

image

elasticmachine commented 3 years ago

Pinging @elastic/kibana-stack-management (Team:Stack Management)

alisonelizabeth commented 3 years ago

Related to https://github.com/elastic/kibana/issues/43894.

elasticmachine commented 2 months ago

Pinging @elastic/kibana-management (Team:Kibana Management)