forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution][Endpoint] refactor server-side response actions s…
…ervice utilities (elastic#183859) ## Summary Refactor of several service utilities related to response actions, including: - Deleted `action_list_helpers` from `server/endpoint/utils` and move those function still in use to the `action_audit_log` (old deprecated API) - Renamed `actions.ts` to `action_audit_log.ts` to better reflect the (deprecated) API that these services are associated with - Simplified several utilities to no longer use `ActivityLogActionResponse` or `EndpointActivityLogActionResponse` and refactored existing utilities that depended on these types to just work with the underlying `LogsEndpointActionResponse` and `LogsEndpointActionResponse` instead - moved logic that queries for list of Action Requests to its own module - Changed signature of `fetchAllPendingActions()` (from `BaseReponseActionsClient` class) to now return: `Array<{ action: LogsEndpointAction; pendingAgentIds: string[]}>` - Change will enable consumers of the `protected` method to now receive a list of agent IDs for which a response is still pending - Work in preparation for when we start to support sending response actions to multiple agents - Delete some unused code throughout
- Loading branch information
1 parent
310f4ff
commit 3dbf997
Showing
24 changed files
with
1,336 additions
and
1,653 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
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
Oops, something went wrong.