elastic / kibana

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

Custom Roles users Cannot Access Agent Logs in Serverless #201059

Open opauloh opened 1 week ago

opauloh commented 1 week ago

Describe the bug

Users with custom roles, even with minimum read permissions, are unable to view agent logs in the Session Viewer. The UI fails to display the logs, although the API requests return the expected data.

Preconditions

  1. Serverless environment.
  2. User with custom minimum read permissions:
    • Elasticsearch Index Privileges: Includes * (Read).
    • Kibana Privileges: Security (Read).

To Reproduce

  1. Log in to the Serverless environment with the custom role user.
  2. Navigate to Fleet page and select an agent.
  3. Observe that agent logs are not displayed.
  4. Check the network requests to confirm that APIs are returning data.

Image

Expected behavior

Version

elasticmachine commented 1 week ago

Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security)