Skip to content

[Entity Store] Store EUID Scripts#254515

Merged
romulets merged 5 commits intoelastic:mainfrom
romulets:entity-create/store-scripts
Feb 24, 2026
Merged

[Entity Store] Store EUID Scripts#254515
romulets merged 5 commits intoelastic:mainfrom
romulets:entity-create/store-scripts

Conversation

@romulets
Copy link
Copy Markdown
Member

@romulets romulets commented Feb 23, 2026

Summary

Create stored scripts on entity store creation to be used by ML jobs.

Test

Run kibana with entity store v2 enabled (via kibana.yaml or http call)

POST kbn:/internal/kibana/settings
{
  "changes": {
    "securitySolution:entityStoreEnableV2": true
  }
}

Open any security page or explicitly install the entity store

POST kbn:/internal/security/entity-store/install?apiVersion=2
{}

Check the result of

GET _cluster/state/metadata?filter_path=metadata.stored_scripts

@romulets romulets requested a review from a team as a code owner February 23, 2026 14:53
@romulets romulets self-assigned this Feb 23, 2026
@romulets romulets added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Feb 23, 2026
@romulets romulets linked an issue Feb 23, 2026 that may be closed by this pull request
@jmcarlock jmcarlock self-requested a review February 23, 2026 20:05
@jmcarlock
Copy link
Copy Markdown
Contributor

Hi @romulets , I tested this successfully locally.

After navigating to the machine learning page I confirmed the stored script was installed. Then I ran the ITP and all tests passed. I think this is good to go!

Copy link
Copy Markdown
Contributor

@chennn1990 chennn1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comments 🙏

Comment thread x-pack/solutions/security/plugins/entity_store/server/domain/asset_manager.ts Outdated
@romulets romulets enabled auto-merge (squash) February 24, 2026 08:47
@romulets romulets merged commit e3835f5 into elastic:main Feb 24, 2026
17 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @romulets

mbondyra added a commit to rgodfrey-elastic/kibana that referenced this pull request Feb 24, 2026
…ps-config-rebase

* commit 'f135f030951237c5e9b0251931441aee3121b31d': (163 commits)
  [CPS] Support data view requests and do not sanitize project_routing in data plugin/resolve indices  (elastic#253654)
  [One Workflow] Execute workflow from historical (elastic#253396)
  [streams][background tasks] gracefully handle non existing stream (elastic#254683)
  [Lens API] Waffle/Mosaic get green as a default color (elastic#254304)
  [Security Solution] Remove prebuilt rules customization callout on Rule Management page (elastic#254386)
  [Workflows] support passing attachments to run_agent step (elastic#251291)
  [One Discover][Logs UX] Update OpenTelemetry Semantic Conventions (elastic#254367)
  [kbn-es] Add --docker flag to yarn es snapshot (elastic#254306)
  [Workplace AI] Remove Data Source Config (elastic#254521)
  [Entity Store v2] Add CRUD API (elastic#252052)
  [CI] Increase type checking machine (elastic#254676)
  [main] Sync bundled packages with Package Storage (elastic#254232)
  Skip flaky test elastic#254625 (elastic#254662)
  Upgrade `@elastic/elasticsearch` to 9.3.1 (elastic#253660)
  [One Workflow] Migrate http step to new connector (elastic#249004)
  [Entity Store] Store EUID Scripts (elastic#254515)
  [APM] Fix Otel missing fields undefined errors (elastic#254271)
  [Console] Add support for documentation links on Serverless (elastic#254489)
  Create edit ILM flow (elastic#253393)
  [Agent Builder] Mid term: minimal recommended model set elastic#12875 (elastic#254560)
  ...
nreese pushed a commit to nreese/kibana that referenced this pull request Feb 25, 2026
## Summary

Create stored scripts on entity store creation to be used by ML jobs.

## Test

Run kibana with entity store v2 enabled (via `kibana.yaml` or http call)
```
POST kbn:/internal/kibana/settings
{
  "changes": {
    "securitySolution:entityStoreEnableV2": true
  }
}
```

Open any security page or explicitly install the entity store
```
POST kbn:/internal/security/entity-store/install?apiVersion=2
{}
```

Check the result of 
```
GET _cluster/state/metadata?filter_path=metadata.stored_scripts
```
qn895 pushed a commit to qn895/kibana that referenced this pull request Mar 11, 2026
## Summary

Create stored scripts on entity store creation to be used by ML jobs.

## Test

Run kibana with entity store v2 enabled (via `kibana.yaml` or http call)
```
POST kbn:/internal/kibana/settings
{
  "changes": {
    "securitySolution:entityStoreEnableV2": true
  }
}
```

Open any security page or explicitly install the entity store
```
POST kbn:/internal/security/entity-store/install?apiVersion=2
{}
```

Check the result of 
```
GET _cluster/state/metadata?filter_path=metadata.stored_scripts
```
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 v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ML Jobs Upgrade] Save stored script to be used by ML Jobs

6 participants