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

webhook – Case management | "Get case information" - ability to use a POST #178074

Closed
2Dman opened this issue Mar 6, 2024 · 7 comments · Fixed by #197437
Closed

webhook – Case management | "Get case information" - ability to use a POST #178074

2Dman opened this issue Mar 6, 2024 · 7 comments · Fixed by #197437
Assignees
Labels
Feature:Cases Cases feature Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)

Comments

@2Dman
Copy link

2Dman commented Mar 6, 2024

@cnasikas
Describe the feature:
webhook – Case management”, step 3 - ability to use a POST request (same as create case and comment and updates) instead of only a GET request.

Describe a specific use case for the feature:
We want to use Ansible, to retrieve the case information. Ansible only allows POST requests. it would look something like this:
URL: https://ansible.domain/api/v2/job_templates/100/
METHOD: post
BODY:
{
"whateverKey": {{{external.system.id}}}
}
HEADER: (same as configured in step1)
"authorisation": bearer xxxxx

@botelastic botelastic bot added the needs-team Issues missing a team label label Mar 6, 2024
@cnasikas cnasikas added Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) Feature:Cases Cases feature and removed needs-team Issues missing a team label labels Mar 6, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops-cases (Feature:Cases)

@cnasikas
Copy link
Member

cnasikas commented Mar 6, 2024

Thanks for the request @2Dman! Could you please point us to Ansible's documentation to take a look?

@2Dman
Copy link
Author

2Dman commented Mar 6, 2024

https://docs.ansible.com/ansible-tower/3.2.6/html/towerapi/launch_jobtemplate.html

@willem-dhaese
Copy link

willem-dhaese commented Oct 9, 2024

Any status update on this? This problem makes it impossible to use Ansible to set up integrations with for example Ivanti Heat.

@approksiu Could you please have a look at this? :) It would really help us and it doesn't seem like a bug change to allow POST's.

@cnasikas
Copy link
Member

cnasikas commented Oct 9, 2024

Hey @willem-dhaese! We prioritized it for 8.17.

@willem-dhaese
Copy link

Hey @willem-dhaese! We prioritized it for 8.17.

Fastest answer ever. Thanks!!

@js-jankisalvi js-jankisalvi self-assigned this Oct 21, 2024
js-jankisalvi added a commit that referenced this issue Nov 7, 2024
…mation in case management webhook (#197437)

## Summary

Resolves #178074

This PR allows to use POST method and JSON payload for body for get case
information in case management webhook.

<img width="1279" alt="Screenshot 2024-10-24 at 15 02 33"
src="https://github.com/user-attachments/assets/aaabc5b8-cd9e-46d6-aab8-85a27731bd88">

### How to test
- Create a case management webhook connector [as per
documentation](https://www.elastic.co/guide/en/kibana/master/cases-webhook-action-type.html)
- Use any public API which supports GET and POST methods 
- Use POST method for Get case information
- Verify that it validates the URL and JSON payload correctly 
- Test the connector using Test tab
- Create a rule with action using case management webhook connector
- Verify alerts are generated and action executed without any errors

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Nov 7, 2024
…mation in case management webhook (elastic#197437)

## Summary

Resolves elastic#178074

This PR allows to use POST method and JSON payload for body for get case
information in case management webhook.

<img width="1279" alt="Screenshot 2024-10-24 at 15 02 33"
src="https://github.com/user-attachments/assets/aaabc5b8-cd9e-46d6-aab8-85a27731bd88">

### How to test
- Create a case management webhook connector [as per
documentation](https://www.elastic.co/guide/en/kibana/master/cases-webhook-action-type.html)
- Use any public API which supports GET and POST methods
- Use POST method for Get case information
- Verify that it validates the URL and JSON payload correctly
- Test the connector using Test tab
- Create a rule with action using case management webhook connector
- Verify alerts are generated and action executed without any errors

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))

(cherry picked from commit d81d071)
mbondyra pushed a commit to mbondyra/kibana that referenced this issue Nov 8, 2024
…mation in case management webhook (elastic#197437)

## Summary

Resolves elastic#178074

This PR allows to use POST method and JSON payload for body for get case
information in case management webhook.

<img width="1279" alt="Screenshot 2024-10-24 at 15 02 33"
src="https://github.com/user-attachments/assets/aaabc5b8-cd9e-46d6-aab8-85a27731bd88">

### How to test
- Create a case management webhook connector [as per
documentation](https://www.elastic.co/guide/en/kibana/master/cases-webhook-action-type.html)
- Use any public API which supports GET and POST methods 
- Use POST method for Get case information
- Verify that it validates the URL and JSON payload correctly 
- Test the connector using Test tab
- Create a rule with action using case management webhook connector
- Verify alerts are generated and action executed without any errors

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Cases Cases feature Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)
Projects
None yet
5 participants