Skip to content

Conversation

@seanrathier
Copy link
Contributor

@seanrathier seanrathier commented May 21, 2025

Summary

Enabling the daily Kibana task to run once a day every day to check if the Agentless API supports a new agentless agent version for the Kibana instance.

Testing instructions

  1. Create a new instance ECH deployment using version 9.1 or 8.19
  2. Create a new CSPM or Asset Discovery agentless agent integration.
  3. Wait until the next day. ;)
  4. Validate that the task is running once a day using the following ESQL query
ece.deployment.keyword : "<YOUR-DEPLOYMENT-ID>" and message: "[Agentless API] Upgrade agentless deployment with request config*"

Related Issues

@seanrathier seanrathier self-assigned this May 21, 2025
@seanrathier seanrathier added release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team Team:Cloud Security Cloud Security team related v8.19.0 backport:skip This PR does not require backporting v9.1.0 and removed backport:skip This PR does not require backporting labels May 21, 2025
@seanrathier seanrathier marked this pull request as ready for review May 22, 2025 13:19
@seanrathier seanrathier requested review from a team as code owners May 22, 2025 13:19
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@elasticmachine
Copy link
Contributor

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

@seanrathier seanrathier added backport:skip This PR does not require backporting backport:version Backport to applied version labels and removed backport:skip This PR does not require backporting labels May 22, 2025
@seanrathier seanrathier force-pushed the enable-auto-agentless-upgrade branch from 13f2b83 to 825ffd6 Compare May 22, 2025 14:41
Copy link
Member

@nchaulet nchaulet left a comment

Choose a reason for hiding this comment

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

Fleet changes LGTM 🚀 the other tests changes seems not related no?

@seanrathier seanrathier force-pushed the enable-auto-agentless-upgrade branch 2 times, most recently from b47f91f to 08b1d21 Compare June 2, 2025 16:27
@seanrathier seanrathier force-pushed the enable-auto-agentless-upgrade branch from 0533922 to c1d143b Compare June 6, 2025 13:28
@seanrathier seanrathier enabled auto-merge (squash) June 6, 2025 13:29
@elasticmachine
Copy link
Contributor

elasticmachine commented Jun 6, 2025

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Fleet Cypress Tests #2 / View agents list Agent status filter should filter on healthy and unhealthy
  • [job] [logs] Fleet Cypress Tests #2 / View agents list Bulk actions should allow to bulk upgrade agents and cancel that upgrade

Metrics [docs]

✅ unchanged

History

cc @seanrathier

@seanrathier seanrathier merged commit 0eb5007 into elastic:main Jun 6, 2025
10 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19

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

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.19 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 221202

Questions ?

Please refer to the Backport tool documentation

@seanrathier
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.19

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 Jun 6, 2025
…stic#221202)

(cherry picked from commit 0eb5007)

# Conflicts:
#	x-pack/platform/plugins/shared/fleet/common/experimental_features.ts
seanrathier added a commit that referenced this pull request Jun 6, 2025
…sk (#221202) (#223029)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Cloud Security] Enable agentless auto upgrade Kibana daily task
(#221202)](#221202)

<!--- Backport version: 10.0.0 -->

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

<!--BACKPORT
[{"author":{"name":"seanrathier","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-06-06T16:17:05Z","message":"[Cloud
Security] Enable agentless auto upgrade Kibana daily task
(#221202)","sha":"0eb5007155859955d68fdb5182cb331add9e75f2","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","Team:Cloud
Security","ci:build-cloud-image","backport:version","v9.1.0","v8.19.0"],"title":"[Cloud
Security] Enable agentless auto upgrade Kibana daily
task","number":221202,"url":"https://github.com/elastic/kibana/pull/221202","mergeCommit":{"message":"[Cloud
Security] Enable agentless auto upgrade Kibana daily task
(#221202)","sha":"0eb5007155859955d68fdb5182cb331add9e75f2"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/221202","number":221202,"mergeCommit":{"message":"[Cloud
Security] Enable agentless auto upgrade Kibana daily task
(#221202)","sha":"0eb5007155859955d68fdb5182cb331add9e75f2"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
@seanrathier
Copy link
Contributor Author

Tested by deploying an 8.18 env and upgrading to 9.1 SNAPSHOT

ece.deployment.keyword : ba83751d3b544f0f91fe0720d34ca5a1 and message: "[Agentless API] Upgrade agentless deployment with request config*"

Screenshot 2025-06-09 at 10 04 12 AM

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 ci:build-cloud-image 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.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants