Skip to content

[Cases] - Connector api update#236863

Merged
michaelolo24 merged 6 commits intoelastic:mainfrom
michaelolo24:connector-config-refactor
Oct 14, 2025
Merged

[Cases] - Connector api update#236863
michaelolo24 merged 6 commits intoelastic:mainfrom
michaelolo24:connector-config-refactor

Conversation

@michaelolo24
Copy link
Contributor

@michaelolo24 michaelolo24 commented Sep 30, 2025

Summary

This PR isolates the configuration paramaeters for the tines connector to the server side

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

@michaelolo24 michaelolo24 added bug Fixes for quality problems that affect the customer experience Team:Cases Security Solution Cases team v9.2.0 labels Sep 30, 2025
@michaelolo24 michaelolo24 force-pushed the connector-config-refactor branch from c17c44c to 58ca064 Compare October 1, 2025 02:08
@michaelolo24 michaelolo24 added backport:all-open Backport to all branches that could still receive a release release_note:fix labels Oct 1, 2025
@kibanamachine
Copy link
Contributor

Cloud deployments require a Github label, please add ci:cloud-deploy or ci:cloud-redeploy and trigger the job through the checkbox again.

@michaelolo24 michaelolo24 force-pushed the connector-config-refactor branch from 771a762 to 4ca56f4 Compare October 8, 2025 02:46
@michaelolo24 michaelolo24 marked this pull request as ready for review October 8, 2025 02:46
@michaelolo24 michaelolo24 requested a review from a team as a code owner October 8, 2025 02:46
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-cases (Team:Cases)

@michaelolo24 michaelolo24 requested a review from semd October 8, 2025 02:47
@michaelolo24 michaelolo24 added v9.1.6 v8.18.9 v8.19.6 backport:version Backport to applied version labels and removed backport:all-open Backport to all branches that could still receive a release labels Oct 8, 2025
} else if (request.url?.match('/webhook')) {
body = tinesWebhookSuccessResponse;
} else if (request.url?.match('/actions/1')) {
body = tinesAgentWebhook;
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be body = tinesAgentsResponse;? I think the return type is TinesWebhookApiResponse.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. I should probably update the naming to be clearer, but your return type is right TinesWebhookApiResponse, but the one for tinesAgentsResponse is TinesWebhook[s]ApiResponse, the latter returns an array, where as the former returns only a single agent. 😅

@michaelolo24 michaelolo24 force-pushed the connector-config-refactor branch from b8f36b0 to 48e068a Compare October 11, 2025 01:08
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
stackConnectors 66.8KB 66.6KB -188.0B
Unknown metric groups

References to deprecated APIs

id before after diff
@kbn/test-suites-xpack-platform 72 73 +1

History

Copy link
Contributor

@semd semd left a comment

Choose a reason for hiding this comment

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

LGTM
This is great 💯 Thanks Mike!

I leave a small NIT

Comment on lines +54 to +56
(webhooks, { id, type, name, story_id: storyId }) => {
if (type === WEBHOOK_AGENT_TYPE) {
webhooks.push({ id, name, path, secret, storyId });
webhooks.push({ id, name, storyId });
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: We could just map here because now we pass the action_type: WEBHOOK_AGENT_TYPE param to the webhooks request (😍 love it), so we don't strictly need to filter by type anymore. It does not hurt either though if you want to keep it 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

true 👍🏾 . Will make a small follow up PR to remove the check, thanks!

@michaelolo24 michaelolo24 merged commit 55cb4b5 into elastic:main Oct 14, 2025
12 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.19, 9.1, 9.2

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 14, 2025
## Summary

This PR isolates the configuration paramaeters for the tines connector
to the server side

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 55cb4b5)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 14, 2025
## Summary

This PR isolates the configuration paramaeters for the tines connector
to the server side

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 55cb4b5)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 14, 2025
## Summary

This PR isolates the configuration paramaeters for the tines connector
to the server side

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 55cb4b5)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 14, 2025
## Summary

