Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APM][EEM] Logs tab error when user does not have access to logs and infra apps #191205

Open
crespocarlos opened this issue Aug 23, 2024 · 8 comments
Labels
bug Fixes for quality problems that affect the customer experience RBAC Role Based Access Control stale Used to mark issues that were closed for being stale Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team

Comments

@crespocarlos
Copy link
Contributor

crespocarlos commented Aug 23, 2024

Summary

On the service overview powered by EEM, when accessing the logs tab without access to infra apps and indices, the error below happens

Image

Steps to reproduce

  • Create a user with elasticsearch index privileges:
    • indices: metrics-apm*,apm*,traces-apm*,logs-apm*
      • privileges: 'read', 'view_index_metadata'
    • and kibana privileges: APM and User Experience
  • Navigate to APM Service Overview (EEM enabled)
  • Click on the Logs tab

Possible solution

We could show the Logs tab only if application.uiCapabilities.logs.show is true or display a message saying that the user doesn't have permission if the same condition is not met, eg:

image

For some reason, the logs tab also fetches infra data. For that we need to make sure we're following the same thing proposed here #191198

@crespocarlos crespocarlos added bug Fixes for quality problems that affect the customer experience Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Aug 23, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@crespocarlos crespocarlos changed the title [APM][ECO] Logs tab error when user does not have access to logs and infra apps [APM][EEM] Logs tab error when user does not have access to logs and infra apps Aug 23, 2024
@crespocarlos
Copy link
Contributor Author

cc @roshan-elastic @smith

@crespocarlos crespocarlos added the RBAC Role Based Access Control label Aug 23, 2024
@roshan-elastic
Copy link

Hey @crespocarlos, does this happen in the normal APM/Infra worlds or is it a bug specific to EEM?

@crespocarlos
Copy link
Contributor Author

This is specific to the multi-signal service overview. The problem on APM service overview with traces is different #191188.

@roshan-elastic
Copy link

@smith - Do you think this is something we should handle or should we ask the logs team to handle this as part of their component?

@crespocarlos
Copy link
Contributor Author

@roshan-elastic the problem here is slightly different and does not only rely on permissions to see logs. For some reason, the logs tab tries to fetch infra data. This is partially related to #191198

@smith
Copy link
Contributor

smith commented Aug 28, 2024

Do you think this is something we should handle or should we ask the logs team to handle this as part of their component?

@roshan-elastic we should handle this. You shouldn't need infra permissions to see the logs tab.

@botelastic
Copy link

botelastic bot commented Feb 24, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added the stale Used to mark issues that were closed for being stale label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience RBAC Role Based Access Control stale Used to mark issues that were closed for being stale Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team
Projects
None yet
Development

No branches or pull requests

4 participants