Skip to content

Commit 21cc8f2

Browse files
authored
Merge branch 'main' into cspm/alerts-mapping-update
2 parents ae8ff27 + b3d0800 commit 21cc8f2

File tree

3,910 files changed

+109996
-64881
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,910 files changed

+109996
-64881
lines changed

.buildkite/ftr_security_serverless_configs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ disabled:
55
- x-pack/test/security_solution_api_integration/config/serverless/config.base.edr_workflows.ts
66
- x-pack/test/security_solution_api_integration/config/serverless/config.base.ai4dsoc.ts
77
- x-pack/test/defend_workflows_cypress/serverless_config.base.ts
8-
- x-pack/test/osquery_cypress/serverless_config.base.ts
8+
- x-pack/solutions/security/test/osquery_cypress/serverless_config.base.ts
99

1010
# Cypress configs, for now these are still run manually
1111
- x-pack/test/defend_workflows_cypress/serverless_config.ts
12-
- x-pack/test/osquery_cypress/serverless_cli_config.ts
12+
- x-pack/solutions/security/test/osquery_cypress/serverless_cli_config.ts
1313
- x-pack/test/security_solution_cypress/serverless_config.ts
1414
- x-pack/test/security_solution_cypress/ai4dsoc_serverless_config.ts
1515

@@ -76,6 +76,7 @@ enabled:
7676
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_patch/basic_license_essentials_tier/configs/serverless.config.ts
7777
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_update/trial_license_complete_tier/configs/serverless.config.ts
7878
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_update/basic_license_essentials_tier/configs/serverless.config.ts
79+
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/configs/serverless_essentials_tier.config.ts
7980
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_disabled/configs/serverless_essentials_tier.config.ts
8081
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/configs/serverless.config.ts
8182
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/upgrade_prebuilt_rules/diffable_rule_fields/common_fields/configs/serverless.config.ts

.buildkite/ftr_security_stateful_configs.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ disabled:
1717
# Cypress configs, for now these are still run manually
1818
- x-pack/test/defend_workflows_cypress/cli_config.ts
1919
- x-pack/test/defend_workflows_cypress/config.ts
20-
- x-pack/test/osquery_cypress/cli_config.ts
21-
- x-pack/test/osquery_cypress/config.ts
22-
- x-pack/test/osquery_cypress/visual_config.ts
20+
- x-pack/solutions/security/test/osquery_cypress/cli_config.ts
21+
- x-pack/solutions/security/test/osquery_cypress/config.ts
22+
- x-pack/solutions/security/test/osquery_cypress/visual_config.ts
2323
- x-pack/test/security_solution_cypress/cli_config.ts
2424
- x-pack/test/security_solution_cypress/config.ts
2525

@@ -60,6 +60,8 @@ enabled:
6060
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_patch/basic_license_essentials_tier/configs/ess.config.ts
6161
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_update/trial_license_complete_tier/configs/ess.config.ts
6262
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_update/basic_license_essentials_tier/configs/ess.config.ts
63+
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/configs/ess_basic_license.config.ts
64+
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/configs/ess_air_gapped.config.ts
6365
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_disabled/configs/ess_basic_license.config.ts
6466
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/configs/ess.config.ts
6567
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/customization_enabled/upgrade_prebuilt_rules/diffable_rule_fields/common_fields/configs/ess.config.ts
@@ -101,6 +103,9 @@ enabled:
101103
- x-pack/test/security_solution_api_integration/test_suites/edr_workflows/policy/trial_license_complete_tier/configs/ess.config.ts
102104
- x-pack/test/security_solution_api_integration/test_suites/edr_workflows/resolver/trial_license_complete_tier/configs/ess.config.ts
103105
- x-pack/test/security_solution_api_integration/test_suites/edr_workflows/response_actions/trial_license_complete_tier/configs/ess.config.ts
106+
- x-pack/test/security_solution_api_integration/test_suites/edr_workflows/role_migrations/search_ai_lake_tier/configs/serverless.config.ts
107+
- x-pack/test/security_solution_api_integration/test_suites/edr_workflows/role_migrations/trial_license_complete_tier/configs/ess.config.ts
108+
- x-pack/test/security_solution_api_integration/test_suites/edr_workflows/role_migrations/trial_license_complete_tier/configs/serverless.config.ts
104109
- x-pack/test/security_solution_api_integration/test_suites/edr_workflows/spaces/trial_license_complete_tier/configs/ess.config.ts
105110
- x-pack/test/security_solution_api_integration/test_suites/siem_migrations/rules/trial_license_complete_tier/configs/ess.config.ts
106111
- x-pack/test/security_solution_endpoint/configs/endpoint.config.ts