This PR isolates the configuration paramaeters for the tines connector
to the server side

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 55cb4b5)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.18
8.19
9.1
9.2

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 14, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [[Cases] - Connector api update
(#236863)](#236863)

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

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

<!--BACKPORT [{"author":{"name":"Michael
Olorunnisola","email":"michael.olorunnisola@elastic.co"},"sourceCommit":{"committedDate":"2025-10-14T14:15:35Z","message":"[Cases]
- Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the
configuration paramaeters for the tines connector\nto the server
side\n\n### Checklist\n\nCheck the PR satisfies following conditions.
\n\nReviewers should verify this PR satisfies this list as well.\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:version","Team:Cases","v9.2.0","v9.3.0","v9.1.6","v8.18.9","v8.19.6"],"title":"[Cases]
- Connector api
update","number":236863,"url":"https://github.com/elastic/kibana/pull/236863","mergeCommit":{"message":"[Cases]
- Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the
configuration paramaeters for the tines connector\nto the server
side\n\n### Checklist\n\nCheck the PR satisfies following conditions.
\n\nReviewers should verify this PR satisfies this list as well.\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1","8.18","8.19"],"targetPullRequestStates":[{"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/236863","number":236863,"mergeCommit":{"message":"[Cases]
- Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the
configuration paramaeters for the tines connector\nto the server
side\n\n### Checklist\n\nCheck the PR satisfies following conditions.
\n\nReviewers should verify this PR satisfies this list as well.\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.9","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: Michael Olorunnisola <michael.olorunnisola@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 14, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [[Cases] - Connector api update
(#236863)](#236863)

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

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

<!--BACKPORT [{"author":{"name":"Michael
Olorunnisola","email":"michael.olorunnisola@elastic.co"},"sourceCommit":{"committedDate":"2025-10-14T14:15:35Z","message":"[Cases]
- Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the
configuration paramaeters for the tines connector\nto the server
side\n\n### Checklist\n\nCheck the PR satisfies following conditions.
\n\nReviewers should verify this PR satisfies this list as well.\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:version","Team:Cases","v9.2.0","v9.3.0","v9.1.6","v8.18.9","v8.19.6"],"title":"[Cases]
- Connector api
update","number":236863,"url":"https://github.com/elastic/kibana/pull/236863","mergeCommit":{"message":"[Cases]
- Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the
configuration paramaeters for the tines connector\nto the server
side\n\n### Checklist\n\nCheck the PR satisfies following conditions.
\n\nReviewers should verify this PR satisfies this list as well.\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1","8.18","8.19"],"targetPullRequestStates":[{"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/236863","number":236863,"mergeCommit":{"message":"[Cases]
- Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the
configuration paramaeters for the tines connector\nto the server
side\n\n### Checklist\n\nCheck the PR satisfies following conditions.
\n\nReviewers should verify this PR satisfies this list as well.\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.9","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: Michael Olorunnisola <michael.olorunnisola@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 14, 2025
# Backport

This will backport the following commits from `main` to `8.18`:
- [[Cases] - Connector api update
(#236863)](#236863)

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

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

<!--BACKPORT [{"author":{"name":"Michael
Olorunnisola","email":"michael.olorunnisola@elastic.co"},"sourceCommit":{"committedDate":"2025-10-14T14:15:35Z","message":"[Cases]
- Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the
configuration paramaeters for the tines connector\nto the server
side\n\n### Checklist\n\nCheck the PR satisfies following conditions.
\n\nReviewers should verify this PR satisfies this list as well.\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:version","Team:Cases","v9.2.0","v9.3.0","v9.1.6","v8.18.9","v8.19.6"],"title":"[Cases]
- Connector api
update","number":236863,"url":"https://github.com/elastic/kibana/pull/236863","mergeCommit":{"message":"[Cases]
- Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the
configuration paramaeters for the tines connector\nto the server
side\n\n### Checklist\n\nCheck the PR satisfies following conditions.
\n\nReviewers should verify this PR satisfies this list as well.\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1","8.18","8.19"],"targetPullRequestStates":[{"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/236863","number":236863,"mergeCommit":{"message":"[Cases]
- Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the
configuration paramaeters for the tines connector\nto the server
side\n\n### Checklist\n\nCheck the PR satisfies following conditions.
\n\nReviewers should verify this PR satisfies this list as well.\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.9","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: Michael Olorunnisola <michael.olorunnisola@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 14, 2025
# Backport

This will backport the following commits from `main` to `9.2`:
- [[Cases] - Connector api update
(#236863)](#236863)

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

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

<!--BACKPORT [{"author":{"name":"Michael
Olorunnisola","email":"michael.olorunnisola@elastic.co"},"sourceCommit":{"committedDate":"2025-10-14T14:15:35Z","message":"[Cases]
- Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the
configuration paramaeters for the tines connector\nto the server
side\n\n### Checklist\n\nCheck the PR satisfies following conditions.
\n\nReviewers should verify this PR satisfies this list as well.\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","backport:version","Team:Cases","v9.2.0","v9.3.0","v9.1.6","v8.18.9","v8.19.6"],"title":"[Cases]
- Connector api
update","number":236863,"url":"https://github.com/elastic/kibana/pull/236863","mergeCommit":{"message":"[Cases]
- Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the
configuration paramaeters for the tines connector\nto the server
side\n\n### Checklist\n\nCheck the PR satisfies following conditions.
\n\nReviewers should verify this PR satisfies this list as well.\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1","8.18","8.19"],"targetPullRequestStates":[{"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/236863","number":236863,"mergeCommit":{"message":"[Cases]
- Connector api update (#236863)\n\n## Summary\n\nThis PR isolates the
configuration paramaeters for the tines connector\nto the server
side\n\n### Checklist\n\nCheck the PR satisfies following conditions.
\n\nReviewers should verify this PR satisfies this list as well.\n\n-
[x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"55cb4b5b53f3a5303d11a189f45909485544f6de"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.9","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: Michael Olorunnisola <michael.olorunnisola@elastic.co>
ersin-erdal pushed a commit to ersin-erdal/kibana that referenced this pull request Oct 15, 2025
## Summary

This PR isolates the configuration paramaeters for the tines connector
to the server side

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
mgadewoll pushed a commit to tkajtoch/kibana that referenced this pull request Oct 17, 2025
## Summary

This PR isolates the configuration paramaeters for the tines connector
to the server side

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
rylnd pushed a commit to rylnd/kibana that referenced this pull request Oct 17, 2025
## Summary

This PR isolates the configuration paramaeters for the tines connector
to the server side

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
nickpeihl pushed a commit to nickpeihl/kibana that referenced this pull request Oct 23, 2025
## Summary

This PR isolates the configuration paramaeters for the tines connector
to the server side

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Oct 27, 2025
## Summary

This PR isolates the configuration paramaeters for the tines connector
to the server side

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
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 bug Fixes for quality problems that affect the customer experience release_note:fix Team:Cases Security Solution Cases team v8.18.9 v8.19.6 v9.1.6 v9.2.0 v9.3.0

5 participants