Skip to content

Refine privilege-checking UX in Index Management #77376

@cjcenizal

Description

@cjcenizal

Missing privileges for index actions should be surfaced

Per #76617, when you try to perform an action on an index without sufficient privileges (e.g. deleting an index as outlined in the linked issue), the UI shows a toast that says "Forbidden" but no other information. We can make this toast more helpful by surfacing the status code and message from the API:

{
  "statusCode":403,
  "error":"Forbidden",
  "message":"[security_exception] action [indices:admin/delete] is unauthorized for user [test] on indices [], this action is granted by the privileges [delete_index,manage,all]"
}

Surface missing cluster privileges for index templates

When the user is missing the required privileges for managing index templates they just see a 500 error:

image

We should incorporate the same privileges check used in component templates:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:Index ManagementIndex and index templates UITeam:Kibana ManagementDev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//enhancementNew value added to drive a business result

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions