Commit graph

153 commits

Author SHA1 Message Date
Yuliia Naumenko
c15674f6d1
[Connectors] Allow pre-configured connectors to opt-in to exposing their config by setting exposeConfig (#207654)
Resolves #206433

Added optional `exposeConfig` field to the `preconfiguredActionSchema`
to allow return the configuration for the pre-configured connectors,
which set this value as `true`.
This change is completely backward compatible, because this field is
optional and all the connectors, which don't have the value will remain
to work the same way as before the change (won't return the config).

Changed get and getAll methods of the ActionsClient to reflect opt-in
config based on the set `exposeConfig` value.
2025-01-22 18:51:16 +00:00
Lisa Cawley
9d4f54a7ce
[DOCS] Granular connector RBAC (#207136) 2025-01-20 12:51:21 -08:00
Lisa Cawley
0d7f29c838
[DOCS] Clarify ServiceNow connector RSA key examples (#206517) 2025-01-14 07:43:00 -08:00
Janeen Mikell Roberts
c2e90222cc
Removes tech preview label from cases connectors doc (#206351)
The [cases and connection action
feature](https://www.elastic.co/guide/en/kibana/8.17/cases-action-type.html)
was GA'd in `8.17`. This PR removes the tech preview label (once
backported to `8.17`).
2025-01-14 09:38:50 -05:00
Lisa Cawley
517063d0a4
[DOCS] Remove inference connector docs (#198633) 2024-11-12 11:56:37 -06:00
florent-leborgne
8e7fb7a77e
[Docs] Update nav instructions and sample data installation to accommodate for the solution views (#199163)
This PR:
- updates navigation instructions to accommodate for the navigation
changes related to solution views.
- updates instructions for adding sample data to rely on the
integrations page instead of the home page, that only exists with the
classic solution view
- updates references to the home page to avoid confusing users using one
of the new solution views

Closes: https://github.com/elastic/platform-docs-team/issues/529
Closes: https://github.com/elastic/platform-docs-team/issues/540
2024-11-08 11:10:32 +01:00
Julian Gernun
953d877df0
[Response Ops][Connectors] Refactor Jira Connector to use latest API only (#197787)
## Summary

Jira Cloud and Datacenter work using the same API urls. In this PR we
remove the calls to the capabilities API which was being used to know
the API url we needed to hit

To test it:
- Create Jira Cloud and Datacenter connectors
- Test all use cases related to them

Related to https://github.com/elastic/kibana/issues/189017

## Research Work

**getCapabilities, createIncident and getIncident** are always the same,
therefore ignored for the rest of this document

- getCapabilities: `/rest/capabilities`
- createIncident: `/rest/api/2/issue`
- getIncident: `/rest/api/2/issue`

## API links

- Cloud:
https://developer.atlassian.com/cloud/jira/platform/rest/v2/intro/#version
- DC: https://docs.atlassian.com/software/jira/docs/api/REST/9.17.0/

### Expected API urls based on the API links

- Get issue types

- Cloud: `GET /rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes`
  - DC:`GET /rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes`

- Get fields by issue type
- Cloud: `GET
/rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes/{issueTypeId}`
- DC:
`GET /rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes/{issueTypeId}`

### API we hit

- Get issue types

- Cloud `GET
/rest/api/2/issue/createmeta?projectKeys=ROC&expand=projects.issuetypes.fields`
(variable name we are using is `getIssueTypesOldAPIURL`)
- DC `GET /rest/api/2/issue/createmeta/RES/issuetypes` (variable name is
`getIssueTypesUrl`)

- Get fields by issue type
- Cloud `GET
/rest/api/2/issue/createmeta?projectKeys=ROC&issuetypeIds={issueTypeId}&expand=projects.issuetypes.fields`
(variable name is `getIssueTypeFieldsOldAPIURL`)
- DC `GET /rest/api/2/issue/createmeta/RES/issuetypes/{issueTypeId}`
(variable name is `getIssueTypeFieldsUrl`)

#### Analysed use cases to retrieve API urls we hit

- created a case with JIRA Cloud as Connector
- did a connector test with JIRA Cloud as connector
- created a case with JIRA DC as connector
- did a connector test with JIRA DC as connector

### Conclusions

- We are not using the right endpoints for Cloud, we should update them
to use the same endpoints.

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
Co-authored-by: adcoelho <antonio.coelho@elastic.co>
Co-authored-by: Antonio <antoniodcoelho@gmail.com>
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2024-11-07 11:47:29 +01:00
István Zoltán Szabó
dc8322a46f
[DOCS] Fine-tunes inference connector and action docs (#198345) 2024-10-30 17:12:53 +01:00
Yuliia Naumenko
288d41d61e
[Connectors][GenAI] Inference Service Kibana connector (#189027)
## Summary
Resolves https://github.com/elastic/kibana/issues/188043

This PR adds new connector which is define integration with Elastic
Inference Endpoint via [Inference
APIs](https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html)
The lifecycle of the Inference Endpoint are managed by the connector
registered handlers:

- `preSaveHook` -
[create](https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference-api.html)
new Inference Endpoint in the connector create mode (`isEdit === false`)
and
[delete](https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference-api.html)+[create](https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference-api.html)
in the connector edit mode (`isEdit === true`)
- `postSaveHook` - check if the connector SO was created/updated and if
not removes Inference Endpoint from preSaveHook
- `postDeleteHook` -
[delete](https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference-api.html)
Inference Endpoint if connector was deleted.

In the Kibana Stack Management Connectors, its represented with the new
card (Technical preview badge):

<img width="1261" alt="Screenshot 2024-09-27 at 2 11 12 PM"
src="https://github.com/user-attachments/assets/dcbcce1f-06e7-4d08-8b77-0ba4105354f8">

To simplify the future integration with AI Assistants, the Connector
consists from the two main UI parts: provider selector and required
provider settings, which will be always displayed
<img width="862" alt="Screenshot 2024-10-07 at 7 59 09 AM"
src="https://github.com/user-attachments/assets/87bae493-c642-479e-b28f-6150354608dd">

and Additional options, which contains optional provider settings and
Task Type configuration:

<img width="861" alt="Screenshot 2024-10-07 at 8 00 15 AM"
src="https://github.com/user-attachments/assets/2341c034-6198-4731-8ce7-e22e6c6fb20f">


subActions corresponds to the different taskTypes Inference API
supports. Each of the task type has its own Inference Perform params.
Currently added:

- completion & completionStream
- rerank
- text_embedding
- sparse_embedding

Follow up work:

1. Collapse/expand Additional options, when the connector flyout/modal
has AI Assistant as a context (path through the extending context
implementation on the connector framework level)
2. Add support for additional params for Completion subAction to be able
to path functions
3. Add support for tokens usage Dashboard, when inference API will
include the used tokens count in the response
4. Add functionality and UX for migration from existing specific AI
connectors to the Inference connector with proper provider and
completion task
5. Integrate Connector with the AI Assistants

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: István Zoltán Szabó <istvan.szabo@elastic.co>
Co-authored-by: Liam Thompson <32779855+leemthompo@users.noreply.github.com>
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
2024-10-13 15:39:09 -05:00
Steph Milovic
2873cbca20
[Gemini Connector] Bump Default model to gemini-1.5-pro-002 (#195320) 2024-10-08 08:52:51 -06:00
Lisa Cawley
3b70d99915
[DOCS] Additional fields in ServiceNow ITSM and SecOps connectors (#195122) 2024-10-07 09:17:10 -07:00
Lisa Cawley
5ed0426ef6
[DOCS] Add TheHive connector to case settings (#193802) 2024-10-01 00:33:31 +00:00
Lisa Cawley
0ce33f842d
[DOCS][API] Adds Crowdstrike connector config and secrets; edits UI text (#192526) 2024-09-11 15:02:26 -07:00
Lisa Cawley
211eb6b5bd
[DOCS] Automates TheHive connector screenshots; edits UI text (#192506)
Co-authored-by: Antonio <antoniodcoelho@gmail.com>
2024-09-11 11:42:26 -07:00
Brijesh Khunt
32d7316e4b
TheHive Connector for Cases (#180931)
## Summary

This PR implements the case support for TheHive connector.
Depends on : https://github.com/elastic/kibana/pull/180138

## Screenshots

**List of connectors**

![image](7236eaed-d1d5-4506-80b1-c4e43c6ce36a)

**Configure thehive connector from cases**

![image](bb4843d5-9f29-47c2-baa3-77db81a35319)


### 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)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [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] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2024-09-10 04:37:14 -05:00
Lisa Cawley
19dd65c244
[ResponseOps][DOCS] SSL for Cases Webhook connector (#191690) 2024-09-03 11:52:48 -05:00
Lisa Cawley
6a25a50dc3
[DOCS] Refresh Webhook - Case Management connector screenshots for GA (#189589) 2024-08-29 08:36:24 -07:00
Lisa Cawley
bb7466e443
[DOCS] Microsoft Teams connector known issue (#191143) 2024-08-23 10:15:05 -07:00
Lisa Cawley
385281b2a6
[DOCS] Improve connector privateKey and certificateAuthoritiesData setting examples (#190932) 2024-08-21 12:24:14 -07:00
Lisa Cawley
cd1d64569a
[DOCS] Remove machine learning, alerting, cases, and connector API pages (#190747) 2024-08-20 14:43:59 +00:00
Lisa Cawley
bb6077a209
[DOCS] Update Microsoft Teams connector (#190568) 2024-08-20 07:19:25 -07:00
Brijesh Khunt
696190db60
TheHive Case Connector (#180138)
## Summary

TheHive is a new case connector, enabling users to seamlessly transfer
elastic cases to TheHive Security Incident Response Platform. This
connector facilitates sub-actions such as creating cases, updating
cases, and adding comments and creating alerts.

**create connector**

![thehive-connector](1e9a3fc5-c17a-40b5-8a49-87cd0fd74863)

**test connector**
1. **create case**


![thehive-params-case-test](2652ea5e-8b47-42d9-9b11-c055efe291b3)

2. **create alert**


![thehive-params-alert-test](8c8759c0-609c-4e34-bc21-35d648e684ab)


### 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)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [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] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Janki Salvi <jankigaurav.salvi@elastic.co>
Co-authored-by: Janki Salvi <117571355+js-jankisalvi@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-07-30 11:36:21 +03:00
Steph Milovic
15554be700
[OpenAI Connector] Update default model to gpt-4o (#189080) 2024-07-24 17:59:15 -05:00
Tomasz Ciecierski
9db3d866b5
[EDR Workflows] Add Crowdstrike Connector docs (#187850) 2024-07-23 15:30:02 +03:00
Steph Milovic
47b0105ea7
Gemini connector - update test message (#188850) 2024-07-22 11:06:37 -05:00
DeDe Morton
4b38ffde3e
[docs] Add note about accessing Azure OpenAI through a proxy (#186436)
## Summary

Closes https://github.com/elastic/observability-docs/issues/4005.

### Checklist

n/a
2024-07-09 11:24:33 -07:00
Lisa Cawley
477b92444a
[DOCS] Edit Google Gemini connector (#187528) 2024-07-04 14:42:55 +00:00
Steph Milovic
c13419e166
[GenAI Connectors] Bump default Gemini and Bedrock versions (#186671) 2024-06-24 11:52:23 -06:00
honeyn303
1ff87eb551
Gemini connector integration (#183668) 2024-06-06 11:52:35 -06:00
DeDe Morton
310f4ff79c
[DOCS] Obs AI Assistant connector (#183792)
## Summary

Adds reference documentation about the Obs AI Assistant connector
(requested in #181282)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2024-05-31 11:26:12 -07:00
Lisa Cawley
b1916090d0
[DOCS] Cases connector (#183349) 2024-05-23 09:43:45 -07:00
Lisa Cawley
3e08d4d6db
[DOCS] Add HTTP header example for webhook connectors (#180092) 2024-04-09 07:37:22 -07:00
Lisa Cawley
be980dff28
[DOCS] Add custom fields to Jira connectors (#180007) 2024-04-05 10:04:07 -07:00
Steph Milovic
ad8163db82
[GenAI] Bedrock Claude 3 Support (#179304) 2024-03-27 13:24:10 -06:00
Franಠ_ಠis Conil
b7c3c49bac
[DOCS] Fixes incorrect internal link (#177256) 2024-03-19 20:51:51 +00:00
Lisa Cawley
0fcc69f59d
[DOCS] Add block kit messages in Slack connector (#177677) 2024-03-07 18:16:30 -07:00
Dario Gieselaar
44df1f4caa
[Obs AI Assistant] Bedrock/Claude support (#176191)
~This PR still needs work (tests, mainly), so keeping it in draft for
now, but feel free to take it for a spin.~

Implements Bedrock support, specifically for the Claude models. 

Architecturally, this introduces LLM adapters: one for OpenAI (which is
what we already have), and one for Bedrock/Claude. The Bedrock/Claude
adapter does the following things:

- parses data from a SerDe (an AWS concept IIUC) stream using
`@smithy/eventstream-serde-node`.
- Converts function requests and results into XML and back (to some
extent)
- some slight changes to existing functionality to achieve _some_ kind
of baseline performance with Bedrock + Claude.

Generally, GPT seems better at implicit tasks. Claude needs explicit
tasks, otherwise it will take things too literally. For instance, I had
to use a function for generating a title because Claude was too eager to
add explanations. For the `classify_esql` function, I had to add extra
instructions to stop it from requesting information that is not there.
It is prone to generating invalid XML.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-02-09 01:17:20 -07:00
Steph Milovic
3a4ad7725a
[Security solution] Update default Bedrock api url (#176090) 2024-02-02 10:43:33 -07:00
Patryk Kopyciński
04004ddaac
Add docs for SentinelOne connector (#174696)
## Summary

Add docs for SentinelOne connector

---------

Co-authored-by: Joe Peeples <joe.peeples@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
2024-02-01 10:15:26 -07:00
Lisa Cawley
bf40a0d008
[Connectors][Case Management] Edit labels, automate screenshots (#172610) 2024-01-26 15:24:26 -07:00
Lisa Cawley
20d8e1928b
[DOCS] Clarify ServiceNow ITSM connector recovery actions (#175353) 2024-01-25 11:34:30 -05:00
Lisa Cawley
2614e92c4c
[Connectors][ServiceNow SecOps] Automate screenshots, add cross-scope privileges (#173941) 2024-01-09 13:53:38 -07:00
Lisa Cawley
0ac7dbd4f6
[Connectors][IBM Resilient] Edit required labels and automate screenshots (#166022) 2023-12-20 08:11:24 -08:00
Lisa Cawley
3df2c4f966
[DOCS] Automate Tines connector screenshots (#166313) 2023-12-19 21:31:11 -07:00
Lisa Cawley
103ca850aa
[Connectors][ServiceNow ITSM] Edit labels, automate screenshots, add cross-scope privileges (#172533) 2023-12-13 10:43:40 -08:00
Lisa Cawley
e69063e082
[Connectors][ServiceNow ITOM] Edit required labels and automate screenshots (#172229) 2023-12-04 11:50:07 -08:00
Lisa Cawley
8909f690b3
[Connectors][Jira] Edits formatting for required field (#172419) 2023-12-04 11:49:03 -08:00
Lisa Cawley
9ea86b7843
[Connectors][Opsgenie] Edits formatting for required fields (#172420) 2023-12-04 11:47:08 -08:00
Lisa Cawley
462bb3a290
[Connectors][PagerDuty] Edit labels for optional fields and generate docs (#172123) 2023-11-30 12:20:21 -07:00
Lisa Cawley
8716f65922
[DOCS] Slack api allowed channels (#169706) 2023-11-03 11:37:56 -07:00