Skip to content

[Cloud Security] Fix installing agent-based CSP integrations not displaying Add Agent flyout#212702

Merged
seanrathier merged 2 commits intoelastic:mainfrom
seanrathier:fix-agentless-agent-based-onsavenav
Feb 28, 2025
Merged

[Cloud Security] Fix installing agent-based CSP integrations not displaying Add Agent flyout#212702
seanrathier merged 2 commits intoelastic:mainfrom
seanrathier:fix-agentless-agent-based-onsavenav

Conversation

@seanrathier
Copy link
Copy Markdown
Contributor

@seanrathier seanrathier commented Feb 27, 2025

Summary

Fixes the onSaveNavigate route when creating an agentless-enabled integration. Since an integration can support both agentless and agent-based deployments, we need to dynamically determine the navigation destination after saving the integration.

  • If the deployment is agentless, the navigation should go to the integration details' policy list view.
  • If the deployment is agent-based, the navigation should go to the Fleet Agent Policy page, with the onboarding flyout visible.

We need a way to force the onSaveNavigate function not to use routeState.onSaveNavigateTo if the integration is agentless. Therefore, not setting the routeState.onSaveNavigateTo state seems like the most likely solution.

Screen.Recording.2025-02-27.at.5.08.03.PM.mov

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

@seanrathier seanrathier added backport:prev-minor Team:Fleet Team label for Observability Data Collection Fleet team Team:Cloud Security Cloud Security team related labels Feb 27, 2025
@seanrathier seanrathier added the release_note:skip Skip the PR/issue when compiling release notes label Feb 27, 2025
@seanrathier seanrathier self-assigned this Feb 27, 2025
@seanrathier seanrathier marked this pull request as ready for review February 27, 2025 22:34
@seanrathier seanrathier requested a review from a team as a code owner February 27, 2025 22:34
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

@elasticmachine
Copy link
Copy Markdown
Contributor

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

@seanrathier seanrathier changed the title [Cloud Security] Fix installing Agent-based CSP integrations not displaying Add Agent flyout [Cloud Security] Fix installing agent-based CSP integrations not displaying Add Agent flyout Feb 27, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Feb 28, 2025

💛 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
fleet 1.7MB 1.7MB +113.0B

History

cc @seanrathier

Copy link
Copy Markdown
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

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

LGTM

@seanrathier seanrathier merged commit 42e0941 into elastic:main Feb 28, 2025
9 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 9.0

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

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
9.0

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

Questions ?

Please refer to the Backport tool documentation

@seanrathier
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x
8.18

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

Questions ?

Please refer to the Backport tool documentation

