Skip to content

[SecuritySolution] Add fleet integration#193131

Closed
angorayc wants to merge 59 commits intoelastic:mainfrom
angorayc:onboarding-fleet-integration
Closed

[SecuritySolution] Add fleet integration#193131
angorayc wants to merge 59 commits intoelastic:mainfrom
angorayc:onboarding-fleet-integration

Conversation

@angorayc
Copy link
Copy Markdown
Contributor

@angorayc angorayc commented Sep 17, 2024

Summary

#189487

It shows featured cards without the search box on the recommended tab; and shows all the cards and a search box on other tabs:

Featured cards:

  1. AWS
  2. GCP
  3. Azure
  4. Elastic Defend
  5. CrowdStrike (to promote our extended protections/3rd party EDR support)
  6. Wiz (or another cloud integration to promote extended protections)
  7. Network Packet Capture
  8. Osquery Manager
  9. Cloud Asset Inventory (need to confirm that's confirmed for 8.16) - Currently Not Found any integration matched
Screenshot 2024-10-08 at 13 31 12

It persists the search term across tabs when the search box is visible:

When clicking on back button, cancellation button, and save button, it should go back to the security onboarding hub:

Screen.Recording.2024-10-08.at.13.15.12.mov
Screen.Recording.2024-10-08.at.13.13.17.mov

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Sep 17, 2024

🤖 Jobs for this PR can be triggered through checkboxes. 🚧

ℹ️ To trigger the CI, please tick the checkbox below 👇

  • Click to trigger kibana-pull-request for this PR!

@angorayc angorayc force-pushed the onboarding-fleet-integration branch from 82c2cf3 to e9d5329 Compare September 17, 2024 11:07
Comment on lines 405 to 421
Copy link
Copy Markdown
Contributor Author

@angorayc angorayc Sep 24, 2024

Choose a reason for hiding this comment

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

This change is to allow customised redirect on cancel:

Screen.Recording.2024-09-24.at.14.14.25.mov

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

SecuritySolution uses onboardingLink url param to get the back link (I'm trying to name it more general, open for suggestion):

Back link video here:

https://github.com/elastic/kibana/pull/193131/files#r1773326131

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

SecuritySolution uses this api to check the installed packages' count.

@angorayc angorayc force-pushed the onboarding-fleet-integration branch from 8736574 to ca0da36 Compare October 1, 2024 12:48
@angorayc
Copy link
Copy Markdown
Contributor Author

angorayc commented Oct 1, 2024

/ci

@kibana-ci
Copy link
Copy Markdown

kibana-ci commented Oct 1, 2024

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #34 / dashboard app - group 1 Changing field formatter to Url applied on discover
  • [job] [logs] FTR Configs #34 / dashboard app - group 1 Changing field formatter to Url applied on discover
  • [job] [logs] FTR Configs #94 / discover/group6 discover time field column should add a time field column ESQL mode should render selected columns correctly
  • [job] [logs] FTR Configs #94 / discover/group6 discover time field column should add a time field column ESQL mode should render selected columns correctly
  • [job] [logs] FTR Configs #91 / lens app - group 6 lens workspace size gauge size (absolute pixels) - circle
  • [job] [logs] FTR Configs #91 / lens app - group 6 lens workspace size gauge size (absolute pixels) - circle
  • [job] [logs] FTR Configs #41 / Rules Management - Prebuilt Rules - Prebuilt Rules Management @ess @serverless @skipInServerlessMKI Bootstrap Prebuilt Rules should skip installing fleet packages if they are already installed
  • [job] [logs] FTR Configs #41 / Rules Management - Prebuilt Rules - Prebuilt Rules Management @ess @serverless @skipInServerlessMKI Bootstrap Prebuilt Rules should skip installing fleet packages if they are already installed
  • [job] [logs] FTR Configs #89 / serverless observability UI Dataset Quality Dataset quality summary shows poor, degraded and good count as 0 and all dataset as healthy
  • [job] [logs] FTR Configs #89 / serverless observability UI Dataset Quality Dataset quality summary shows poor, degraded and good count as 0 and all dataset as healthy

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
fleet 1213 1214 +1
securitySolution 5799 5789 -10
total -9

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
fleet 1238 1257 +19
securitySolution 124 119 -5
total +14

Async chunks

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

id before after diff
fleet 1.8MB 1.8MB +2.4KB
securitySolution 20.4MB 20.4MB -22.5KB
total -20.1KB

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
securitySolution 34 33 -1

Page load bundle

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

id before after diff
fleet 171.2KB 171.4KB +179.0B
securitySolution 87.0KB 84.8KB -2.3KB
securitySolutionEss 16.5KB 16.1KB -402.0B
securitySolutionServerless 21.6KB 20.8KB -775.0B
total -3.3KB
Unknown metric groups

API count

id before after diff
fleet 1361 1380 +19
securitySolution 193 188 -5
total +14

async chunk count

id before after diff
securitySolution 95 96 +1

ESLint disabled line counts

id before after diff
securitySolution 541 543 +2

miscellaneous assets size

id before after diff
securitySolution 6.3MB 6.1MB -237.1KB

Total ESLint disabled count

id before after diff
securitySolution 626 628 +2

History

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

@angorayc angorayc force-pushed the onboarding-fleet-integration branch from 32298df to 3733369 Compare October 2, 2024 11:13
angorayc added a commit that referenced this pull request Oct 3, 2024
## Summary
This is the Fleet relevant changes from
#193131
1. Add an option to display installation status on package cards.
2. Add options to display spacer in grid, card height, line clamps for
card title and description.
3. On the integration details page, if `onboardingLink` and
`onboardingAppId` are appended as url params, they will be used as the
redirect link after clicking `cancel` or `save and continue` on the
installation form page.

Please run from this branch and visit Security Solution to test:
#193131


https://github.com/user-attachments/assets/40fc155f-d07c-460f-ab70-372e3b43bfc0





https://github.com/user-attachments/assets/06bd0c5e-14b2-4074-b5a1-932a88a1cc6a




https://github.com/user-attachments/assets/1ed4ace9-20a7-42ab-9082-4536d6cd643a


### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 3, 2024
)

## Summary
This is the Fleet relevant changes from
elastic#193131
1. Add an option to display installation status on package cards.
2. Add options to display spacer in grid, card height, line clamps for
card title and description.
3. On the integration details page, if `onboardingLink` and
`onboardingAppId` are appended as url params, they will be used as the
redirect link after clicking `cancel` or `save and continue` on the
installation form page.

Please run from this branch and visit Security Solution to test:
elastic#193131

https://github.com/user-attachments/assets/40fc155f-d07c-460f-ab70-372e3b43bfc0

https://github.com/user-attachments/assets/06bd0c5e-14b2-4074-b5a1-932a88a1cc6a

https://github.com/user-attachments/assets/1ed4ace9-20a7-42ab-9082-4536d6cd643a

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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 3d932e1)
kibanamachine added a commit that referenced this pull request Oct 3, 2024
…) (#194863)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[SecuritySolution] Onboarding hub with Fleet integration
(#194028)](#194028)

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

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

<!--BACKPORT [{"author":{"name":"Angela
Chuang","email":"6295984+angorayc@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-03T16:56:11Z","message":"[SecuritySolution]
Onboarding hub with Fleet integration (#194028)\n\n## Summary\r\nThis is
the Fleet relevant changes
from\r\nhttps://github.com//pull/193131\r\n1. Add an
option to display installation status on package cards.\r\n2. Add
options to display spacer in grid, card height, line clamps for\r\ncard
title and description.\r\n3. On the integration details page, if
`onboardingLink` and\r\n`onboardingAppId` are appended as url params,
they will be used as the\r\nredirect link after clicking `cancel` or
`save and continue` on the\r\ninstallation form page.\r\n\r\nPlease run
from this branch and visit Security Solution to
test:\r\nhttps://github.com//pull/193131\r\n\r\n\r\nhttps://github.com/user-attachments/assets/40fc155f-d07c-460f-ab70-372e3b43bfc0\r\n\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/06bd0c5e-14b2-4074-b5a1-932a88a1cc6a\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/1ed4ace9-20a7-42ab-9082-4536d6cd643a\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\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":"3d932e18e88a5b093c5be38da27139785d572061","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","Team:Fleet","v9.0.0","Team:Threat
Hunting:Explore","v8.16.0"],"title":"[SecuritySolution] Onboarding hub
with Fleet
integration","number":194028,"url":"https://github.com/elastic/kibana/pull/194028","mergeCommit":{"message":"[SecuritySolution]
Onboarding hub with Fleet integration (#194028)\n\n## Summary\r\nThis is
the Fleet relevant changes
from\r\nhttps://github.com//pull/193131\r\n1. Add an
option to display installation status on package cards.\r\n2. Add
options to display spacer in grid, card height, line clamps for\r\ncard
title and description.\r\n3. On the integration details page, if
`onboardingLink` and\r\n`onboardingAppId` are appended as url params,
they will be used as the\r\nredirect link after clicking `cancel` or
`save and continue` on the\r\ninstallation form page.\r\n\r\nPlease run
from this branch and visit Security Solution to
test:\r\nhttps://github.com//pull/193131\r\n\r\n\r\nhttps://github.com/user-attachments/assets/40fc155f-d07c-460f-ab70-372e3b43bfc0\r\n\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/06bd0c5e-14b2-4074-b5a1-932a88a1cc6a\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/1ed4ace9-20a7-42ab-9082-4536d6cd643a\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\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":"3d932e18e88a5b093c5be38da27139785d572061"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194028","number":194028,"mergeCommit":{"message":"[SecuritySolution]
Onboarding hub with Fleet integration (#194028)\n\n## Summary\r\nThis is
the Fleet relevant changes
from\r\nhttps://github.com//pull/193131\r\n1. Add an
option to display installation status on package cards.\r\n2. Add
options to display spacer in grid, card height, line clamps for\r\ncard
title and description.\r\n3. On the integration details page, if
`onboardingLink` and\r\n`onboardingAppId` are appended as url params,
they will be used as the\r\nredirect link after clicking `cancel` or
`save and continue` on the\r\ninstallation form page.\r\n\r\nPlease run
from this branch and visit Security Solution to
test:\r\nhttps://github.com//pull/193131\r\n\r\n\r\nhttps://github.com/user-attachments/assets/40fc155f-d07c-460f-ab70-372e3b43bfc0\r\n\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/06bd0c5e-14b2-4074-b5a1-932a88a1cc6a\r\n\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/1ed4ace9-20a7-42ab-9082-4536d6cd643a\r\n\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\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":"3d932e18e88a5b093c5be38da27139785d572061"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Angela Chuang <6295984+angorayc@users.noreply.github.com>
tiansivive pushed a commit to tiansivive/kibana that referenced this pull request Oct 7, 2024
)

## Summary
This is the Fleet relevant changes from
elastic#193131
1. Add an option to display installation status on package cards.
2. Add options to display spacer in grid, card height, line clamps for
card title and description.
3. On the integration details page, if `onboardingLink` and
`onboardingAppId` are appended as url params, they will be used as the
redirect link after clicking `cancel` or `save and continue` on the
installation form page.

Please run from this branch and visit Security Solution to test:
elastic#193131


https://github.com/user-attachments/assets/40fc155f-d07c-460f-ab70-372e3b43bfc0





https://github.com/user-attachments/assets/06bd0c5e-14b2-4074-b5a1-932a88a1cc6a




https://github.com/user-attachments/assets/1ed4ace9-20a7-42ab-9082-4536d6cd643a


### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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
angorayc added a commit that referenced this pull request Oct 8, 2024
Part of #193131

It shows the customised cards without applying the default sorting under
the `recommended` tab:

Added two optional props:
1. `calloutTopSpacerSize` - Props to decide the size of the spacer above
callout. Security Solution uses this prop to customize the size of the
spacer
2. `sortByFeaturedIntegrations` - Customizing whether to sort by the
default featured integrations' categories. Security Solution has `custom
sorting logic`

Featured cards:

1. AWS
3. GCP
4. Azure
5. Elastic Defend
6. CrowdStrike (to promote our extended protections/3rd party EDR
support)
7. Wiz (or another cloud integration to promote extended protections)
8. Network Packet Capture
9. Osquery Manager
10. ~**Cloud Asset Inventory (need to confirm that's confirmed for
8.16)** - Currently Not Found any integration matched~

<img width="1249" alt="Screenshot 2024-10-08 at 13 31 12"
src="https://github.com/user-attachments/assets/95fb03a4-5a7b-4e8f-8b03-ee45b0e18633">
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 8, 2024
…#195397)

Part of elastic#193131

It shows the customised cards without applying the default sorting under
the `recommended` tab:

Added two optional props:
1. `calloutTopSpacerSize` - Props to decide the size of the spacer above
callout. Security Solution uses this prop to customize the size of the
spacer
2. `sortByFeaturedIntegrations` - Customizing whether to sort by the
default featured integrations' categories. Security Solution has `custom
sorting logic`

Featured cards:

1. AWS
3. GCP
4. Azure
5. Elastic Defend
6. CrowdStrike (to promote our extended protections/3rd party EDR
support)
7. Wiz (or another cloud integration to promote extended protections)
8. Network Packet Capture
9. Osquery Manager
10. ~**Cloud Asset Inventory (need to confirm that's confirmed for
8.16)** - Currently Not Found any integration matched~

<img width="1249" alt="Screenshot 2024-10-08 at 13 31 12"
src="https://github.com/user-attachments/assets/95fb03a4-5a7b-4e8f-8b03-ee45b0e18633">

(cherry picked from commit d20c579)
@angorayc angorayc closed this Oct 10, 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 ci:cloud-deploy Create or update a Cloud deployment ci:cloud-persist-deployment Persist cloud deployment indefinitely v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants