Skip to content

[FSH] Dropped unnecessary fs persistence for synthetics project code#244338

Merged
elena-shostak merged 14 commits intoelastic:mainfrom
elena-shostak:239385-fs-usage-adm-zip
Dec 8, 2025
Merged

[FSH] Dropped unnecessary fs persistence for synthetics project code#244338
elena-shostak merged 14 commits intoelastic:mainfrom
elena-shostak:239385-fs-usage-adm-zip

Conversation

@elena-shostak
Copy link
Copy Markdown
Contributor

@elena-shostak elena-shostak commented Nov 26, 2025

Summary

Dropped unnecessary fs persistence for synthetics project code.

Relates: #239385

@elena-shostak elena-shostak added Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// release_note:skip Skip the PR/issue when compiling release notes Feature:Hardening Harding of Kibana from a security perspective backport:version Backport to applied version labels v8.19.8 v9.2.2 v9.1.8 v9.3.0 labels Nov 26, 2025
@elena-shostak elena-shostak changed the title [FSH] Migrated fs usage to kbn/fs for synthetics project code [FSH] Dropped unnecessary fs persistence for synthetics project code. Nov 28, 2025
Comment on lines -23 to -25
const pathToZip = generateTempPath();
await writeFile(pathToZip, decoded);
const zip = new AdmZip(pathToZip);
Copy link
Copy Markdown
Contributor Author

@elena-shostak elena-shostak Nov 28, 2025

Choose a reason for hiding this comment

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

Note

In scope of FSH initiative we wanted to migrate fs usage to the @kbn/fs package. However, I've noticed that AdmZip directly accepts Buffer, so it seems there is no need in persistence at all

@elena-shostak elena-shostak marked this pull request as ready for review November 28, 2025 11:11
@elena-shostak elena-shostak requested a review from a team as a code owner November 28, 2025 11:11
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-security (Team:Security)

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@elena-shostak elena-shostak changed the title [FSH] Dropped unnecessary fs persistence for synthetics project code. [FSH] Dropped unnecessary fs persistence for synthetics project code Dec 8, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #143 / Dataset Quality Dataset quality alerting User cannot create rules "before all" hook for "page does not show create rule button"

Metrics [docs]

✅ unchanged

History

Copy link
Copy Markdown
Contributor

@kdelemme kdelemme left a comment

Choose a reason for hiding this comment

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

@elena-shostak elena-shostak merged commit 5b3dcf0 into elastic:main Dec 8, 2025
12 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.1, 9.2

https://github.com/elastic/kibana/actions/runs/20030879242

kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Dec 8, 2025
elastic#244338)

## Summary

Dropped unnecessary `fs` persistence for synthetics project code.

__Relates: https://github.com/elastic/kibana/issues/239385__

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 5b3dcf0)
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Dec 8, 2025
elastic#244338)

## Summary

Dropped unnecessary `fs` persistence for synthetics project code.

__Relates: https://github.com/elastic/kibana/issues/239385__

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 5b3dcf0)
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Dec 8, 2025
elastic#244338)

## Summary

Dropped unnecessary `fs` persistence for synthetics project code.

