Skip to content

Commit

Permalink
[8.x] [Entity Analytics] Ensuring definition transforms are managed (#…
Browse files Browse the repository at this point in the history
…193408) (#193708)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Entity Analytics] Ensuring definition transforms are managed
(#193408)](#193408)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Tiago Vila
Verde","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-23T11:50:54Z","message":"[Entity
Analytics] Ensuring definition transforms are managed (#193408)\n\n##
Summary\r\n\r\nThis PR adds the `managed` flag to the entity definitions
so that the\r\ngenerated transforms are tagged as such.\r\n\r\n### How
to test\r\n\r\n1. Add `EntityStoreEnabled` feature flag to your
`kibana.dev.yml`\r\n2. Call `POST kbn:/api/entity_store/engines/<user |
host>/init` with an\r\nempty (`{}`) body.\r\n3. Go to `Stack Management
> Transforms` and verify that the 2 new\r\ntransforms are tagged as
managed\r\n\r\nImplements
https://github.com/elastic/security-team/issues/10608\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"a372162cf6f7ed88ded984f4501895d4cd88d047","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","Theme:
entity_analytics","Feature:Entity Analytics","Team:Entity
Analytics","8.16 candidate"],"title":"[Entity Analytics] Ensuring
definition transforms are
managed","number":193408,"url":"https://github.com/elastic/kibana/pull/193408","mergeCommit":{"message":"[Entity
Analytics] Ensuring definition transforms are managed (#193408)\n\n##
Summary\r\n\r\nThis PR adds the `managed` flag to the entity definitions
so that the\r\ngenerated transforms are tagged as such.\r\n\r\n### How
to test\r\n\r\n1. Add `EntityStoreEnabled` feature flag to your
`kibana.dev.yml`\r\n2. Call `POST kbn:/api/entity_store/engines/<user |
host>/init` with an\r\nempty (`{}`) body.\r\n3. Go to `Stack Management
> Transforms` and verify that the 2 new\r\ntransforms are tagged as
managed\r\n\r\nImplements
https://github.com/elastic/security-team/issues/10608\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"a372162cf6f7ed88ded984f4501895d4cd88d047"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193408","number":193408,"mergeCommit":{"message":"[Entity
Analytics] Ensuring definition transforms are managed (#193408)\n\n##
Summary\r\n\r\nThis PR adds the `managed` flag to the entity definitions
so that the\r\ngenerated transforms are tagged as such.\r\n\r\n### How
to test\r\n\r\n1. Add `EntityStoreEnabled` feature flag to your
`kibana.dev.yml`\r\n2. Call `POST kbn:/api/entity_store/engines/<user |
host>/init` with an\r\nempty (`{}`) body.\r\n3. Go to `Stack Management
> Transforms` and verify that the 2 new\r\ntransforms are tagged as
managed\r\n\r\nImplements
https://github.com/elastic/security-team/issues/10608\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"a372162cf6f7ed88ded984f4501895d4cd88d047"}}]}]
BACKPORT-->

Co-authored-by: Tiago Vila Verde <[email protected]>
  • Loading branch information
kibanamachine and tiansivive authored Sep 23, 2024
1 parent 7ceb68f commit b01b38a
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 b01b38a

Please sign in to comment.