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

[Cloud Security] Adding unprivileged state to benchmark page #195172

Merged

Conversation

JordanSh
Copy link
Contributor

@JordanSh JordanSh commented Oct 6, 2024

Summary

Resolves #194056

Added unprivileged state to the benchmark page. in video i start by using a user without required index privileges and switch to a super user

Screen.Recording.2024-10-06.at.18.09.00.mov

@JordanSh JordanSh added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:Cloud Security Cloud Security team related backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) labels Oct 6, 2024
@JordanSh JordanSh self-assigned this Oct 6, 2024
@JordanSh JordanSh requested a review from a team as a code owner October 6, 2024 15:33
@elasticmachine
Copy link
Contributor

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

@CohenIdo
Copy link
Contributor

CohenIdo commented Oct 7, 2024

We should disable the pop up since it's displaying the same message, no reason to present it twice.

image

@JordanSh
Copy link
Contributor Author

JordanSh commented Oct 7, 2024

We should disable the pop up since it's displaying the same message, no reason to present it twice.

It has the "show full error" functionality which also include the user and role.
I would like to include that

Copy link
Contributor

@CohenIdo CohenIdo left a comment

Choose a reason for hiding this comment

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

LGTM, A minor suggestion: I found showNoFindingsStates a bit confusing, as there may be findings, but the user lacks the necessary privileges. However, I noticed we use the same term in other parts of the code, and changing it would require a larger refactor beyond this specific section.

@JordanSh
Copy link
Contributor Author

JordanSh commented Oct 7, 2024

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

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
cloudSecurityPosture 507.6KB 507.6KB +44.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @JordanSh

@JordanSh JordanSh merged commit 5d7de2f into elastic:main Oct 7, 2024
21 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 7, 2024
…195172) (#195298)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cloud Security] Adding unprivileged state to benchmark page
(#195172)](#195172)

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

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

<!--BACKPORT
[{"author":{"name":"Jordan","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-07T16:49:09Z","message":"[Cloud
Security] Adding unprivileged state to benchmark page
(#195172)","sha":"5d7de2f6c259f9db674d23d67e946d24b23efdc2","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Cloud
Security","backport:prev-minor"],"title":"[Cloud Security] Adding
unprivileged state to benchmark
page","number":195172,"url":"https://github.com/elastic/kibana/pull/195172","mergeCommit":{"message":"[Cloud
Security] Adding unprivileged state to benchmark page
(#195172)","sha":"5d7de2f6c259f9db674d23d67e946d24b23efdc2"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195172","number":195172,"mergeCommit":{"message":"[Cloud
Security] Adding unprivileged state to benchmark page
(#195172)","sha":"5d7de2f6c259f9db674d23d67e946d24b23efdc2"}}]}]
BACKPORT-->

Co-authored-by: Jordan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Handle Unprivileged indices in the benchmarks page
5 participants