-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Saved Object Mapping for Entity Source Sync Configuration #219680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
CAWilson94
merged 69 commits into
elastic:main
from
CAWilson94:ea-12283-monitoring-entity-source-config
Jun 5, 2025
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
5596af3
saved object for engine monitoring config, type started WiP
CAWilson94 990132a
add all schema items to SOMapping for SavedObjectsTyoe
CAWilson94 2bc807b
PR comments addressed: savedObjectMapping initial pass
CAWilson94 e4c5383
matchers, dynamic false to stop uncontrolled field additions
CAWilson94 25e346f
schema for monitoring eneity source; descriptor client for savedObject
CAWilson94 6a17bac
typo, add SO to saved objectsin secsol server
CAWilson94 1253a07
schema updated - removed detectRemovals, matcher leafs all array type…
CAWilson94 4771fde
remove list endpoint, not required
CAWilson94 6bd8d77
fields and values string to arrays
CAWilson94 44c176f
data client jest test - WiP issues with joi locally, testing buildkit…
CAWilson94 bf92e49
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 ea6ed20
[CI] Auto-commit changed files from 'node scripts/check_mappings_upda…
kibanamachine 9f61b4a
Update x-pack/solutions/security/plugins/security_solution/server/lib…
CAWilson94 681d3f5
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine 23567cd
Merge remote-tracking branch 'origin/main' into ea-12283-monitoring-e…
CAWilson94 a2a72ab
monitoring entity source data client tests (unit) updated, all passing)
CAWilson94 82b13e8
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 99a9843
Update packages/kbn-check-mappings-update-cli/current_mappings.json
CAWilson94 9d21e44
Update packages/kbn-check-mappings-update-cli/current_fields.json
CAWilson94 dc02b6e
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine b954470
update typename to match doc spec
CAWilson94 72d9ec4
update monitoring entity source sync to just source - naming data client
CAWilson94 aa4e5a7
update import
CAWilson94 fa605a2
update naming
CAWilson94 d47399d
fix naming from sync - entity source only
CAWilson94 d722cd8
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 51d3a70
Update packages/kbn-check-mappings-update-cli/current_mappings.json
CAWilson94 1c21320
remove unused function
CAWilson94 3f4cf81
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine e55d087
Update monitoring routes to use Security Solution context instead of …
CAWilson94 0a3ce14
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine bb34621
Increment saved object types counter
CAWilson94 dd1fc6b
add monitoringDataClient to request_context
CAWilson94 08e91ae
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 82640da
[CI] Auto-commit changed files from 'node scripts/jest_integration -u…
kibanamachine f5ff787
update exported member of interface
CAWilson94 299e469
export interface for monitoringEntitySourceDescriptor
CAWilson94 514bd3e
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 c9ad81f
add registered type to so registration test
CAWilson94 08c50e8
update auth snapshot testing for FTR
CAWilson94 1d0365b
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 2734e42
reverted experimental features mistaken update; integrationName now s…
CAWilson94 56421dc
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 f4e2146
remove the detectRemovals mapping in schema - updated on design spec
CAWilson94 bd56ba7
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine cfe73c0
update mappings version for saved object: changing integrationName to…
CAWilson94 f0f126d
formatting
CAWilson94 ed55f03
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 606e74d
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 f9701e7
mappings changed index to dynamic for objects, removed index under ma…
CAWilson94 aa89ae8
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 fd52407
update saved objects count
CAWilson94 59a5312
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 f00f4d0
[CI] Auto-commit changed files from 'node scripts/jest_integration -u…
kibanamachine 1efef05
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 0f23d39
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 1dc32ca
matchers reverted to specific properties
CAWilson94 5313ebb
remove unused mappings addition
CAWilson94 6332210
[CI] Auto-commit changed files from 'node scripts/jest_integration -u…
kibanamachine ba4646d
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine 25e005c
dynamic false added - index false out
CAWilson94 d5e1b93
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 21b3e4a
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 a364ec8
Remove index pattern - don't need to query this.
CAWilson94 23fec8f
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 6cdf28c
Updated matchers for non searchable with kibana core guidance
CAWilson94 616ff78
saved objects count update
CAWilson94 cd27928
Merge branch 'main' into ea-12283-monitoring-entity-source-config
CAWilson94 7d11fa7
[CI] Auto-commit changed files from 'node scripts/jest_integration -u…
kibanamachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
55 changes: 55 additions & 0 deletions
55
...y_analytics/privilege_monitoring/monitoring_entity_source/monitoring_entity_source.gen.ts
This file contains hidden or 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,55 @@ | ||
| /* | ||
| * 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. | ||
| */ | ||
|
|
||
| /* | ||
| * NOTICE: Do not edit this file manually. | ||
| * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. | ||
| * | ||
| * info: | ||
| * title: Monitoring Entity Source Schema | ||
| * version: 1 | ||
| */ | ||
|
|
||
| import { z } from '@kbn/zod'; | ||
|
|
||
| export type MonitoringEntitySourceDescriptor = z.infer<typeof MonitoringEntitySourceDescriptor>; | ||
| export const MonitoringEntitySourceDescriptor = z.object({ | ||
| type: z.string(), | ||
| name: z.string(), | ||
| managed: z.boolean().optional(), | ||
| indexPattern: z.string().optional(), | ||
| enabled: z.boolean().optional(), | ||
| error: z.string().optional(), | ||
| integrationName: z.string().optional(), | ||
| matchers: z | ||
| .array( | ||
| z.object({ | ||
| fields: z.array(z.string()), | ||
| values: z.array(z.string()), | ||
| }) | ||
| ) | ||
| .optional(), | ||
| filter: z.object({}).optional(), | ||
| }); | ||
|
|
||
| export type MonitoringEntitySourceResponse = z.infer<typeof MonitoringEntitySourceResponse>; | ||
| export const MonitoringEntitySourceResponse = z.object({ | ||
|
CAWilson94 marked this conversation as resolved.
|
||
| id: z.string().optional(), | ||
| name: z.string().optional(), | ||
| type: z.string().optional(), | ||
| indexPattern: z.string().optional(), | ||
| integrationName: z.string().optional(), | ||
| enabled: z.boolean().optional(), | ||
| matchers: z | ||
| .array( | ||
| z.object({ | ||
| fields: z.array(z.string()), | ||
| values: z.array(z.string()), | ||
| }) | ||
| ) | ||
| .optional(), | ||
| }); | ||
145 changes: 145 additions & 0 deletions
145
...lytics/privilege_monitoring/monitoring_entity_source/monitoring_entity_source.schema.yaml
This file contains hidden or 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,145 @@ | ||
| openapi: 3.0.0 | ||
| info: | ||
| title: Monitoring Entity Source Schema | ||
| description: Schema for managing entity source configurations in the monitoring system. | ||
| version: "1" | ||
|
|
||
| paths: | ||
| /api/entity_analytics/monitoring/entity_source: | ||
| post: | ||
| operationId: createEntitySource | ||
| summary: Create a new entity source configuration | ||
| requestBody: | ||
| required: true | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "#/components/schemas/MonitoringEntitySourceDescriptor" | ||
| responses: | ||
| "200": | ||
| description: Entity source created successfully | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "#/components/schemas/MonitoringEntitySourceResponse" | ||
|
|
||
| /api/entity_analytics/monitoring/entity_source/{id}: | ||
|
CAWilson94 marked this conversation as resolved.
|
||
| get: | ||
| operationId: getEntitySource | ||
| summary: Get an entity source configuration by ID | ||
| parameters: | ||
| - name: id | ||
| in: path | ||
| required: true | ||
| schema: | ||
| type: string | ||
| responses: | ||
| "200": | ||
| description: Entity source details retrieved | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "#/components/schemas/MonitoringEntitySourceResponse" | ||
|
|
||
| put: | ||
| operationId: updateEntitySource | ||
| summary: Update an entity source configuration | ||
| parameters: | ||
| - name: id | ||
| in: path | ||
| required: true | ||
| schema: | ||
| type: string | ||
| requestBody: | ||
| required: true | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "#/components/schemas/MonitoringEntitySourceDescriptor" | ||
| responses: | ||
| "200": | ||
| description: Entity source updated successfully | ||
|
|
||
| delete: | ||
| operationId: deleteEntitySource | ||
| summary: Delete an entity source configuration | ||
| parameters: | ||
| - name: id | ||
| in: path | ||
| required: true | ||
| schema: | ||
| type: string | ||
| responses: | ||
| "200": | ||
| description: Entity source deleted successfully | ||
|
|
||
| components: | ||
| schemas: | ||
| MonitoringEntitySourceDescriptor: | ||
| type: object | ||
| required: [type, name] | ||
| properties: | ||
| type: | ||
| type: string | ||
| name: | ||
| type: string | ||
| managed: | ||
| type: boolean | ||
| indexPattern: | ||
| type: string | ||
| enabled: | ||
| type: boolean | ||
| error: | ||
| type: string | ||
| integrationName: | ||
| type: string | ||
| matchers: | ||
| type: array | ||
| items: | ||
| type: object | ||
| required: | ||
| - fields | ||
| - values | ||
| properties: | ||
| fields: | ||
| type: array | ||
| items: | ||
| type: string | ||
| values: | ||
| type: array | ||
| items: | ||
| type: string | ||
| filter: | ||
| type: object | ||
|
|
||
| MonitoringEntitySourceResponse: | ||
| type: object | ||
| properties: | ||
| id: | ||
| type: string | ||
| name: | ||
| type: string | ||
| type: | ||
| type: string | ||
| indexPattern: | ||
| type: string | ||
| integrationName: | ||
| type: string | ||
| enabled: | ||
| type: boolean | ||
| matchers: | ||
| type: array | ||
| items: | ||
| type: object | ||
| required: | ||
| - fields | ||
| - values | ||
| properties: | ||
| fields: | ||
| type: array | ||
| items: | ||
| type: string | ||
| values: | ||
| type: array | ||
| items: | ||
| type: string | ||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.