forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[eem] prevent customization of builtin definitions (elastic#192593)
We allow users to define `@platform` and `@custom` ingest pipelines/index templates to customize entity definitions output. This change prevents builtin definitions from being customized
- Loading branch information
Showing
15 changed files
with
559 additions
and
82 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...bservability_solution/entity_manager/server/lib/entities/helpers/is_builtin_definition.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { EntityDefinition } from '@kbn/entities-schema'; | ||
import { BUILT_IN_ID_PREFIX } from '../built_in'; | ||
|
||
export function isBuiltinDefinition(definition: EntityDefinition) { | ||
return definition.id.startsWith(BUILT_IN_ID_PREFIX); | ||
} |
153 changes: 152 additions & 1 deletion
153
...erver/lib/entities/ingest_pipeline/__snapshots__/generate_history_processors.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
119 changes: 118 additions & 1 deletion
119
...server/lib/entities/ingest_pipeline/__snapshots__/generate_latest_processors.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.