.buildkite/pipelines/flaky_tests/groups.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,6 @@
9292
"key": "cypress/profiling_cypress",
9393
"name": "Profiling - Cypress"
9494
},
95-
{
96-
"key": "cypress/inventory_cypress",
97-
"name": "Inventory - Cypress"
98-
},
9995
{
10096
"key": "cypress/cloud_security_posture",
10197
"name": "Cloud Security Posture - Cypress"

.buildkite/pipelines/on_merge_unsupported_ftrs.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,6 @@ steps:
4949
- exit_status: '*'
5050
limit: 1
5151

52-
- command: .buildkite/scripts/steps/functional/inventory_cypress.sh
53-
label: 'Inventory Cypress Tests'
54-
agents:
55-
image: family/kibana-ubuntu-2004
56-
imageProject: elastic-images-prod
57-
provider: gcp
58-
machineType: n2-standard-4
59-
preemptible: true
60-
depends_on: build
61-
env:
62-
PING_SLACK_TEAM: "@obs-ux-infra_services-team"
63-
timeout_in_minutes: 120
64-
retry:
65-
automatic:
66-
- exit_status: '-1'
67-
limit: 3
68-
- exit_status: '*'
69-
limit: 1
70-
7152
- command: .buildkite/scripts/steps/test/scout_test_run_builder.sh
7253
label: 'Scout Test Run Builder'
7354
agents:

.buildkite/pipelines/pull_request/inventory_cypress.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.buildkite/scripts/common/env.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ if is_pr; then
8383
export ELASTIC_APM_CONTEXT_PROPAGATION_ONLY=true
8484
fi
8585

86+
# value for security genai prompts evals
87+
if is_pr_with_label "ci:security-genai-run-evals-local-prompts"; then
88+
export IS_SECURITY_AI_PROMPT_TEST=true
89+
fi
90+
8691
# These can be removed once we're not supporting Jenkins and Buildkite at the same time
8792
# These are primarily used by github checks reporter and can be configured via /github_checks_api.json
8893
export ghprbGhRepository="elastic/kibana"

.buildkite/scripts/pipelines/pull_request/pipeline.ts

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,6 @@ const getPipeline = (filename: string, removeSteps = true) => {
9999
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/apm_cypress.yml'));
100100
}
101101

102-
if (
103-
(await doAnyChangesMatch([
104-
/^x-pack\/solutions\/observability\/plugins\/inventory/,
105-
/^src\/platform\/packages\/shared\/kbn-apm-synthtrace/,
106-
])) ||
107-
GITHUB_PR_LABELS.includes('ci:all-cypress-suites')
108-
) {
109-
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/inventory_cypress.yml'));
110-
}
111-
112102
if (
113103
(await doAnyChangesMatch([/^x-pack\/solutions\/observability\/plugins\/profiling/])) ||
114104
GITHUB_PR_LABELS.includes('ci:all-cypress-suites')
@@ -424,7 +414,7 @@ const getPipeline = (filename: string, removeSteps = true) => {
424414
if (
425415
((await doAnyChangesMatch([
426416
/^x-pack\/platform\/plugins\/shared\/osquery/,
427-
/^x-pack\/test\/osquery_cypress/,
417+
/^x-pack\/solutions\/security\/test\/osquery_cypress/,
428418
/^x-pack\/solutions\/security\/plugins\/security_solution/,
429419
])) ||
430420
GITHUB_PR_LABELS.includes('ci:all-cypress-suites')) &&
@@ -470,7 +460,10 @@ const getPipeline = (filename: string, removeSteps = true) => {
470460
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/scout_tests.yml'));
471461
}
472462

473-
if (GITHUB_PR_LABELS.includes('ci:security-genai-run-evals')) {
463+
if (
464+
GITHUB_PR_LABELS.includes('ci:security-genai-run-evals') ||
465+
GITHUB_PR_LABELS.includes('ci:security-genai-run-evals-local-prompts')
466+
) {
474467
pipeline.push(
475468
getPipeline('.buildkite/pipelines/pull_request/security_solution/gen_ai_evals.yml')
476469
);

.buildkite/scripts/steps/functional/inventory_cypress.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

.eslintrc.js

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2268,8 +2268,6 @@ module.exports = {
22682268
'src/cli_setup/**', // is importing "@kbn/interactive-setup-plugin" (platform/private)
22692269
'src/dev/build/tasks/install_chromium.ts', // is importing "@kbn/screenshotting-plugin" (platform/private)
22702270

2271-
// FIXME tomsonpl @kbn/osquery-plugin depends on @kbn/security-solution-plugin (security/private) (cypress code => cypress code)
2272-
'x-pack/platform/plugins/shared/osquery/**',
22732271
// FIXME PhilippeOberti @kbn/timelines-plugin depends on security-solution-plugin (security/private) (timelines is going to disappear)
22742272
'x-pack/platform/plugins/shared/timelines/**',
22752273

@@ -2300,6 +2298,23 @@ module.exports = {
23002298
'no-console': 'off',
23012299
},
23022300
},
2301+
{
2302+
files: ['x-pack/**/cypress/**/*.ts'],
2303+
rules: {
2304+
'no-restricted-imports': [
2305+
'error',
2306+
{
2307+
paths: [
2308+
{
2309+
name: '@kbn/cypress-test-helper',
2310+
message:
2311+
"Import from a sub-path (e.g. '@kbn/cypress-test-helper/src/utils'). Cypress uses Webpack, which requires direct file imports to avoid parse errors.",
2312+
},
2313+
],
2314+
},
2315+
],
2316+
},
2317+
},
23032318
],
23042319
};
23052320

0 commit comments

Comments
 (0)