Skip to content

[8.16] [Securitysolution] Add Risk score missing privileges callout to enablement flyout (#199804)#200506

Merged
machadoum merged 2 commits intoelastic:8.16from
machadoum:backport/8.16/pr-199804
Nov 18, 2024
Merged

[8.16] [Securitysolution] Add Risk score missing privileges callout to enablement flyout (#199804)#200506
machadoum merged 2 commits intoelastic:8.16from
machadoum:backport/8.16/pr-199804

Conversation

@machadoum
Copy link
Copy Markdown
Member

Backport

This will backport the following commits from main to 8.16:

Questions ?

Please refer to the Backport tool documentation

\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n\n\nCo-authored-by: Pablo Machado "}},{"branch":"8.16","label":"v8.16.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->

…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)

# Conflicts:
#	x-pack/plugins/security_solution/public/entity_analytics/components/entity_store/components/enablement_modal.test.tsx
#	x-pack/plugins/security_solution/public/entity_analytics/components/entity_store/components/enablement_modal.tsx
@machadoum machadoum requested a review from a team as a code owner November 18, 2024 08:34
@machadoum machadoum added the backport This PR is a backport of another PR label Nov 18, 2024
@machadoum machadoum requested a review from hop-dev November 18, 2024 08:34
@machadoum machadoum enabled auto-merge (squash) November 18, 2024 08:34
@machadoum
Copy link
Copy Markdown
Member Author

I removed the tests from 8.16 because the test file doesn't exist.

@elasticmachine
Copy link
Copy Markdown
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 20.6MB 20.6MB +171.0B

History

@machadoum machadoum merged commit c77b1b6 into elastic:8.16 Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants