Skip to content

Conversation

@paul-tavares
Copy link
Contributor

Summary

Note

This change is for Scripts Library feature which is currently behind feature flag responseActionsScriptLibraryManagement

  • Adds the following additional fields to a Script document:
    • fileName - the name of the file that was uploaded
    • fileSize - size of file in bytes
    • fileHash - replaces existing hash property
  • Some additional internal changes to better manager scripts and associated file - we now store the Script entry ID along with the file and also store the File ID in the Script Entry sot hat we have proper cross references

New output with file related fields:

{
  "data": {
    "id": "ed093e83-074f-42d0-96e7-ce0370e429cd",
    "name": "aaaaa my script",
    "platform": [
      "windows"
    ],
    "fileName": "scripts_library_test_file.sh",
    "fileSize": 83,
    "fileHash": "abf573681eb54aac5e05e35bf186d4d31abe45ecf242461490523f11d2a8fbb8",
    "downloadUri": "/api/endpoint/scripts_library/ed093e83-074f-42d0-96e7-ce0370e429cd/download",
    "requiresInput": false,
    "createdBy": "elastic",
    "updatedBy": "elastic",
    "createdAt": "2025-12-04T15:57:10.742Z",
    "updatedAt": "2025-12-04T15:57:10.742Z",
    "version": "WzEwLDFd"
  }
}

Checklist

@paul-tavares paul-tavares self-assigned this Dec 4, 2025
@paul-tavares paul-tavares added release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution backport:version Backport to applied version labels v9.4.0 labels Dec 4, 2025
@paul-tavares paul-tavares force-pushed the task/olm-14881-add-additional-script-properties branch from f6ff297 to 07bb07c Compare December 5, 2025 21:31
@paul-tavares paul-tavares marked this pull request as ready for review December 5, 2025 21:31
@paul-tavares paul-tavares requested a review from a team as a code owner December 5, 2025 21:31
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-defend-workflows (Team:Defend Workflows)

@elastic-vault-github-plugin-prod elastic-vault-github-plugin-prod bot requested a review from a team as a code owner December 5, 2025 22:08
Copy link
Contributor

@florent-leborgne florent-leborgne left a comment

Choose a reason for hiding this comment

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

LGTM from a docs perspective

Copy link
Member

@ashokaditya ashokaditya left a comment

Choose a reason for hiding this comment

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

Thanks for the update. I tested it out and works as expected.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @paul-tavares

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants