Skip to content

[Entity Store v2] Add helpers required for ID based risk scoring#253826

Merged
hop-dev merged 5 commits intoelastic:mainfrom
hop-dev:entity-store-v2-risk-scoring-changes
Feb 19, 2026
Merged

[Entity Store v2] Add helpers required for ID based risk scoring#253826
hop-dev merged 5 commits intoelastic:mainfrom
hop-dev:entity-store-v2-risk-scoring-changes

Conversation

@hop-dev
Copy link
Copy Markdown
Contributor

@hop-dev hop-dev commented Feb 18, 2026

Summary

These are the utils I added as part of developing ID based risk scoring (the PR for that is not ready yet).

  • Added getEuidPainlessRuntimeMapping(entityType) for a ready-to-use runtime_mappings field

  • Added getEuidSourceFields(entityType) to expose:

    • requiresOneOf - minimum EUID field requirements to allow filtering down docs to just those with the right ID fields
    • deduped identitySourceFields used to build EUIDs - allows maintainers to bring back the ID fields needed to upsert an entity
  • Updated unit tests & the Scout API painless translation test to use the new runtime mapping helper directly

Comment thread x-pack/solutions/security/plugins/entity_store/common/index.ts Outdated
@hop-dev hop-dev self-assigned this Feb 19, 2026
@hop-dev hop-dev added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:Entity Analytics Security Entity Analytics Team Team:Core Analysis Security Solution labels Feb 19, 2026
@hop-dev hop-dev marked this pull request as ready for review February 19, 2026 09:44
@hop-dev hop-dev requested a review from a team as a code owner February 19, 2026 09:44
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/security-entity-analytics (Team:Entity Analytics)

@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Scout: [ observability / observability ] plugin / local-serverless-observability_complete - Alert Details Page - should show an error when the alert does not exist

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
entityStore 32 33 +1

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
entityStore 26 31 +5
Unknown metric groups

API count

id before after diff
entityStore 29 36 +7

History

cc @hop-dev

@hop-dev hop-dev merged commit 79e44f3 into elastic:main Feb 19, 2026
26 checks passed
@hop-dev hop-dev deleted the entity-store-v2-risk-scoring-changes branch February 19, 2026 11:41
ersin-erdal pushed a commit to ersin-erdal/kibana that referenced this pull request Feb 19, 2026
…stic#253826)

## Summary

These are the utils I added as part of developing ID based risk scoring
(the PR for that is not ready yet).

- Added `getEuidPainlessRuntimeMapping(entityType)` for a ready-to-use
runtime_mappings field
- Added `getEuidSourceFields(entityType)` to expose:
- `requiresOneOf` - minimum EUID field requirements to allow filtering
down docs to just those with the right ID fields
- deduped `identitySourceFields` used to build EUIDs - allows
maintainers to bring back the ID fields needed to upsert an entity

- Updated unit tests & the Scout API painless translation test to use
the new runtime mapping helper directly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Core Analysis Security Solution Team:Entity Analytics Security Entity Analytics Team v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants