Skip to content

[Security Solution] Onboarding check inference endpoint#217150

Merged
semd merged 9 commits intoelastic:mainfrom
semd:siem_migrations/check_inference_endpoint
Apr 7, 2025
Merged

[Security Solution] Onboarding check inference endpoint#217150
semd merged 9 commits intoelastic:mainfrom
semd:siem_migrations/check_inference_endpoint

Conversation

@semd
Copy link
Contributor

@semd semd commented Apr 4, 2025

Summary

Adresses: https://github.com/elastic/security-team/issues/12332

This PR checks that the inference endpoint exists before showing the inference connector in the list of selectable connectors.

Also, it removes code duplication by centralizing the implementation in the /common/connectors directory of the onboarding cards

Screenshots

Before:
siem_migrations_connector_card_before
assistant_connector_card_before

After:

siem_migrations_connector_card_after
assistant_connector_card_after

@semd semd added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team:Threat Hunting Security Solution Threat Hunting Team Team:Threat Hunting:Explore backport:version Backport to applied version labels v8.18.0 v9.1.0 v8.19.0 labels Apr 4, 2025
@semd semd self-assigned this Apr 4, 2025
@semd semd requested a review from a team as a code owner April 4, 2025 09:52
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting-explore (Team:Threat Hunting:Explore)

@elastic-vault-github-plugin-prod elastic-vault-github-plugin-prod bot requested a review from a team as a code owner April 4, 2025 10:04
Copy link
Contributor

@agusruidiazgd agusruidiazgd left a comment

Choose a reason for hiding this comment

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

LGTM 👏 thanks for this changes Sergi!

Copy link
Contributor

@logeekal logeekal left a comment

Choose a reason for hiding this comment

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

Code Looks good. Thanks. Left couple of comments but nothing to block the PR.

Doing desk testing right now and then will post another review soon.

@semd semd enabled auto-merge (squash) April 7, 2025 11:28
@semd semd merged commit 7b934f9 into elastic:main Apr 7, 2025
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.x, 9.0

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

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 7184 7185 +1

Async chunks

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

id before after diff
securitySolution 8.9MB 8.9MB -98.0B

Page load bundle

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

id before after diff
securitySolution 88.7KB 88.5KB -142.0B

History

cc @semd

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.18 Backport failed because of merge conflicts
8.x Backport failed because of merge conflicts