seanrathier added a commit to seanrathier/kibana that referenced this pull request Feb 28, 2025
seanrathier added a commit to seanrathier/kibana that referenced this pull request Feb 28, 2025
kibanamachine added a commit that referenced this pull request Mar 1, 2025
…t displaying Add Agent flyout (#212702) (#212812)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Cloud Security] Fix installing agent-based CSP integrations not
displaying Add Agent flyout
(#212702)](#212702)

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

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

<!--BACKPORT
[{"author":{"name":"seanrathier","email":"sean.rathier@gmail.com"},"sourceCommit":{"committedDate":"2025-02-28T20:55:09Z","message":"[Cloud
Security] Fix installing agent-based CSP integrations not displaying Add
Agent flyout
(#212702)","sha":"42e094189cc70df68f03c6f3fb4dea887c6a2dfd","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","Team:Cloud
Security","backport:prev-minor","v9.1.0"],"title":"[Cloud Security] Fix
installing agent-based CSP integrations not displaying Add Agent
flyout","number":212702,"url":"https://github.com/elastic/kibana/pull/212702","mergeCommit":{"message":"[Cloud
Security] Fix installing agent-based CSP integrations not displaying Add
Agent flyout
(#212702)","sha":"42e094189cc70df68f03c6f3fb4dea887c6a2dfd"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212702","number":212702,"mergeCommit":{"message":"[Cloud
Security] Fix installing agent-based CSP integrations not displaying Add
Agent flyout
(#212702)","sha":"42e094189cc70df68f03c6f3fb4dea887c6a2dfd"}}]}]
BACKPORT-->

Co-authored-by: seanrathier <sean.rathier@gmail.com>
seanrathier added a commit that referenced this pull request Mar 3, 2025
…t displaying Add Agent flyout (#212702) (#212819)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cloud Security] Fix installing agent-based CSP integrations not
displaying Add Agent flyout
(#212702)](#212702)

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

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

<!--BACKPORT
[{"author":{"name":"seanrathier","email":"sean.rathier@gmail.com"},"sourceCommit":{"committedDate":"2025-02-28T20:55:09Z","message":"[Cloud
Security] Fix installing agent-based CSP integrations not displaying Add
Agent flyout
(#212702)","sha":"42e094189cc70df68f03c6f3fb4dea887c6a2dfd","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","Team:Cloud
Security","backport:prev-minor","v9.1.0"],"title":"[Cloud Security] Fix
installing agent-based CSP integrations not displaying Add Agent
flyout","number":212702,"url":"https://github.com/elastic/kibana/pull/212702","mergeCommit":{"message":"[Cloud
Security] Fix installing agent-based CSP integrations not displaying Add
Agent flyout
(#212702)","sha":"42e094189cc70df68f03c6f3fb4dea887c6a2dfd"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212702","number":212702,"mergeCommit":{"message":"[Cloud
Security] Fix installing agent-based CSP integrations not displaying Add
Agent flyout
(#212702)","sha":"42e094189cc70df68f03c6f3fb4dea887c6a2dfd"}},{"url":"https://github.com/elastic/kibana/pull/212812","number":212812,"branch":"9.0","state":"OPEN"}]}]
BACKPORT-->
seanrathier added a commit that referenced this pull request Mar 3, 2025
…ot displaying Add Agent flyout (#212702) (#212820)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Cloud Security] Fix installing agent-based CSP integrations not
displaying Add Agent flyout
(#212702)](#212702)

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

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

<!--BACKPORT
[{"author":{"name":"seanrathier","email":"sean.rathier@gmail.com"},"sourceCommit":{"committedDate":"2025-02-28T20:55:09Z","message":"[Cloud
Security] Fix installing agent-based CSP integrations not displaying Add
Agent flyout
(#212702)","sha":"42e094189cc70df68f03c6f3fb4dea887c6a2dfd","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","Team:Cloud
Security","backport:prev-minor","v9.1.0"],"title":"[Cloud Security] Fix
installing agent-based CSP integrations not displaying Add Agent
flyout","number":212702,"url":"https://github.com/elastic/kibana/pull/212702","mergeCommit":{"message":"[Cloud
Security] Fix installing agent-based CSP integrations not displaying Add
Agent flyout
(#212702)","sha":"42e094189cc70df68f03c6f3fb4dea887c6a2dfd"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212702","number":212702,"mergeCommit":{"message":"[Cloud
Security] Fix installing agent-based CSP integrations not displaying Add
Agent flyout
(#212702)","sha":"42e094189cc70df68f03c6f3fb4dea887c6a2dfd"}},{"url":"https://github.com/elastic/kibana/pull/212812","number":212812,"branch":"9.0","state":"OPEN"}]}]
BACKPORT-->
SoniaSanzV pushed a commit to SoniaSanzV/kibana that referenced this pull request Mar 4, 2025
…t displaying Add Agent flyout (elastic#212702) (elastic#212819)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cloud Security] Fix installing agent-based CSP integrations not
displaying Add Agent flyout
(elastic#212702)](elastic#212702)

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

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

<!--BACKPORT
[{"author":{"name":"seanrathier","email":"sean.rathier@gmail.com"},"sourceCommit":{"committedDate":"2025-02-28T20:55:09Z","message":"[Cloud
Security] Fix installing agent-based CSP integrations not displaying Add
Agent flyout
(elastic#212702)","sha":"42e094189cc70df68f03c6f3fb4dea887c6a2dfd","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","Team:Cloud
Security","backport:prev-minor","v9.1.0"],"title":"[Cloud Security] Fix
installing agent-based CSP integrations not displaying Add Agent
flyout","number":212702,"url":"https://github.com/elastic/kibana/pull/212702","mergeCommit":{"message":"[Cloud
Security] Fix installing agent-based CSP integrations not displaying Add
Agent flyout
(elastic#212702)","sha":"42e094189cc70df68f03c6f3fb4dea887c6a2dfd"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212702","number":212702,"mergeCommit":{"message":"[Cloud
Security] Fix installing agent-based CSP integrations not displaying Add
Agent flyout
(elastic#212702)","sha":"42e094189cc70df68f03c6f3fb4dea887c6a2dfd"}},{"url":"https://github.com/elastic/kibana/pull/212812","number":212812,"branch":"9.0","state":"OPEN"}]}]
BACKPORT-->
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related Team:Fleet Team label for Observability Data Collection Fleet 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.

[Cloud Security] Installing Agent-based CSP Integrations not displaying Add Agent flyout

4 participants