kibana icon indicating copy to clipboard operation
kibana copied to clipboard

[Security Solution] Quickstart script tooling for Detections and Response

Open marshallmain opened this issue 1 year ago • 2 comments

Summary

Creates CLI script tooling for building data, rules, exceptions, and lists in any (local, cloud, serverless) environment for manual testing. The initial commits here add generated clients for accessing security solution, exceptions, and lists APIs and a placeholder script where those clients are set up for use. See README for more details.

Much of the code in this PR is auto-generated clients. The hand written code is intended to be primarily in quickstart/modules/, where we can add wrapper code to simplify the process for common test environment setup. For example, createValueListException takes an array of items and some metadata and automatically creates a new value list and an exception that references that value list. /modules/data/ contains functions to generate documents of arbitrary size, and we can add more functions to create various other types of documents.

marshallmain avatar Aug 15 '24 18:08 marshallmain

Added the whole @elastic/security-detection-rule-management team to the list of reviewers so people get reminded about the PR over slack.

banderror avatar Aug 26 '24 15:08 banderror

:yellow_heart: Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #5 / Saved Objects Management saved objects management with hidden types Delete modal should not delete the hidden objects when performing the operation

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
lists 289 340 +51
securitySolution 5675 5726 +51
total +102

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/securitysolution-utils 46 54 +8
Unknown metric groups

API count

id before after diff
@kbn/securitysolution-utils 51 60 +9

History

  • :yellow_heart: Build #231731 was flaky 55305a34bf5c04f3145b7d84f9e55a6cc6215357
  • :broken_heart: Build #231698 failed 5a1079b26ebbfc4fee5dd63b3639ae5440664c7a
  • :yellow_heart: Build #230798 was flaky 83333b68754f7c0c10a7dea3a7f714c51fd8f301
  • :yellow_heart: Build #230420 was flaky 543899120d27956219255ea42a71ff83a0c7af68
  • :broken_heart: Build #230287 failed f6c61bd34a4b4b3c38fbfb0034a83223121faff0
  • :broken_heart: Build #230261 failed b65f6a268f6effc1affbefd3c2209aa377dfcc87

To update your PR or re-run it, just comment with: @elasticmachine merge upstream

kibana-ci avatar Sep 05 '24 19:09 kibana-ci

Pinging @elastic/security-detection-engine (Team:Detection Engine)

elasticmachine avatar Sep 06 '24 13:09 elasticmachine