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

[Security Solution] [Serverless] Open in Lens option from Visualize library is not Opening anything in Lens for users with Tier 1 Analyst role #168245

Closed
vgomez-el opened this issue Oct 6, 2023 · 7 comments
Assignees
Labels
blocker bug Fixes for quality problems that affect the customer experience fixed impact:critical This issue should be addressed immediately due to a critical level of impact on the product. Project:Serverless Work as part of the Serverless project for its initial release QA:Validated Issue has been validated by QA Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. triage_needed

Comments

@vgomez-el
Copy link

Describe the bug:
User with Tier 1 Analyst role cannot visualize properly in Lens

Kibana/Elasticsearch Stack version:

Server OS version:
Serverless, production environment
Browser and Browser OS versions:

Elastic Endpoint version:

Original install method (e.g. download page, yum, from source, etc.):

Functional Area (e.g. Endpoint management, timelines, resolver, etc.):

Steps to reproduce:

  1. Navigate to Explore --> network
  2. Mouse over any chart
  3. open the options menu
  4. Click More --> Open in Lens
  5. Notice the "You don't have permissions to access the requested page message"

Current behavior:
User is getting a "You don't have permissions to access the requested page message"

Expected behavior:
According to Serverless Security Roles spreadsheet, Tier 1 Analyst role should have All permissions for Visulize Library (Lens, Maps, Aggregations, Tools)

Screenshots (if relevant):
https://github.com/elastic/kibana/assets/120487607/da877a37-9454-4c2f-b7be-16dbb395cb18
Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context (logs, chat logs, magical formulas, etc.):

@vgomez-el vgomez-el added bug Fixes for quality problems that affect the customer experience triage_needed impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. labels Oct 6, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@MadameSheema MadameSheema added the Project:Serverless Work as part of the Serverless project for its initial release label Oct 17, 2023
@angorayc
Copy link
Contributor

angorayc commented Oct 24, 2023

Hi, I logged in with t1_analyst, and found that visualization lib was not available. Not just open in Lens from Lens Embeddables.

Screenshot 2023-10-24 at 22 04 28
Screen.Recording.2023-10-24.at.22.02.17.mov

@angorayc
Copy link
Contributor

Map was not available when logged in with t1_analyst either:

Screen.Recording.2023-10-24.at.22.07.00.mov

@angorayc
Copy link
Contributor

From the role definition: https://github.com/elastic/project-controller/blob/09a551b63d5fdc531f97b79c95a966eead8e62b3/internal/project/security/config/roles.yml#L124
Seems that it's expected not to have map and visualization access as t1_analyst, @dhurley14 could you please have a look to this?

@semd
Copy link
Contributor

semd commented Oct 25, 2023

This is pretty serious, even Discovery is not available using those roles.

All roles are missing the "analytics" features, we need to add:

feature_canvas.[all|read]
feature_dashboard.[all|read]
feature_discover.[all|read]
feature_graph.[all|read]
feature_maps.[all|read]
feature_visualize.[all|read]

I see the "roles -> features" spreadsheet defines Security Dashboards, Visulize Library (Lens, Maps, Aggregations, Tools) and Kibana Dashboards (Integrations-included and Custom), they are set to all in every role, so we should add:

feature_canvas.all
feature_dashboard.all
feature_discover.all
feature_graph.all
feature_maps.all
feature_visualize.all

To in all the roles definition in the yml. I will create a PR ASAP adding them

@semd semd self-assigned this Oct 25, 2023
@crowens crowens added blocker impact:critical This issue should be addressed immediately due to a critical level of impact on the product. and removed impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. labels Oct 25, 2023
semd added a commit that referenced this issue Nov 2, 2023
## Summary

issue: #168245

Adding missing "Analytics" features to all Security roles:

```
        - feature_discover.all
        - feature_dashboard.all
        - feature_canvas.all
        - feature_graph.all
        - feature_maps.all
        - feature_visualize.all
```

In order to verify the Discover link is present in the sidenav a new
cypress test for serverless has been added to:

`x-pack/test/security_solution_cypress/cypress/e2e/navigation/navigation.cy.ts`

---------

Co-authored-by: Kibana Machine <[email protected]>
delanni pushed a commit to delanni/kibana that referenced this issue Nov 6, 2023
…#169783)

## Summary

issue: elastic#168245

Adding missing "Analytics" features to all Security roles:

```
        - feature_discover.all
        - feature_dashboard.all
        - feature_canvas.all
        - feature_graph.all
        - feature_maps.all
        - feature_visualize.all
```

In order to verify the Discover link is present in the sidenav a new
cypress test for serverless has been added to:

`x-pack/test/security_solution_cypress/cypress/e2e/navigation/navigation.cy.ts`

---------

Co-authored-by: Kibana Machine <[email protected]>
@semd semd added the fixed label Nov 7, 2023
@semd
Copy link
Contributor

semd commented Nov 7, 2023

@vgomez-el This should be already solved, could you please test again?

@vgomez-el vgomez-el added the QA:Validated Issue has been validated by QA label Nov 8, 2023
@vgomez-el
Copy link
Author

REC-20231108182214.mp4

Sure, It works right now! I will mark the bug as validated and close it.

Thank you all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker bug Fixes for quality problems that affect the customer experience fixed impact:critical This issue should be addressed immediately due to a critical level of impact on the product. Project:Serverless Work as part of the Serverless project for its initial release QA:Validated Issue has been validated by QA Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. triage_needed
Projects
None yet
Development

No branches or pull requests

6 participants