Skip to content

Commit

Permalink
[Entity Analytics] Ensuring definition transforms are managed (elasti…
Browse files Browse the repository at this point in the history
…c#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/<user | host>/init` with an
empty (`{}`) body.
3. Go to `Stack Management > Transforms` and verify that the 2 new
transforms are tagged as managed

Implements elastic/security-team#10608

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit a372162)
  • Loading branch information
tiansivive committed Sep 23, 2024
1 parent 601c8a8 commit 360487e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const buildHostEntityDefinition = (): EntityDefinition =>
interval: '1m',
},
version: '1.0.0',
managed: true,
});

export const buildUserEntityDefinition = (): EntityDefinition =>
Expand All @@ -55,4 +56,5 @@ export const buildUserEntityDefinition = (): EntityDefinition =>
interval: '1m',
},
version: '1.0.0',
managed: true,
});

0 comments on commit 360487e

Please sign in to comment.