Skip to content

Commit

Permalink
[Entity Analytics] Ensuring definition transforms are managed (#193408)
Browse files Browse the repository at this point in the history
## 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 <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
tiansivive and kibanamachine authored Sep 23, 2024
1 parent 2106df3 commit a372162
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 = (space: string): EntityDefinition =>
interval: '1m',
},
version: '1.0.0',
managed: true,
});

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

0 comments on commit a372162

Please sign in to comment.