Skip to content

[Cloud Security] Azure support for dashboard and flyout and PLG for dashboard#167422

Merged
JordanSh merged 3 commits intoelastic:mainfrom
JordanSh:plg-dashboard
Sep 28, 2023
Merged

[Cloud Security] Azure support for dashboard and flyout and PLG for dashboard#167422
JordanSh merged 3 commits intoelastic:mainfrom
JordanSh:plg-dashboard

Conversation

@JordanSh
Copy link
Contributor

Summary

Resolves #167420
Resolves #165581

  • Added support for Azure in the dashboard's counter and posture cards
  • Added support for Azure in findings flyout, both for overview and rule tabs
  • Added the PLG changes for the dashboard (Enroll more accounts/clusters directly from dashboard)
  • Added support for EKS and K8S benchmarks in the kubernetes dashboard
  • All benchmarks are clickable, and navigate to matching findings page. Added hover effects (underline and cursor)
  • Updated RTC
Screen.Recording.2023-09-27.at.17.21.34.mov

@JordanSh JordanSh added release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related labels Sep 27, 2023
@JordanSh JordanSh self-assigned this Sep 27, 2023
@JordanSh JordanSh marked this pull request as ready for review September 27, 2023 16:22
@JordanSh JordanSh requested a review from a team as a code owner September 27, 2023 16:22
@elasticmachine
Copy link
Contributor

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

@kibana-ci
Copy link

💚 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
cloudSecurityPosture 274.9KB 275.1KB +217.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
cloudSecurityPosture 15.5KB 15.7KB +149.0B

History

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

cc @JordanSh

Copy link
Contributor

@opauloh opauloh left a comment

Choose a reason for hiding this comment

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

LGTM, only a few optional suggestions that can be addressed later

Comment on lines +94 to +110
<EuiButtonEmpty
iconType="listAdd"
target="_blank"
href={
dashboardType === KSPM_POLICY_TEMPLATE ? kspmIntegrationLink : cspmIntegrationLink
}
>
{dashboardType === KSPM_POLICY_TEMPLATE
? i18n.translate(
'xpack.csp.dashboard.summarySection.counterCard.clustersEvaluatedButtonTitle',
{ defaultMessage: 'Enroll more clusters' }
)
: i18n.translate(
'xpack.csp.dashboard.summarySection.counterCard.accountsEvaluatedButtonTitle',
{ defaultMessage: 'Enroll more accounts' }
)}
</EuiButtonEmpty>
Copy link
Contributor

Choose a reason for hiding this comment

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

It feels this could be better if splitting into two buttons

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah i agree but its pretty small so i prefer to just merge for now

navToFindings({ 'rule.benchmark.id': cisBenchmark });
};

const benchmarkElements = benchmarks.map((benchmark) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

think it's a good candidate to wrap with useMemo()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

while possible, it also means wrapping all the hooks in usecallbacks and for such small component all those memos are not worth it in my opinion

Comment on lines +89 to +91
:hover {
cursor: pointer;
border-color: ${euiTheme.colors.darkestShade};
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice addition!

@JordanSh JordanSh merged commit df9fd9d into elastic:main Sep 28, 2023
@kibanamachine kibanamachine added v8.11.0 backport:skip This PR does not require backporting labels Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related v8.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Cloud Security] Dashboard PLG - Enroll more accounts/clusters [Cloud Security][CIS Azure] Dashboard and Flyout support

5 participants