Commit b2e3975
# Backport
This will backport the following commits from `main` to `9.4`:
- [chore: lazy-load server plugin modules (kibana-security)
(#266614)](#266614)
<!--- Backport version: 9.6.6 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Alejandro Fernández
Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2026-04-30T14:28:34Z","message":"chore:
lazy-load server plugin modules (kibana-security) (#266614)\n\n##
Summary\n\nLazy-load server plugin implementations via `await
import('./plugin')`\n(and related entrypoint adjustments) from
`server/index.ts`, consistent\nwith
https://github.com/elastic/kibana/pull/170856.\n\nThe migration in
#170856 reduced **startup time by ~4 seconds** in\nmeasured scenarios.
**Memory savings were not quantified but are\nexpected.**\n\n##
CODEOWNERS\n\n- `examples/eso_model_version_example` →
@elastic/kibana-security\n- `packages/kbn-mock-idp-plugin` →
@elastic/kibana-security\n\n## Follow-up\n\n-
#171080 — add an ESLint rule\nso
new plugins follow this pattern.\n\n---\n\n**Disclaimer:** This PR was
prepared with AI assistance (Cursor /\nClaude); please review
thoroughly.","sha":"29dbe1df7a1b0b9dfca7371436eff6bf28c1dae7","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","v9.4.0","v9.5.0"],"title":"chore:
lazy-load server plugin modules
(kibana-security)","number":266614,"url":"https://github.com/elastic/kibana/pull/266614","mergeCommit":{"message":"chore:
lazy-load server plugin modules (kibana-security) (#266614)\n\n##
Summary\n\nLazy-load server plugin implementations via `await
import('./plugin')`\n(and related entrypoint adjustments) from
`server/index.ts`, consistent\nwith
https://github.com/elastic/kibana/pull/170856.\n\nThe migration in
#170856 reduced **startup time by ~4 seconds** in\nmeasured scenarios.
**Memory savings were not quantified but are\nexpected.**\n\n##
CODEOWNERS\n\n- `examples/eso_model_version_example` →
@elastic/kibana-security\n- `packages/kbn-mock-idp-plugin` →
@elastic/kibana-security\n\n## Follow-up\n\n-
#171080 — add an ESLint rule\nso
new plugins follow this pattern.\n\n---\n\n**Disclaimer:** This PR was
prepared with AI assistance (Cursor /\nClaude); please review
thoroughly.","sha":"29dbe1df7a1b0b9dfca7371436eff6bf28c1dae7"}},"sourceBranch":"main","suggestedTargetBranches":["9.4"],"targetPullRequestStates":[{"branch":"9.4","label":"v9.4.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/266614","number":266614,"mergeCommit":{"message":"chore:
lazy-load server plugin modules (kibana-security) (#266614)\n\n##
Summary\n\nLazy-load server plugin implementations via `await
import('./plugin')`\n(and related entrypoint adjustments) from
`server/index.ts`, consistent\nwith
https://github.com/elastic/kibana/pull/170856.\n\nThe migration in
#170856 reduced **startup time by ~4 seconds** in\nmeasured scenarios.
**Memory savings were not quantified but are\nexpected.**\n\n##
CODEOWNERS\n\n- `examples/eso_model_version_example` →
@elastic/kibana-security\n- `packages/kbn-mock-idp-plugin` →
@elastic/kibana-security\n\n## Follow-up\n\n-
#171080 — add an ESLint rule\nso
new plugins follow this pattern.\n\n---\n\n**Disclaimer:** This PR was
prepared with AI assistance (Cursor /\nClaude); please review
thoroughly.","sha":"29dbe1df7a1b0b9dfca7371436eff6bf28c1dae7"}}]}]
BACKPORT-->
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
1 parent 5f563d5 commit b2e3975
4 files changed
Lines changed: 13 additions & 3 deletions
File tree
- examples/eso_model_version_example/server
- packages/kbn-mock-idp-plugin
- server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
0 commit comments