From 360487e4c6c0e4deb2804bd75233d682b64ff40c Mon Sep 17 00:00:00 2001 From: Tiago Vila Verde Date: Mon, 23 Sep 2024 13:50:54 +0200 Subject: [PATCH] [Entity Analytics] Ensuring definition transforms are managed (#193408) ## Summary This PR adds the `managed` flag to the entity definitions so that the generated transforms are tagged as such. ### How to test 1. Add `EntityStoreEnabled` feature flag to your `kibana.dev.yml` 2. Call `POST kbn:/api/entity_store/engines//init` with an empty (`{}`) body. 3. Go to `Stack Management > Transforms` and verify that the 2 new transforms are tagged as managed Implements https://github.com/elastic/security-team/issues/10608 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit a372162cf6f7ed88ded984f4501895d4cd88d047) --- .../server/lib/entity_analytics/entity_store/definition.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/plugins/security_solution/server/lib/entity_analytics/entity_store/definition.ts b/x-pack/plugins/security_solution/server/lib/entity_analytics/entity_store/definition.ts index 391e8b16dd32d..6800c0ab5b961 100644 --- a/x-pack/plugins/security_solution/server/lib/entity_analytics/entity_store/definition.ts +++ b/x-pack/plugins/security_solution/server/lib/entity_analytics/entity_store/definition.ts @@ -32,6 +32,7 @@ export const buildHostEntityDefinition = (): EntityDefinition => interval: '1m', }, version: '1.0.0', + managed: true, }); export const buildUserEntityDefinition = (): EntityDefinition => @@ -55,4 +56,5 @@ export const buildUserEntityDefinition = (): EntityDefinition => interval: '1m', }, version: '1.0.0', + managed: true, });