[SIEM][CASE] ServiceNow executor#58894
Merged
cnasikas merged 45 commits intoelastic:masterfrom Mar 11, 2020
Merged
Conversation
Contributor
|
Pinging @elastic/siem (Team:SIEM) |
Contributor
|
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
08482fa to
42cff02
Compare
3 tasks
Member
Author
|
@elasticmachine merge upstream |
Contributor
Adding to the README would be great. If there's a README description I will take care of the asciidoc conversion when the time comes. |
Member
Author
|
@mikecote @YulNaumenko Thanks a lot for your review. I did a few small changes to the logic of the executor, especially how we treat comments. @mikecote I made the changes you requested. |
68f9b6c to
da2edb9
Compare
da2edb9 to
42110b3
Compare
mikecote
approved these changes
Mar 11, 2020
Contributor
mikecote
left a comment
There was a problem hiding this comment.
LGTM 👍 just one comment about the README.
cnasikas
added a commit
to cnasikas/kibana
that referenced
this pull request
Mar 11, 2020
* Refactor structure * Init ServiceNow class * Add constants * Add configuration scheme * Refactor configuration schema * Refactor parameters schema * Create new types * Add supported source fields * Create helpers * Create ServiceNow lib * Push incident * Declare private methods * Create UpdateIncident type * Create updateIncident method * Create executor actions * Refactor response * Test helpers * Remove unnecessary validation * Fix validation errors * Throw error for unsupported actions * Create mock incident * Test executor * Test ServiceNow lib * Convert to camelCase * Remove caller_id * Refactor helpers * Refactor schema * Remove executorAction * Test action handlers * Refactor tests * Create and update comments * Remove closure option & change attribute name * Fix tests * Change lib structure * Validate empty mapping * Fix functional tests * Fix type * Change API to only add comments through incident's API * Add instruction to README * Change API version * Test * Test simulator * Fix version on tests * Remove SIEM reference in README
cnasikas
added a commit
that referenced
this pull request
Mar 11, 2020
* Refactor structure * Init ServiceNow class * Add constants * Add configuration scheme * Refactor configuration schema * Refactor parameters schema * Create new types * Add supported source fields * Create helpers * Create ServiceNow lib * Push incident * Declare private methods * Create UpdateIncident type * Create updateIncident method * Create executor actions * Refactor response * Test helpers * Remove unnecessary validation * Fix validation errors * Throw error for unsupported actions * Create mock incident * Test executor * Test ServiceNow lib * Convert to camelCase * Remove caller_id * Refactor helpers * Refactor schema * Remove executorAction * Test action handlers * Refactor tests * Create and update comments * Remove closure option & change attribute name * Fix tests * Change lib structure * Validate empty mapping * Fix functional tests * Fix type * Change API to only add comments through incident's API * Add instruction to README * Change API version * Test * Test simulator * Fix version on tests * Remove SIEM reference in README
Contributor
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements a ServiceNow connector where one can create or update incidents to ServiceNow. The action is needed for the Case Management System.
Usage
Create action:
Create a ServiceNow action. See README for more information about the parameters.
Endpoint:
api/actionMethod:
POSTPayload:
Response:
Create an incident:
Create an incident to ServiceNow. When the
incidentIdattribute is not inparamsthe executor will create the incident.Endpoint:
api/action/<action_id>/_executeMethod:
POSTPayload:
Response
Update an incident:
Update an incident to ServiceNow. When the
incidentIdattribute is inparamsthe executor will update the incident.Endpoint:
api/action/<action_id>/_executeMethod:
POSTPayload:
Response
Checklist
Delete any items that are not applicable to this PR.
For maintainers