[UII] Use explicit fleet server & output IDs for agentless on ECH and Serverless#225188
[UII] Use explicit fleet server & output IDs for agentless on ECH and Serverless#225188jen-huang merged 20 commits intoelastic:mainfrom
Conversation
…rverless, use them in handling of agentless policies
|
Pinging @elastic/fleet (Team:Fleet) |
|
I am not sure this will totally work as we delete/ non used preconfigured output/fleet server hosts during Fleet setup, we continuously will try to delete those, or mark them as non preconfigured if they are used by a policy You can see in log I think one way to prevent that will be to add the newly created fleet server host to the preconfigured list here and same for output here |
MichelLosier
left a comment
There was a problem hiding this comment.
Looking good so far, good catch @nchaulet on the clean up part
|
Starting backport for target branches: 8.19, 9.0, 9.1, 9.2 https://github.com/elastic/kibana/actions/runs/18537454866 |
|
Starting backport for target branches: 8.19, 9.0, 9.1, 9.2 https://github.com/elastic/kibana/actions/runs/18537455061 |
… Serverless (elastic#225188) (cherry picked from commit 237a489)
… Serverless (elastic#225188) (cherry picked from commit 237a489)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
… Serverless (elastic#225188) (cherry picked from commit 237a489)
… Serverless (elastic#225188) (cherry picked from commit 237a489)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
…CH and Serverless (#225188) (#239212) # Backport This will backport the following commits from `main` to `9.2`: - [[UII] Use explicit fleet server & output IDs for agentless on ECH and Serverless (#225188)](#225188) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Jen Huang","email":"its.jenetic@gmail.com"},"sourceCommit":{"committedDate":"2025-10-15T02:59:59Z","message":"[UII] Use explicit fleet server & output IDs for agentless on ECH and Serverless (#225188)","sha":"237a489648c48ab43701b77a0af380f5a7360cee","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","ci:cloud-deploy","ci:project-deploy-security","backport:version","v9.2.0","v9.3.0","v9.1.6","v8.19.6"],"title":"[UII] Use explicit fleet server & output IDs for agentless on ECH and Serverless","number":225188,"url":"https://github.com/elastic/kibana/pull/225188","mergeCommit":{"message":"[UII] Use explicit fleet server & output IDs for agentless on ECH and Serverless (#225188)","sha":"237a489648c48ab43701b77a0af380f5a7360cee"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","9.2","9.1","8.19"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225188","number":225188,"mergeCommit":{"message":"[UII] Use explicit fleet server & output IDs for agentless on ECH and Serverless (#225188)","sha":"237a489648c48ab43701b77a0af380f5a7360cee"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Jen Huang <its.jenetic@gmail.com>
…CH and Serverless (#225188) (#239231) # Backport This will backport the following commits from `main` to `9.1`: - [[UII] Use explicit fleet server & output IDs for agentless on ECH and Serverless (#225188)](#225188) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Jen Huang","email":"its.jenetic@gmail.com"},"sourceCommit":{"committedDate":"2025-10-15T02:59:59Z","message":"[UII] Use explicit fleet server & output IDs for agentless on ECH and Serverless (#225188)","sha":"237a489648c48ab43701b77a0af380f5a7360cee","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","ci:cloud-deploy","ci:project-deploy-security","backport:version","v9.2.0","v9.3.0","v9.1.6","v8.19.6"],"title":"[UII] Use explicit fleet server & output IDs for agentless on ECH and Serverless","number":225188,"url":"https://github.com/elastic/kibana/pull/225188","mergeCommit":{"message":"[UII] Use explicit fleet server & output IDs for agentless on ECH and Serverless (#225188)","sha":"237a489648c48ab43701b77a0af380f5a7360cee"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","9.2","9.1","8.19"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225188","number":225188,"mergeCommit":{"message":"[UII] Use explicit fleet server & output IDs for agentless on ECH and Serverless (#225188)","sha":"237a489648c48ab43701b77a0af380f5a7360cee"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
Summary
Resolves https://github.com/elastic/ingest-dev/issues/5924.
This PR adjusts the fixed IDs for Fleet Server host and ES output used by agentless policies on ECH. This is done by programmatically creating new uneditable host objects during Fleet setup.
On serverless, the logic remains the same: serverless agent policies use preconfigured hosts IDs defined by project controller.
PR also:
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:*label is applied per the guidelines