You might need to backport the following PRs to 8.x:
- [Siem Migrations] Adds separate migration index to store migration metadata (#216164)
- [Security Solution] Use static declaration for navigation hierarchy (#215969)
9.0 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 217150

Questions ?

Please refer to the Backport tool documentation

semd added a commit to semd/kibana that referenced this pull request Apr 7, 2025
## Summary

This PR checks that the inference endpoint exists before showing the
inference connector in the list of selectable connectors.

Also, it removes code duplication by centralizing the implementation in
the /common/connectors directory of the onboarding cards

![siem_migrations_connector_card](https://github.com/user-attachments/assets/95cb0a3b-e55b-4626-be80-08520bd58ea4)

![assistant_connector_card](https://github.com/user-attachments/assets/99ddd69d-18c7-41be-bec0-45524d718d08)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 7b934f9)

# Conflicts:
#	x-pack/solutions/security/plugins/security_solution/tsconfig.json
semd added a commit to semd/kibana that referenced this pull request Apr 7, 2025
## Summary

This PR checks that the inference endpoint exists before showing the
inference connector in the list of selectable connectors.

Also, it removes code duplication by centralizing the implementation in
the /common/connectors directory of the onboarding cards

![siem_migrations_connector_card](https://github.com/user-attachments/assets/95cb0a3b-e55b-4626-be80-08520bd58ea4)

![assistant_connector_card](https://github.com/user-attachments/assets/99ddd69d-18c7-41be-bec0-45524d718d08)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 7b934f9)

# Conflicts:
#	x-pack/solutions/security/plugins/security_solution/tsconfig.json
@semd
Copy link
Contributor Author

semd commented Apr 7, 2025

💚 All backports created successfully

Status Branch Result
9.0
8.x
8.18

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

Questions ?

Please refer to the Backport tool documentation

semd added a commit to semd/kibana that referenced this pull request Apr 7, 2025
## Summary

This PR checks that the inference endpoint exists before showing the
inference connector in the list of selectable connectors.

Also, it removes code duplication by centralizing the implementation in
the /common/connectors directory of the onboarding cards

![siem_migrations_connector_card](https://github.com/user-attachments/assets/95cb0a3b-e55b-4626-be80-08520bd58ea4)

![assistant_connector_card](https://github.com/user-attachments/assets/99ddd69d-18c7-41be-bec0-45524d718d08)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 7b934f9)

# Conflicts:
#	x-pack/solutions/security/plugins/security_solution/tsconfig.json
semd added a commit that referenced this pull request Apr 7, 2025
… (#217330)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Security Solution] Onboarding check inference endpoint
(#217150)](#217150)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Sergi
Massaneda","email":"sergi.massaneda@elastic.co"},"sourceCommit":{"committedDate":"2025-04-07T13:43:39Z","message":"[Security
Solution] Onboarding check inference endpoint (#217150)\n\n##
Summary\n\nThis PR checks that the inference endpoint exists before
showing the\ninference connector in the list of selectable
connectors.\n\nAlso, it removes code duplication by centralizing the
implementation in\nthe /common/connectors directory of the onboarding
cards\n\n\n![siem_migrations_connector_card](https://github.com/user-attachments/assets/95cb0a3b-e55b-4626-be80-08520bd58ea4)\n\n![assistant_connector_card](https://github.com/user-attachments/assets/99ddd69d-18c7-41be-bec0-45524d718d08)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"7b934f903499d1affd1986fedb0529f51d5c818c","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat
Hunting","Team:Threat
Hunting:Explore","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Security
Solution] Onboarding check inference
endpoint","number":217150,"url":"https://github.com/elastic/kibana/pull/217150","mergeCommit":{"message":"[Security
Solution] Onboarding check inference endpoint (#217150)\n\n##
Summary\n\nThis PR checks that the inference endpoint exists before
showing the\ninference connector in the list of selectable
connectors.\n\nAlso, it removes code duplication by centralizing the
implementation in\nthe /common/connectors directory of the onboarding
cards\n\n\n![siem_migrations_connector_card](https://github.com/user-attachments/assets/95cb0a3b-e55b-4626-be80-08520bd58ea4)\n\n![assistant_connector_card](https://github.com/user-attachments/assets/99ddd69d-18c7-41be-bec0-45524d718d08)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"7b934f903499d1affd1986fedb0529f51d5c818c"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/217150","number":217150,"mergeCommit":{"message":"[Security
Solution] Onboarding check inference endpoint (#217150)\n\n##
Summary\n\nThis PR checks that the inference endpoint exists before
showing the\ninference connector in the list of selectable
connectors.\n\nAlso, it removes code duplication by centralizing the
implementation in\nthe /common/connectors directory of the onboarding
cards\n\n\n![siem_migrations_connector_card](https://github.com/user-attachments/assets/95cb0a3b-e55b-4626-be80-08520bd58ea4)\n\n![assistant_connector_card](https://github.com/user-attachments/assets/99ddd69d-18c7-41be-bec0-45524d718d08)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"7b934f903499d1affd1986fedb0529f51d5c818c"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
semd added a commit that referenced this pull request Apr 7, 2025
…) (#217335)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Security Solution] Onboarding check inference endpoint
(#217150)](#217150)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Sergi
Massaneda","email":"sergi.massaneda@elastic.co"},"sourceCommit":{"committedDate":"2025-04-07T13:43:39Z","message":"[Security
Solution] Onboarding check inference endpoint (#217150)\n\n##
Summary\n\nThis PR checks that the inference endpoint exists before
showing the\ninference connector in the list of selectable
connectors.\n\nAlso, it removes code duplication by centralizing the
implementation in\nthe /common/connectors directory of the onboarding
cards\n\n\n![siem_migrations_connector_card](https://github.com/user-attachments/assets/95cb0a3b-e55b-4626-be80-08520bd58ea4)\n\n![assistant_connector_card](https://github.com/user-attachments/assets/99ddd69d-18c7-41be-bec0-45524d718d08)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"7b934f903499d1affd1986fedb0529f51d5c818c","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat
Hunting","Team:Threat
Hunting:Explore","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Security
Solution] Onboarding check inference
endpoint","number":217150,"url":"https://github.com/elastic/kibana/pull/217150","mergeCommit":{"message":"[Security
Solution] Onboarding check inference endpoint (#217150)\n\n##
Summary\n\nThis PR checks that the inference endpoint exists before
showing the\ninference connector in the list of selectable
connectors.\n\nAlso, it removes code duplication by centralizing the
implementation in\nthe /common/connectors directory of the onboarding
cards\n\n\n![siem_migrations_connector_card](https://github.com/user-attachments/assets/95cb0a3b-e55b-4626-be80-08520bd58ea4)\n\n![assistant_connector_card](https://github.com/user-attachments/assets/99ddd69d-18c7-41be-bec0-45524d718d08)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"7b934f903499d1affd1986fedb0529f51d5c818c"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/217150","number":217150,"mergeCommit":{"message":"[Security
Solution] Onboarding check inference endpoint (#217150)\n\n##
Summary\n\nThis PR checks that the inference endpoint exists before
showing the\ninference connector in the list of selectable
connectors.\n\nAlso, it removes code duplication by centralizing the
implementation in\nthe /common/connectors directory of the onboarding
cards\n\n\n![siem_migrations_connector_card](https://github.com/user-attachments/assets/95cb0a3b-e55b-4626-be80-08520bd58ea4)\n\n![assistant_connector_card](https://github.com/user-attachments/assets/99ddd69d-18c7-41be-bec0-45524d718d08)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"7b934f903499d1affd1986fedb0529f51d5c818c"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
semd added a commit that referenced this pull request Apr 7, 2025
… (#217333)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] Onboarding check inference endpoint
(#217150)](#217150)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Sergi
Massaneda","email":"sergi.massaneda@elastic.co"},"sourceCommit":{"committedDate":"2025-04-07T13:43:39Z","message":"[Security
Solution] Onboarding check inference endpoint (#217150)\n\n##
Summary\n\nThis PR checks that the inference endpoint exists before
showing the\ninference connector in the list of selectable
connectors.\n\nAlso, it removes code duplication by centralizing the
implementation in\nthe /common/connectors directory of the onboarding
cards\n\n\n![siem_migrations_connector_card](https://github.com/user-attachments/assets/95cb0a3b-e55b-4626-be80-08520bd58ea4)\n\n![assistant_connector_card](https://github.com/user-attachments/assets/99ddd69d-18c7-41be-bec0-45524d718d08)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"7b934f903499d1affd1986fedb0529f51d5c818c","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Threat
Hunting","Team:Threat
Hunting:Explore","backport:version","v8.18.0","v9.1.0","v8.19.0"],"title":"[Security
Solution] Onboarding check inference
endpoint","number":217150,"url":"https://github.com/elastic/kibana/pull/217150","mergeCommit":{"message":"[Security
Solution] Onboarding check inference endpoint (#217150)\n\n##
Summary\n\nThis PR checks that the inference endpoint exists before
showing the\ninference connector in the list of selectable
connectors.\n\nAlso, it removes code duplication by centralizing the
implementation in\nthe /common/connectors directory of the onboarding
cards\n\n\n![siem_migrations_connector_card](https://github.com/user-attachments/assets/95cb0a3b-e55b-4626-be80-08520bd58ea4)\n\n![assistant_connector_card](https://github.com/user-attachments/assets/99ddd69d-18c7-41be-bec0-45524d718d08)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"7b934f903499d1affd1986fedb0529f51d5c818c"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/217150","number":217150,"mergeCommit":{"message":"[Security
Solution] Onboarding check inference endpoint (#217150)\n\n##
Summary\n\nThis PR checks that the inference endpoint exists before
showing the\ninference connector in the list of selectable
connectors.\n\nAlso, it removes code duplication by centralizing the
implementation in\nthe /common/connectors directory of the onboarding
cards\n\n\n![siem_migrations_connector_card](https://github.com/user-attachments/assets/95cb0a3b-e55b-4626-be80-08520bd58ea4)\n\n![assistant_connector_card](https://github.com/user-attachments/assets/99ddd69d-18c7-41be-bec0-45524d718d08)\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"7b934f903499d1affd1986fedb0529f51d5c818c"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
baileycash-elastic pushed a commit to baileycash-elastic/kibana that referenced this pull request Apr 7, 2025
## Summary

This PR checks that the inference endpoint exists before showing the
inference connector in the list of selectable connectors.

Also, it removes code duplication by centralizing the implementation in
the /common/connectors directory of the onboarding cards


![siem_migrations_connector_card](https://github.com/user-attachments/assets/95cb0a3b-e55b-4626-be80-08520bd58ea4)

![assistant_connector_card](https://github.com/user-attachments/assets/99ddd69d-18c7-41be-bec0-45524d718d08)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Threat Hunting Security Solution Threat Hunting Team v8.18.0 v8.19.0 v9.0.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants