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

[Securitysolution] Add Risk score missing privileges callout to enablement flyout #199804

Merged
merged 5 commits into from
Nov 14, 2024

Conversation

machadoum
Copy link
Member

@machadoum machadoum commented Nov 12, 2024

Summary

The entity analytics enablement model doesn't show the missing privileges warning for the Entity Risk score.

To fix it, I added to the model the same callout we display on the risk engine page.

What is not included

How to test it

  • Create a user with no privileges except to the security solution app and the logs* index
  • Login and open the entity analytics page with the non-privileged user
  • Click enable and check if the model displays the missing privileges callout for the risk engine

Checklist

@machadoum machadoum self-assigned this Nov 12, 2024
@machadoum machadoum added Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Theme: entity_analytics Feature:Entity Analytics Security Solution Entity Analytics features Team:Entity Analytics Security Entity Analytics Team release_note:skip Skip the PR/issue when compiling release notes v9.0.0 backport:version Backport to applied version labels v8.17.0 ci:cloud-deploy Create or update a Cloud deployment labels Nov 12, 2024
@machadoum machadoum removed the ci:cloud-deploy Create or update a Cloud deployment label Nov 13, 2024
@machadoum machadoum marked this pull request as ready for review November 13, 2024 13:55
@machadoum machadoum requested a review from a team as a code owner November 13, 2024 13:55
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-entity-analytics (Team:Entity Analytics)

Copy link
Contributor

@hop-dev hop-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, the UI is looking a bit busy when thre user doesnt have any privileges but I dont think we can get around that.

Screenshot 2024-11-13 at 16 00 13

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 13.4MB 13.4MB +175.0B

History

cc @machadoum

@machadoum machadoum merged commit 54c6144 into elastic:main Nov 14, 2024
46 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.x

https://github.com/elastic/kibana/actions/runs/11833605420

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 14, 2024
…ement flyout (elastic#199804)

## Summary

The entity analytics enablement model doesn't show the missing
privileges warning for the Entity Risk score.

To fix it, I added to the model the same callout we display on the risk
engine page.

### What is not included
* Improvement to the risk engine callout
* Fix risk engine callout bugs
elastic/security-team#11138

### How to test it
* Create a user with no privileges except to the security solution app
and the `logs*` index
* Login and open the entity analytics page with the non-privileged user
* Click enable and check if the model displays the missing privileges
callout for the risk engine

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 54c6144)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.16 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.16:
- Confirmation Modal - show warning message when nothing has been changed in modal. (#199523)
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 199804

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Nov 14, 2024
… enablement flyout (#199804) (#200123)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Securitysolution] Add Risk score missing privileges callout to
enablement flyout
(#199804)](#199804)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Pablo
Machado","email":"pablo.nevesmachado@elastic.co"},"sourceCommit":{"committedDate":"2024-11-14T08:40:27Z","message":"[Securitysolution]
Add Risk score missing privileges callout to enablement flyout
(#199804)\n\n## Summary\r\n\r\nThe entity analytics enablement model
doesn't show the missing\r\nprivileges warning for the Entity Risk
score.\r\n\r\nTo fix it, I added to the model the same callout we
display on the risk\r\nengine page.\r\n\r\n### What is not included\r\n*
Improvement to the risk engine callout\r\n* Fix risk engine callout
bugs\r\nhttps://github.com/elastic/security-team/issues/11138\r\n\r\n###
How to test it\r\n* Create a user with no privileges except to the
security solution app\r\nand the `logs*` index\r\n* Login and open the
entity analytics page with the non-privileged user\r\n* Click enable and
check if the model displays the missing privileges\r\ncallout for the
risk engine\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"54c6144bbc9e041dad5c2fd9f296ea7d838cc614","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:
SecuritySolution","Theme: entity_analytics","Feature:Entity
Analytics","Team:Entity
Analytics","backport:version","v8.17.0","v8.16.1"],"title":"[Securitysolution]
Add Risk score missing privileges callout to enablement
flyout","number":199804,"url":"https://github.com/elastic/kibana/pull/199804","mergeCommit":{"message":"[Securitysolution]
Add Risk score missing privileges callout to enablement flyout
(#199804)\n\n## Summary\r\n\r\nThe entity analytics enablement model
doesn't show the missing\r\nprivileges warning for the Entity Risk
score.\r\n\r\nTo fix it, I added to the model the same callout we
display on the risk\r\nengine page.\r\n\r\n### What is not included\r\n*
Improvement to the risk engine callout\r\n* Fix risk engine callout
bugs\r\nhttps://github.com/elastic/security-team/issues/11138\r\n\r\n###
How to test it\r\n* Create a user with no privileges except to the
security solution app\r\nand the `logs*` index\r\n* Login and open the
entity analytics page with the non-privileged user\r\n* Click enable and
check if the model displays the missing privileges\r\ncallout for the
risk engine\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"54c6144bbc9e041dad5c2fd9f296ea7d838cc614"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199804","number":199804,"mergeCommit":{"message":"[Securitysolution]
Add Risk score missing privileges callout to enablement flyout
(#199804)\n\n## Summary\r\n\r\nThe entity analytics enablement model
doesn't show the missing\r\nprivileges warning for the Entity Risk
score.\r\n\r\nTo fix it, I added to the model the same callout we
display on the risk\r\nengine page.\r\n\r\n### What is not included\r\n*
Improvement to the risk engine callout\r\n* Fix risk engine callout
bugs\r\nhttps://github.com/elastic/security-team/issues/11138\r\n\r\n###
How to test it\r\n* Create a user with no privileges except to the
security solution app\r\nand the `logs*` index\r\n* Login and open the
entity analytics page with the non-privileged user\r\n* Click enable and
check if the model displays the missing privileges\r\ncallout for the
risk engine\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"54c6144bbc9e041dad5c2fd9f296ea7d838cc614"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Pablo Machado <pablo.nevesmachado@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels Feature:Entity Analytics Security Solution Entity Analytics features release_note:skip Skip the PR/issue when compiling release notes Team:Entity Analytics Security Entity Analytics Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Theme: entity_analytics v8.16.1 v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants