Commit 15d185b
# Backport
This will backport the following commits from `main` to `9.0`:
- [[Cloud Security] Add upgrade agentless deployment background task
(#207143)](#207143)
<!--- Backport version: 9.6.6 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT
[{"author":{"name":"Lola","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-02-27T01:56:23Z","message":"[Cloud
Security] Add upgrade agentless deployment background task
(#207143)\n\n## Summary\n\nSummarize your PR. If it involves visual
changes include a screenshot or\ngif.\nThis PR add background task to
upgrade Agentless Deployments after\nKibana Stack has been upgrade in
ESS. Once the Kibana stack upgrades, the task will do following:\n1.
Fetch agentless policies with package policies that have agents\n2.
Check if agentless agents version is upgradeable by use
`semverLT`\nwhich see if current agent version less than latest
available upgrade\nversion and current kibana version\n3. If agent
version is upgradedable, then task will calls Agentless\nUpgrade
Endpoint to upgrade agentless deployment.\n4. Agent should be upgraded
to latest available upgraded
version\n\n\n\n\n\n**How
to test PR:**\n\nPrerequisite:\nInstall
[QAF\nTool](https://docs.elastic.dev/appex-qa/qaf/getting-started)\nCreate
EC cloud api key [QAF
Elastic\nCloud](https://docs.elastic.dev/appex-qa/qaf/features/ec-deployments)\n\n1.
Go to Elastic Cloud and Create ESS Deployment in
`8.17.0-SNAPSHOT`\n```qaf elastic-cloud deployments create --environment
production --region gcp-us-west2 --stack-version 8.17.0-SNAPSHOT
--version-validation --deployment-name <DEPLOYMENT_NAME> ```\n2. Create
an Agentless Integration\n3. Upgrade stack to `8.18.0-SNAPSHOT` >
`8.19.0-SNAPSHOT`\n4. Run the following QAF command \n```qaf
elastic-cloud deployments upgrade <DEPLOYMENT_NAME>\n9.1.0-SNAPSHOT
--kb-docker-image\ndocker.elastic.co/kibana-ci/kibana-cloud:9.1.0-SNAPSHOT-5e00106755e7084d1325e784eb27f91db9724c89```\n\n---------\n\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f8e31e5fcbb28f485e309fbacf9a2aca9f8d3a2c","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","Team:Fleet","release_note:feature","Team:Cloud
Security","backport:prev-minor","ci:cloud-deploy","v9.1.0","v8.19.0","v8.18.1"],"title":"[Cloud
Security] Create upgrade agentless deployment background
task","number":207143,"url":"https://github.com/elastic/kibana/pull/207143","mergeCommit":{"message":"[Cloud
Security] Add upgrade agentless deployment background task
(#207143)\n\n## Summary\n\nSummarize your PR. If it involves visual
changes include a screenshot or\ngif.\nThis PR add background task to
upgrade Agentless Deployments after\nKibana Stack has been upgrade in
ESS. Once the Kibana stack upgrades, the task will do following:\n1.
Fetch agentless policies with package policies that have agents\n2.
Check if agentless agents version is upgradeable by use
`semverLT`\nwhich see if current agent version less than latest
available upgrade\nversion and current kibana version\n3. If agent
version is upgradedable, then task will calls Agentless\nUpgrade
Endpoint to upgrade agentless deployment.\n4. Agent should be upgraded
to latest available upgraded
version\n\n\n\n\n\n**How
to test PR:**\n\nPrerequisite:\nInstall
[QAF\nTool](https://docs.elastic.dev/appex-qa/qaf/getting-started)\nCreate
EC cloud api key [QAF
Elastic\nCloud](https://docs.elastic.dev/appex-qa/qaf/features/ec-deployments)\n\n1.
Go to Elastic Cloud and Create ESS Deployment in
`8.17.0-SNAPSHOT`\n```qaf elastic-cloud deployments create --environment
production --region gcp-us-west2 --stack-version 8.17.0-SNAPSHOT
--version-validation --deployment-name <DEPLOYMENT_NAME> ```\n2. Create
an Agentless Integration\n3. Upgrade stack to `8.18.0-SNAPSHOT` >
`8.19.0-SNAPSHOT`\n4. Run the following QAF command \n```qaf
elastic-cloud deployments upgrade <DEPLOYMENT_NAME>\n9.1.0-SNAPSHOT
--kb-docker-image\ndocker.elastic.co/kibana-ci/kibana-cloud:9.1.0-SNAPSHOT-5e00106755e7084d1325e784eb27f91db9724c89```\n\n---------\n\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f8e31e5fcbb28f485e309fbacf9a2aca9f8d3a2c"}},"sourceBranch":"main","suggestedTargetBranches":["8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/207143","number":207143,"mergeCommit":{"message":"[Cloud
Security] Add upgrade agentless deployment background task
(#207143)\n\n## Summary\n\nSummarize your PR. If it involves visual
changes include a screenshot or\ngif.\nThis PR add background task to
upgrade Agentless Deployments after\nKibana Stack has been upgrade in
ESS. Once the Kibana stack upgrades, the task will do following:\n1.
Fetch agentless policies with package policies that have agents\n2.
Check if agentless agents version is upgradeable by use
`semverLT`\nwhich see if current agent version less than latest
available upgrade\nversion and current kibana version\n3. If agent
version is upgradedable, then task will calls Agentless\nUpgrade
Endpoint to upgrade agentless deployment.\n4. Agent should be upgraded
to latest available upgraded
version\n\n\n\n\n\n**How
to test PR:**\n\nPrerequisite:\nInstall
[QAF\nTool](https://docs.elastic.dev/appex-qa/qaf/getting-started)\nCreate
EC cloud api key [QAF
Elastic\nCloud](https://docs.elastic.dev/appex-qa/qaf/features/ec-deployments)\n\n1.
Go to Elastic Cloud and Create ESS Deployment in
`8.17.0-SNAPSHOT`\n```qaf elastic-cloud deployments create --environment
production --region gcp-us-west2 --stack-version 8.17.0-SNAPSHOT
--version-validation --deployment-name <DEPLOYMENT_NAME> ```\n2. Create
an Agentless Integration\n3. Upgrade stack to `8.18.0-SNAPSHOT` >
`8.19.0-SNAPSHOT`\n4. Run the following QAF command \n```qaf
elastic-cloud deployments upgrade <DEPLOYMENT_NAME>\n9.1.0-SNAPSHOT
--kb-docker-image\ndocker.elastic.co/kibana-ci/kibana-cloud:9.1.0-SNAPSHOT-5e00106755e7084d1325e784eb27f91db9724c89```\n\n---------\n\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"f8e31e5fcbb28f485e309fbacf9a2aca9f8d3a2c"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/213134","number":213134,"state":"MERGED","mergeCommit":{"sha":"5b98df8f790c2f9212790c1973b54f19c0d18799","message":"[8.x]
[Cloud Security] Add upgrade agentless deployment background task
(#207143) (#213134)\n\n# Backport\n\nThis will backport the following
commits from `main` to `8.x`:\n- [[Cloud Security] Add upgrade agentless
deployment background
task\n(#207143)](https://github.com/elastic/kibana/pull/207143)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\n---------\n\nCo-authored-by:
kibanamachine
<[email protected]>"}},{"branch":"8.18","label":"v8.18.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
---------
Co-authored-by: Lola <[email protected]>
1 parent ad3d3e9 commit 15d185b
File tree
10 files changed
+999
-43
lines changed- x-pack
- test/plugin_api_integration/test_suites/task_manager
10 files changed
+999
-43
lines changedLines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
18 | 35 | | |
19 | 36 | | |
20 | 37 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
| 202 | + | |
201 | 203 | | |
202 | 204 | | |
203 | 205 | | |
| |||
301 | 303 | | |
302 | 304 | | |
303 | 305 | | |
| 306 | + | |
304 | 307 | | |
305 | 308 | | |
306 | 309 | | |
| |||
648 | 651 | | |
649 | 652 | | |
650 | 653 | | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
651 | 659 | | |
652 | 660 | | |
653 | 661 | | |
| |||
694 | 702 | | |
695 | 703 | | |
696 | 704 | | |
| 705 | + | |
697 | 706 | | |
698 | 707 | | |
699 | 708 | | |
| |||
704 | 713 | | |
705 | 714 | | |
706 | 715 | | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
707 | 721 | | |
708 | 722 | | |
709 | 723 | | |
| |||
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
515 | 556 | | |
516 | 557 | | |
517 | 558 | | |
| |||
0 commit comments