Skip to content

Commit 3723204

Browse files
committed
auto extract observables
1 parent 8ffa32a commit 3723204

File tree

163 files changed

+2250
-276
lines changed

Some content is hidden

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

163 files changed

+2250
-276
lines changed

packages/kbn-check-saved-objects-cli/current_fields.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@
185185
"observables.value",
186186
"owner",
187187
"settings",
188+
"settings.extractObservables",
188189
"settings.syncAlerts",
189190
"severity",
190191
"status",

packages/kbn-check-saved-objects-cli/current_mappings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,9 @@
646646
"properties": {
647647
"syncAlerts": {
648648
"type": "boolean"
649+
},
650+
"extractObservables": {
651+
"type": "boolean"
649652
}
650653
}
651654
},

src/core/packages/saved-objects/migration-server-internal/src/kibana_migrator_utils.fixtures.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,6 +1708,9 @@ export const INDEX_MAP_BEFORE_SPLIT: IndexMap = {
17081708
syncAlerts: {
17091709
type: 'boolean',
17101710
},
1711+
extractObservables: {
1712+
type: 'boolean',
1713+
},
17111714
},
17121715
},
17131716
severity: {

src/core/server/integration_tests/ci_checks/saved_objects/check_registered_types.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ describe('checking migration metadata changes on all registered SO types', () =>
7979
"canvas-element": "288fd8d216eb49cbeb5e8f7491f207ef074b80dd",
8080
"canvas-workpad": "5cd605383a100a27941cca6cbf2d954aa96a16e2",
8181
"canvas-workpad-template": "f9a6ffab76ddfcd8fa3823002aa576c8f1d0e686",
82-
"cases": "2377506cc9ce6506bfc1c1b04cb8aed87d3fecab",
82+
"cases": "4fc50754783dc773d9de7059de195419e4d1a49b",
8383
"cases-comments": "9e336aceb6a330452d1cbf0ba1b8fd542c9e3856",
8484
"cases-configure": "66d4c64d83b464f5166005b8ffa03b721fcaaf8b",
8585
"cases-connector-mappings": "877bb4d52e9821e330622bd75fba799490ec6952",
@@ -405,20 +405,20 @@ describe('checking migration metadata changes on all registered SO types', () =>
405405
"canvas-workpad-template|warning: The SO type owner should ensure these transform functions DO NOT mutate after they are defined.",
406406
"================================================================================================================================",
407407
"cases|global: 58923536ede82aed6c22799b52c4f51f4bf66aba",
408-
"cases|mappings: 04e7b5c53626eb3e5e08837830697951084d9d7d",
408+
"cases|mappings: f7c1e6c70a721ce1be5e25bc9864cf01e625ad26",
409409
"cases|schemas: da39a3ee5e6b4b0d3255bfef95601890afd80709",
410-
"cases|10.4.0: a6b78b2317fa12cf0ec1d7ac21382e6528be409b",
411-
"cases|10.3.0: 6bf633e6147007b80adfe8da94b3e57d6004a803",
412-
"cases|10.2.0: 9b3de0b9947e9d6bfb5d63ea9d5e9df9afca2601",
413-
"cases|10.1.0: 932fb3a37b3346e4c6bb6ad78dc3c0fd323b858f",
410+
"cases|10.4.0: 53709645b83000e4141255001b3a64a1586d302b",
411+
"cases|10.3.0: ef93b5968381e4b3270eac0e3a99852cfce27b50",
412+
"cases|10.2.0: 831b43bd86d1188e3d350c233385fa559ce85d04",
413+
"cases|10.1.0: 914f63dc72610117f0a17b723320d31d3e9f1333",
414414
"cases|8.7.0: 54c152a2584673672445346cf69d72bda587cc52",
415415
"cases|8.5.0: a2c0c0dcdbac64d71ddb583dc02e83aa760eb784",
416416
"cases|8.3.0: 09aaac909eff1a6a2d944aa6c1dd297dda05b5ce",
417417
"cases|8.1.0: 914c4a158269530e5cfe0810b27befb4a8eb3d26",
418418
"cases|7.15.0: 05b8ad5f38499fcef2666b4af91d509e6990b3de",
419419
"cases|7.14.0: 9414dc2de142457c95169cc2b6201edeb7be411b",
420420
"cases|7.12.0: f7dcaea36ecd915719b40a0e082b393423ca3701",
421-
"cases|7.11.0: b458fb6214126d9aa652dff8e9be1cdaf1abf02b",
421+
"cases|7.11.0: 7df7ea63adabe586db3f9a103f937651593f25f3",
422422
"cases|7.10.0: 145055b3bffb3f05c7bc516aca9ed5bbebe19dd4",
423423
"======================================================",
424424
"cases-comments|global: 18aa115865c6f0772a6afd9b63f83e87e51e48c0",

src/platform/packages/shared/kbn-securitysolution-ecs/src/dll/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
* License v3.0 only", or the "Server Side Public License, v 1".
88
*/
99

10-
import type { CodeSignature, Ext } from '../file';
10+
import type { CodeSignature, Ext, Hash } from '../file';
1111
import type { ProcessPe } from '../process';
1212

1313
export interface DllEcs {
1414
Ext?: Ext;
1515
path?: string;
1616
code_signature?: CodeSignature;
1717
pe?: ProcessPe;
18+
hash?: Hash;
1819
}

src/platform/packages/shared/kbn-securitysolution-ecs/src/file/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ export interface Hash {
5757
md5?: string[];
5858
sha1?: string[];
5959
sha256: string[];
60+
cdhash?: string[];
61+
sha384?: string[];
62+
sha512?: string[];
63+
ssdeep?: string[];
64+
tlsh?: string[];
6065
}
6166

6267
export interface FileEcs {

src/platform/packages/shared/kbn-securitysolution-ecs/src/process/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ export interface ProcessHashData {
4141
md5?: string[];
4242
sha1?: string[];
4343
sha256?: string[];
44+
sha384?: string[];
45+
sha512?: string[];
46+
ssdeep?: string[];
47+
tlsh?: string[];
48+
cdhash?: string[];
4449
}
4550

4651
export interface ProcessParentData {

src/platform/packages/shared/response-ops/alerts-table/components/alerts_table.test.tsx

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,10 @@ describe('AlertsTable', () => {
494494
children: expect.anything(),
495495
owner: ['cases'],
496496
permissions: { create: true, read: true },
497-
features: { alerts: { sync: false } },
497+
features: {
498+
alerts: { sync: false },
499+
observables: { enabled: true, autoExtract: false },
500+
},
498501
},
499502
{}
500503
);
@@ -510,7 +513,10 @@ describe('AlertsTable', () => {
510513
children: expect.anything(),
511514
owner: [],
512515
permissions: { create: true, read: true },
513-
features: { alerts: { sync: false } },
516+
features: {
517+
alerts: { sync: false },
518+
observables: { enabled: true, autoExtract: false },
519+
},
514520
},
515521
{}
516522
);
@@ -529,7 +535,10 @@ describe('AlertsTable', () => {
529535
children: expect.anything(),
530536
owner: [],
531537
permissions: { create: false, read: false },
532-
features: { alerts: { sync: false } },
538+
features: {
539+
alerts: { sync: false },
540+
observables: { enabled: true, autoExtract: false },
541+
},
533542
},
534543
{}
535544
);
@@ -541,7 +550,7 @@ describe('AlertsTable', () => {
541550
casesConfiguration: {
542551
featureId: 'test-feature-id',
543552
owner: ['cases'],
544-
syncAlerts: true,
553+
extractObservables: false,
545554
},
546555
};
547556

@@ -554,7 +563,7 @@ describe('AlertsTable', () => {
554563
children: expect.anything(),
555564
owner: ['cases'],
556565
permissions: { create: true, read: true },
557-
features: { alerts: { sync: true } },
566+
features: { alerts: { sync: false }, observables: { enabled: true, autoExtract: false } },
558567
},
559568
{}
560569
);

src/platform/packages/shared/response-ops/alerts-table/components/alerts_table.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,13 @@ const AlertsTableContent = typedForwardRef(
638638
<CasesContext
639639
owner={casesConfiguration?.owner ?? []}
640640
permissions={casesPermissions}
641-
features={{ alerts: { sync: casesConfiguration?.syncAlerts ?? false } }}
641+
features={{
642+
alerts: { sync: casesConfiguration?.syncAlerts ?? false },
643+
observables: {
644+
enabled: true,
645+
autoExtract: false,
646+
},
647+
}}
642648
>
643649
<AlertsDataGrid {...dataGridProps} />
644650
</CasesContext>

src/platform/packages/shared/response-ops/alerts-table/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ export interface PublicAlertsDataGridProps
469469
owner: Parameters<CasesService['helpers']['canUseCases']>[0];
470470
appId?: string;
471471
syncAlerts?: boolean;
472+
extractObservables?: boolean;
472473
};
473474
/**
474475
* If true, hides the bulk actions controls

0 commit comments

Comments
 (0)