__Relates: https://github.com/elastic/kibana/issues/239385__

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 5b3dcf0)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1
9.2

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Dec 8, 2025
…ct code (#244338) (#245531)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[FSH] Dropped unnecessary `fs` persistence for synthetics project
code (#244338)](#244338)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Elena
Shostak","email":"165678770+elena-shostak@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-12-08T14:07:15Z","message":"[FSH]
Dropped unnecessary `fs` persistence for synthetics project code
(#244338)\n\n## Summary\n\nDropped unnecessary `fs` persistence for
synthetics project code.\n\n__Relates:
https://github.com/elastic/kibana/issues/239385__\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5b3dcf04d6613852e95c5356dafc8de42021d688","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","release_note:skip","Feature:Hardening","backport:version","v9.3.0","v8.19.8","v9.2.2","v9.1.8","Team:obs-ux-management"],"title":"[FSH]
Dropped unnecessary `fs` persistence for synthetics project
code","number":244338,"url":"https://github.com/elastic/kibana/pull/244338","mergeCommit":{"message":"[FSH]
Dropped unnecessary `fs` persistence for synthetics project code
(#244338)\n\n## Summary\n\nDropped unnecessary `fs` persistence for
synthetics project code.\n\n__Relates:
https://github.com/elastic/kibana/issues/239385__\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5b3dcf04d6613852e95c5356dafc8de42021d688"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.2","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/244338","number":244338,"mergeCommit":{"message":"[FSH]
Dropped unnecessary `fs` persistence for synthetics project code
(#244338)\n\n## Summary\n\nDropped unnecessary `fs` persistence for
synthetics project code.\n\n__Relates:
https://github.com/elastic/kibana/issues/239385__\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5b3dcf04d6613852e95c5356dafc8de42021d688"}},{"branch":"8.19","label":"v8.19.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.2","label":"v9.2.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Elena Shostak <165678770+elena-shostak@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Dec 8, 2025
…ect code (#244338) (#245529)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[FSH] Dropped unnecessary `fs` persistence for synthetics project
code (#244338)](#244338)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Elena
Shostak","email":"165678770+elena-shostak@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-12-08T14:07:15Z","message":"[FSH]
Dropped unnecessary `fs` persistence for synthetics project code
(#244338)\n\n## Summary\n\nDropped unnecessary `fs` persistence for
synthetics project code.\n\n__Relates:
https://github.com/elastic/kibana/issues/239385__\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5b3dcf04d6613852e95c5356dafc8de42021d688","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","release_note:skip","Feature:Hardening","backport:version","v9.3.0","v8.19.8","v9.2.2","v9.1.8","Team:obs-ux-management"],"title":"[FSH]
Dropped unnecessary `fs` persistence for synthetics project
code","number":244338,"url":"https://github.com/elastic/kibana/pull/244338","mergeCommit":{"message":"[FSH]
Dropped unnecessary `fs` persistence for synthetics project code
(#244338)\n\n## Summary\n\nDropped unnecessary `fs` persistence for
synthetics project code.\n\n__Relates:
https://github.com/elastic/kibana/issues/239385__\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5b3dcf04d6613852e95c5356dafc8de42021d688"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.2","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/244338","number":244338,"mergeCommit":{"message":"[FSH]
Dropped unnecessary `fs` persistence for synthetics project code
(#244338)\n\n## Summary\n\nDropped unnecessary `fs` persistence for
synthetics project code.\n\n__Relates:
https://github.com/elastic/kibana/issues/239385__\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5b3dcf04d6613852e95c5356dafc8de42021d688"}},{"branch":"8.19","label":"v8.19.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.2","label":"v9.2.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Elena Shostak <165678770+elena-shostak@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Dec 8, 2025
…ct code (#244338) (#245530)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[FSH] Dropped unnecessary `fs` persistence for synthetics project
code (#244338)](#244338)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Elena
Shostak","email":"165678770+elena-shostak@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-12-08T14:07:15Z","message":"[FSH]
Dropped unnecessary `fs` persistence for synthetics project code
(#244338)\n\n## Summary\n\nDropped unnecessary `fs` persistence for
synthetics project code.\n\n__Relates:
https://github.com/elastic/kibana/issues/239385__\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5b3dcf04d6613852e95c5356dafc8de42021d688","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","release_note:skip","Feature:Hardening","backport:version","v9.3.0","v8.19.8","v9.2.2","v9.1.8","Team:obs-ux-management"],"title":"[FSH]
Dropped unnecessary `fs` persistence for synthetics project
code","number":244338,"url":"https://github.com/elastic/kibana/pull/244338","mergeCommit":{"message":"[FSH]
Dropped unnecessary `fs` persistence for synthetics project code
(#244338)\n\n## Summary\n\nDropped unnecessary `fs` persistence for
synthetics project code.\n\n__Relates:
https://github.com/elastic/kibana/issues/239385__\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5b3dcf04d6613852e95c5356dafc8de42021d688"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.2","9.1"],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/244338","number":244338,"mergeCommit":{"message":"[FSH]
Dropped unnecessary `fs` persistence for synthetics project code
(#244338)\n\n## Summary\n\nDropped unnecessary `fs` persistence for
synthetics project code.\n\n__Relates:
https://github.com/elastic/kibana/issues/239385__\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"5b3dcf04d6613852e95c5356dafc8de42021d688"}},{"branch":"8.19","label":"v8.19.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.2","label":"v9.2.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.1","label":"v9.1.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Elena Shostak <165678770+elena-shostak@users.noreply.github.com>
mbondyra added a commit to mbondyra/kibana that referenced this pull request Dec 8, 2025
* commit '6647f813c9fa03ac0378e3d4756246e8dc4b4c76': (33 commits)
  [Detection Engine] Extracts Rules/Alerts/Exceptions permission to new Rules feature privileges (elastic#239634)
  [Agent Builder] Add Intro Tour (elastic#245551)
  Add datastream lifecycle support to indices metadata (elastic#245548)
  [Serverless] Update preconfigured connectors (elastic#245445)
  [Metrics][Discover] Discover to prefer line chars for time series data (elastic#244595)
  Update dependency @elastic/ebt to ^1.4.1 (main) (elastic#241629)
  [One Workflow] fix: request bodies with oneof schemas (`kibana.SetAlertsStatus`, etc) (elastic#245344)
  Update dependency ai to v5 (elastic#244675)
  Fix Discover trace waterfall behavior with duplicate spans (elastic#244984)
  [FSH] Migrated fs usage to kbn/fs for sample ingest (elastic#244163)
  Streamlang: Unskip type coercion test (elastic#245519)
  [Response Ops][Reporting] Fixing error in calculating delay value between retries (elastic#245431)
  Add TopNavMenuBeta to navigation plugin (elastic#243578)
  [scout] support custom servers configuration (elastic#244306)
  [Fleet] Run agentless background sync without dry run (elastic#245286)
  Fix Change Password Flaky Test (elastic#245443)
  Add new gap fill status for rules (elastic#242595)
  [Kibana Search] Move SLOs higher up in search results (elastic#245518)
  feat(slo): introduce find SLO instances internal route (elastic#245333)
  [FSH] Dropped unnecessary `fs` persistence for synthetics project code (elastic#244338)
  ...
JordanSh pushed a commit to JordanSh/kibana that referenced this pull request Dec 9, 2025
elastic#244338)

## Summary

Dropped unnecessary `fs` persistence for synthetics project code.

__Relates: https://github.com/elastic/kibana/issues/239385__

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
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 Feature:Hardening Harding of Kibana from a security perspective release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-management Team:Security Platform Security: Auth, Users, Roles, Spaces, Audit Logging, etc t// v8.19.8 v8.19.9 v9.1.8 v9.1.9 v9.2.2 v9.2.3 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants