-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution] [Cases] Swimlane Connector for Cases (#100086)
Co-authored-by: Josh <[email protected]> Co-authored-by: Xavier Mouligneau <[email protected]> Co-authored-by: Christos Nasikas <[email protected]> Co-authored-by: Jonathan Buttner <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
- Loading branch information
1 parent
1813d70
commit 2dc1715
Showing
110 changed files
with
5,531 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
docs/management/connectors/action-types/swimlane.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
[role="xpack"] | ||
[[swimlane-action-type]] | ||
=== Swimlane connector and action | ||
++++ | ||
<titleabbrev>Swimlane</titleabbrev> | ||
++++ | ||
|
||
The Swimlane connector uses the https://swimlane.com/knowledge-center/docs/developer-guide/rest-api/[Swimlane REST API] to create Swimlane records. | ||
|
||
[float] | ||
[[swimlane-connector-configuration]] | ||
==== Connector configuration | ||
|
||
Swimlane connectors have the following configuration properties. | ||
|
||
Name:: The name of the connector. The name is used to identify a connector in the **Stack Management** UI connector listing, and in the connector list when configuring an action. | ||
URL:: Swimlane instance URL. | ||
Application ID:: Swimlane application ID. | ||
API token:: Swimlane API authentication token for HTTP Basic authentication. | ||
|
||
[float] | ||
[[Preconfigured-swimlane-configuration]] | ||
==== Preconfigured connector type | ||
|
||
[source,text] | ||
-- | ||
my-swimlane: | ||
name: preconfigured-swimlane-connector-type | ||
actionTypeId: .swimlane | ||
config: | ||
apiUrl: https://elastic.swimlaneurl.us | ||
appId: app-id | ||
mappings: | ||
alertIdConfig: | ||
fieldType: text | ||
id: agp4s | ||
key: alert-id | ||
name: Alert ID | ||
caseIdConfig: | ||
fieldType: text | ||
id: ae1mi | ||
key: case-id | ||
name: Case ID | ||
caseNameConfig: | ||
fieldType: text | ||
id: anxnr | ||
key: case-name | ||
name: Case Name | ||
commentsConfig: | ||
fieldType: comments | ||
id: au18d | ||
key: comments | ||
name: Comments | ||
descriptionConfig: | ||
fieldType: text | ||
id: ae1gd | ||
key: description | ||
name: Description | ||
ruleNameConfig: | ||
fieldType: text | ||
id: avfsl | ||
key: rule-name | ||
name: Rule Name | ||
severityConfig: | ||
fieldType: text | ||
id: a71ik | ||
key: severity | ||
name: severity | ||
secrets: | ||
apiToken: tokenkeystorevalue | ||
-- | ||
|
||
Config defines information for the connector type. | ||
|
||
`apiUrl`:: An address that corresponds to *URL*. | ||
`appId`:: A key that corresponds to *Application ID*. | ||
|
||
Secrets defines sensitive information for the connector type. | ||
|
||
`apiToken`:: A string that corresponds to *API Token*. Should be stored in the <<creating-keystore, {kib} keystore>>. | ||
|
||
[float] | ||
[[define-swimlane-ui]] | ||
==== Define connector in Stack Management | ||
|
||
Define Swimlane connector properties. | ||
|
||
[role="screenshot"] | ||
image::management/connectors/images/swimlane-connector.png[Swimlane connector] | ||
|
||
Test Swimlane action parameters. | ||
|
||
[role="screenshot"] | ||
image::management/connectors/images/swimlane-params-test.png[Swimlane params test] | ||
|
||
[float] | ||
[[swimlane-action-configuration]] | ||
==== Action configuration | ||
|
||
Swimlane actions have the following configuration properties. | ||
|
||
Comments:: Additional information for the client, such as how to troubleshoot the issue. | ||
Severity:: The severity of the incident. | ||
|
||
NOTE: Alert ID and Rule Name are filled automatically. Specifically, Alert ID is set to `{{alert.id}}` and Rule Name to `{{rule.name}}`. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,25 +155,25 @@ describe('Jira service', () => { | |
).toThrow(); | ||
}); | ||
|
||
test('throws without username', () => { | ||
test('throws without email/username', () => { | ||
expect(() => | ||
createExternalService( | ||
{ | ||
config: { apiUrl: 'test.com' }, | ||
secrets: { apiToken: '', email: '[email protected]' }, | ||
config: { apiUrl: 'test.com', projectKey: 'CK' }, | ||
secrets: { apiToken: 'token' }, | ||
}, | ||
logger, | ||
configurationUtilities | ||
) | ||
).toThrow(); | ||
}); | ||
|
||
test('throws without password', () => { | ||
test('throws without apiToken/password', () => { | ||
expect(() => | ||
createExternalService( | ||
{ | ||
config: { apiUrl: 'test.com' }, | ||
secrets: { apiToken: '', email: undefined }, | ||
config: { apiUrl: 'test.com', projectKey: 'CK' }, | ||
secrets: { email: '[email protected]' }, | ||
}, | ||
logger, | ||
configurationUtilities | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.