-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Attack discovery] Add utils for testing #182918
[Attack discovery] Add utils for testing #182918
Conversation
…covery-e2e # Conflicts: # yarn.lock
/ci |
/ci |
…ki/kibana into feat/attack-discovery-e2e
/ci |
/ci |
…ki/kibana into feat/attack-discovery-e2e
/ci |
/ci |
/ci |
/ci |
/ci |
…covery-e2e # Conflicts: # src/platform/plugins/shared/visualizations/public/legacy/embeddable/visualize_embeddable.tsx
…ki/kibana into feat/attack-discovery-e2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Left a small question :-)
{ | ||
description: `Loads data into a environment for testing/development`, | ||
flags: { | ||
string: ['kibanaUrl', 'username', 'password'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why don't we have elasticsearchUrl
here?
💛 Build succeeded, but was flaky
Failed CI Steps
Test Failures
Metrics [docs]
History
|
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12776946161 |
## Summary Add `load_attack_discovery_data` script that populates alerts data for Attack discovery testing To load Attack discovery data to the existing instance: ``` node x-pack/solutions/security/plugins/security_solution/scripts/load_attack_discovery_data.js --kibanaUrl http://127.0.0.1:5620 --elasticsearchUrl http://127.0.0.1:9220 ``` --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Mark Hopkin <[email protected]> (cherry picked from commit 2c9e55d)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[Attack discovery] Add utils for testing (#182918)](#182918) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Patryk Kopyciński","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-14T21:45:28Z","message":"[Attack discovery] Add utils for testing (#182918)\n\n## Summary\r\n\r\nAdd `load_attack_discovery_data` script that populates alerts data for\r\nAttack discovery testing\r\n\r\nTo load Attack discovery data to the existing instance:\r\n```\r\nnode x-pack/solutions/security/plugins/security_solution/scripts/load_attack_discovery_data.js --kibanaUrl http://127.0.0.1:5620 --elasticsearchUrl http://127.0.0.1:9220\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Mark Hopkin <[email protected]>","sha":"2c9e55dc44a27f4781ae50e55e9b42dc5eb6f1fb","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Feature:Security Assistant","Team:Security Generative AI"],"title":"[Attack discovery] Add utils for testing","number":182918,"url":"https://github.com/elastic/kibana/pull/182918","mergeCommit":{"message":"[Attack discovery] Add utils for testing (#182918)\n\n## Summary\r\n\r\nAdd `load_attack_discovery_data` script that populates alerts data for\r\nAttack discovery testing\r\n\r\nTo load Attack discovery data to the existing instance:\r\n```\r\nnode x-pack/solutions/security/plugins/security_solution/scripts/load_attack_discovery_data.js --kibanaUrl http://127.0.0.1:5620 --elasticsearchUrl http://127.0.0.1:9220\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Mark Hopkin <[email protected]>","sha":"2c9e55dc44a27f4781ae50e55e9b42dc5eb6f1fb"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/182918","number":182918,"mergeCommit":{"message":"[Attack discovery] Add utils for testing (#182918)\n\n## Summary\r\n\r\nAdd `load_attack_discovery_data` script that populates alerts data for\r\nAttack discovery testing\r\n\r\nTo load Attack discovery data to the existing instance:\r\n```\r\nnode x-pack/solutions/security/plugins/security_solution/scripts/load_attack_discovery_data.js --kibanaUrl http://127.0.0.1:5620 --elasticsearchUrl http://127.0.0.1:9220\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Mark Hopkin <[email protected]>","sha":"2c9e55dc44a27f4781ae50e55e9b42dc5eb6f1fb"}}]}] BACKPORT--> Co-authored-by: Patryk Kopyciński <[email protected]>
## Summary Add `load_attack_discovery_data` script that populates alerts data for Attack discovery testing To load Attack discovery data to the existing instance: ``` node x-pack/solutions/security/plugins/security_solution/scripts/load_attack_discovery_data.js --kibanaUrl http://127.0.0.1:5620 --elasticsearchUrl http://127.0.0.1:9220 ``` --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Mark Hopkin <[email protected]>
## Summary Followup for #182918. Compressed content and switched to load `.ndjson.gz`directly
## Summary Followup for elastic#182918. Compressed content and switched to load `.ndjson.gz`directly (cherry picked from commit 67bedde)
#208255) # Backport This will backport the following commits from `main` to `8.x`: - [[Attack discovery] Optimize attack discovery test data (#206885)](#206885) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Patryk Kopyciński","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-24T18:15:07Z","message":"[Attack discovery] Optimize attack discovery test data (#206885)\n\n## Summary\r\n\r\nFollowup for #182918. \r\nCompressed content and switched to load `.ndjson.gz`directly","sha":"67bedde849b502ee366b341ae66a19eb03f71ac3","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Feature:Security Assistant","Team:Security Generative AI","backport:version","v8.18.0"],"title":"[Attack discovery] Optimize attack discovery test data","number":206885,"url":"https://github.com/elastic/kibana/pull/206885","mergeCommit":{"message":"[Attack discovery] Optimize attack discovery test data (#206885)\n\n## Summary\r\n\r\nFollowup for #182918. \r\nCompressed content and switched to load `.ndjson.gz`directly","sha":"67bedde849b502ee366b341ae66a19eb03f71ac3"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206885","number":206885,"mergeCommit":{"message":"[Attack discovery] Optimize attack discovery test data (#206885)\n\n## Summary\r\n\r\nFollowup for #182918. \r\nCompressed content and switched to load `.ndjson.gz`directly","sha":"67bedde849b502ee366b341ae66a19eb03f71ac3"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Patryk Kopyciński <[email protected]>
## Summary Followup for elastic#182918. Compressed content and switched to load `.ndjson.gz`directly
Summary
Add
load_attack_discovery_data
script that populates alerts data for Attack discovery testingTo load Attack discovery data to the existing instance: