elastic / kibana

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

[Fleet]: Spaces which are not accessible is displayed a "?" under Agent policy settings for custom user having access only for Space2. #193827

Open amolnater-qasource opened 5 days ago

amolnater-qasource commented 5 days ago

Kibana Build details:

VERSION: 8.16.0 SNAPSHOT
BUILD: 78483
COMMIT: 6a9663fa3a874877f0ca034970e72af8ab70be66

Role: space: SPACE2

Integrations: All
Fleet: Read
Agents: Read
Agent policies: All
Settings: All

Image Image

Preconditions:

  1. 8.16.0-SNAPSHOT Kibana cloud environment should be available.
  2. New User should be created with above defined role.
  3. An agent policy should be provided access to all the spaces.

Steps to reproduce:

  1. Login with the above user to the second space.
  2. Now navigate to Fleet>Agent policy settings.
  3. Observe the spaces that are not accessible to this user are displayed as ?. Image

Expected Result: Spaces which are not accessible should not be displayed even as ? under Agent policy settings for custom user having access only for Space2.

Screen Recording:

https://github.com/user-attachments/assets/6bee6d45-5047-4a85-a5bf-b2ce096684f5

Feature: https://github.com/elastic/ingest-dev/issues/2903 https://github.com/elastic/ingest-dev/issues/1664

elasticmachine commented 5 days ago

Pinging @elastic/fleet (Team:Fleet)

amolnater-qasource commented 5 days ago

@muskangulati-qasource Please review.

muskangulati-qasource commented 5 days ago

Secondary review on this ticket is Done