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] 3P integrations callouts #194362

Merged
merged 15 commits into from
Oct 4, 2024

Conversation

JordanSh
Copy link
Contributor

@JordanSh JordanSh commented Sep 29, 2024

Summary

Adding PLG callouts for Wiz integration in the findings pages, while also addressing some minor bugs and changes revolving around the 3P workflows changes

Resolves #187571
Resolves #194383
Resolves #189617

  • Adding table page callout
Screen.Recording.2024-09-29.at.18.07.54.mov
  • Adding vuln flyout callout for missing fields
  • Fixing alert field always showing disabled
  • Adjusting source field, now is vendor field in table and flyouts
Screen.Recording.2024-09-29.at.20.44.51.mov

@JordanSh JordanSh added release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Sep 29, 2024
@JordanSh JordanSh self-assigned this Sep 29, 2024
@JordanSh JordanSh marked this pull request as ready for review September 30, 2024 14:54
@JordanSh JordanSh requested a review from a team as a code owner September 30, 2024 14:54
@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@maxcold maxcold left a comment

Choose a reason for hiding this comment

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

The main open question for me is when do we show the callout. I think showing it for users who added the integration might be annoying. Shouldn't be too complex to check if the user already has wiz cdr index

@maxcold
Copy link
Contributor

maxcold commented Oct 1, 2024

also the callout looks a bit weird in the empty state, as we are duplicating the information we already have on the empty state tile

Screenshot 2024-10-01 at 13 47 57

@JordanSh
Copy link
Contributor Author

JordanSh commented Oct 1, 2024

also the callout looks a bit weird in the empty state, as we are duplicating the information we already have on the empty state tile

Screenshot 2024-10-01 at 13 47 57

I wanted to fix it but TBH im not sure what is the correct behaviour. if we only display is when there is a table, and we have two tables on one page, does it appear and disappear if only one tab has a table?

The other option is that we have a callout for each table, above the table itself instead of above the tabs. but it means users will have to close this box twice.

I'm not sure what is the best solution, right now im tending into leaving it as it. we change later if product will have another idea

if (dataset === WIZ_MISCONFIGURATIONS_DATASET || dataset === WIZ_VULN_DATASET) return 'Wiz';
if (dataset === CSP_MISCONFIGURATIONS_DATASET || dataset === CSP_VULN_DATASET)
return 'Elastic CSP';
if (dataset === CSP_MISCONFIGURATIONS_DATASET || dataset === CSP_VULN_DATASET) return 'Elastic';
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: isNativeCspFinding

@JordanSh JordanSh enabled auto-merge (squash) October 4, 2024 15:30
@JordanSh JordanSh merged commit d3f3d34 into elastic:main Oct 4, 2024
23 checks passed
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
cloudSecurityPosture 651 652 +1

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/cloud-security-posture-common 72 86 +14

Async chunks

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

id before after diff
cloudSecurityPosture 506.9KB 507.6KB +675.0B

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
@kbn/cloud-security-posture-common 0 1 +1
Unknown metric groups

API count

id before after diff
@kbn/cloud-security-posture-common 74 88 +14

History

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

cc @JordanSh

@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 4, 2024
@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

jbudz pushed a commit to jbudz/kibana that referenced this pull request Oct 4, 2024
kibanamachine added a commit that referenced this pull request Oct 4, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cloud Security] 3P integrations callouts
(#194362)](#194362)

<!--- 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-04T17:27:56Z","message":"[Cloud
Security] 3P integrations callouts
(#194362)","sha":"d3f3d34519c0be68f1660f3bd6c82540e6d97b90","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] 3P
integrations
callouts","number":194362,"url":"https://github.com/elastic/kibana/pull/194362","mergeCommit":{"message":"[Cloud
Security] 3P integrations callouts
(#194362)","sha":"d3f3d34519c0be68f1660f3bd6c82540e6d97b90"}},"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/194362","number":194362,"mergeCommit":{"message":"[Cloud
Security] 3P integrations callouts
(#194362)","sha":"d3f3d34519c0be68f1660f3bd6c82540e6d97b90"}}]}]
BACKPORT-->

Co-authored-by: Jordan <[email protected]>
tiansivive pushed a commit to tiansivive/kibana that referenced this pull request Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) 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
5 participants