Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agentless api fix delete path #195762

Merged
merged 6 commits into from
Oct 10, 2024
Merged

Conversation

amirbenun
Copy link
Contributor

@amirbenun amirbenun commented Oct 10, 2024

Summary

Agentless API delete path should have the ess or serverless mark based on the environment.
This PR build the request URL based on that.

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@amirbenun amirbenun added Team:Cloud Security Cloud Security team related v9.0.0 v8.16.0 backport:prev-major Backport to (8.x, 8.17, 8.16, 8.15) the previous major branch and other branches in development labels Oct 10, 2024
@amirbenun amirbenun marked this pull request as ready for review October 10, 2024 12:53
@amirbenun amirbenun requested a review from a team as a code owner October 10, 2024 12:53
@elasticmachine
Copy link
Contributor

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

@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Oct 10, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@amirbenun amirbenun enabled auto-merge (squash) October 10, 2024 14:06
@amirbenun amirbenun merged commit 872d9da into elastic:main Oct 10, 2024
22 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.15, 8.x

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

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 10, 2024
## Summary
Agentless API delete path should have the `ess` or `serverless` mark
based on the environment.
This PR build the request URL based on that.

(cherry picked from commit 872d9da)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

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

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 195762

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 11, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [Agentless api fix delete path
(#195762)](#195762)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Amir Ben
Nun","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-10T22:44:25Z","message":"Agentless
api fix delete path (#195762)\n\n## Summary\r\nAgentless API delete path
should have the `ess` or `serverless` mark\r\nbased on the
environment.\r\nThis PR build the request URL based on
that.","sha":"872d9da30e74f64dd33e25c6fed2d55e6aa4af47","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Fleet","v9.0.0","Team:Cloud
Security","backport:prev-major","v8.16.0"],"title":"Agentless api fix
delete
path","number":195762,"url":"https://github.com/elastic/kibana/pull/195762","mergeCommit":{"message":"Agentless
api fix delete path (#195762)\n\n## Summary\r\nAgentless API delete path
should have the `ess` or `serverless` mark\r\nbased on the
environment.\r\nThis PR build the request URL based on
that.","sha":"872d9da30e74f64dd33e25c6fed2d55e6aa4af47"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195762","number":195762,"mergeCommit":{"message":"Agentless
api fix delete path (#195762)\n\n## Summary\r\nAgentless API delete path
should have the `ess` or `serverless` mark\r\nbased on the
environment.\r\nThis PR build the request URL based on
that.","sha":"872d9da30e74f64dd33e25c6fed2d55e6aa4af47"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Amir Ben Nun <[email protected]>
@amirbenun amirbenun deleted the agentless-api-delete-path branch October 13, 2024 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-major Backport to (8.x, 8.17, 8.16, 8.15) the previous major branch and other branches in development release_note:fix Team:Cloud Security Cloud Security team related Team:Fleet Team label for Observability Data Collection Fleet team v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants