Commit graph

805 commits

Author SHA1 Message Date
Kibana Machine
22e3bc3fa8
[8.16] fix: [Analytics:Graph page]Dialog modal missing title from announcement (#217827) (#218420)
# Backport

This will backport the following commits from `main` to `8.16`:
- [fix: [Analytics:Graph page]Dialog modal missing title from
announcement (#217827)](https://github.com/elastic/kibana/pull/217827)

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

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

<!--BACKPORT [{"author":{"name":"Alexey
Antonov","email":"alexwizp@gmail.com"},"sourceCommit":{"committedDate":"2025-04-16T12:03:38Z","message":"fix:
[Analytics:Graph page]Dialog modal missing title from announcement
(#217827)\n\nCloses: #214760\n\n**Description**\nDialog modal, flyout,
field visible title should be announced for the\nusers, especially using
assistive technology to know what dialog modal,\nflyout opened, what
field is active and what is needed to enter in it.\n\n**Changes
made:**\n\n1. Set correct value for` aria-labelledby`
attr.","sha":"b91da375a3c965181e2b2ee6f899d42ee6dcc0f0","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Project:Accessibility","release_note:skip","backport:prev-major","v9.1.0"],"title":"fix:
[Analytics:Graph page]Dialog modal missing title from
announcement","number":217827,"url":"https://github.com/elastic/kibana/pull/217827","mergeCommit":{"message":"fix:
[Analytics:Graph page]Dialog modal missing title from announcement
(#217827)\n\nCloses: #214760\n\n**Description**\nDialog modal, flyout,
field visible title should be announced for the\nusers, especially using
assistive technology to know what dialog modal,\nflyout opened, what
field is active and what is needed to enter in it.\n\n**Changes
made:**\n\n1. Set correct value for` aria-labelledby`
attr.","sha":"b91da375a3c965181e2b2ee6f899d42ee6dcc0f0"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/217827","number":217827,"mergeCommit":{"message":"fix:
[Analytics:Graph page]Dialog modal missing title from announcement
(#217827)\n\nCloses: #214760\n\n**Description**\nDialog modal, flyout,
field visible title should be announced for the\nusers, especially using
assistive technology to know what dialog modal,\nflyout opened, what
field is active and what is needed to enter in it.\n\n**Changes
made:**\n\n1. Set correct value for` aria-labelledby`
attr.","sha":"b91da375a3c965181e2b2ee6f899d42ee6dcc0f0"}}]}] BACKPORT-->

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2025-04-16 16:09:41 +02:00
Kibana Machine
d3853f4789
[8.16] [SO migration] Move to previous step in update mappings wait when it fails with search_phase_execution_exception (#216693) (#217190)
# Backport

This will backport the following commits from `main` to `8.16`:
- [[SO migration] Move to previous step in update mappings wait when it
fails with search_phase_execution_exception
(#216693)](https://github.com/elastic/kibana/pull/216693)

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

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

<!--BACKPORT [{"author":{"name":"Jesus
Wahrman","email":"41008968+jesuswr@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-04-04T13:37:06Z","message":"[SO
migration] Move to previous step in update mappings wait when it fails
with search_phase_execution_exception (#216693)\n\n##
Summary\n\nResolves
https://github.com/elastic/kibana/issues/207096\n\nThis continues the
work in https://github.com/elastic/kibana/pull/213979\n\nSometimes ES
returns a 200 response containing an error field when we\nwait for the
update mappings task. This case wasn't being handled. This\nPR handles
that case, when we find a `search_phase_execution_exception`\nin the ES
response we return a retryable error that sends us back to the\nupdate
mappings state. It does it for both migration algorithms, the\npriority
is ZDT but seemed like a nice to have in both.\n\n### Checklist\n\nCheck
the PR satisfies following conditions. \n\nReviewers should verify this
PR satisfies this list as well.\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"49380143432b654cf1b849d8c77b3abc2fb3aeb4","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport:prev-major","backport:current-major","v9.1.0"],"title":"[SO
migration] Move to previous step in update mappings wait when it fails
with
search_phase_execution_exception","number":216693,"url":"https://github.com/elastic/kibana/pull/216693","mergeCommit":{"message":"[SO
migration] Move to previous step in update mappings wait when it fails
with search_phase_execution_exception (#216693)\n\n##
Summary\n\nResolves
https://github.com/elastic/kibana/issues/207096\n\nThis continues the
work in https://github.com/elastic/kibana/pull/213979\n\nSometimes ES
returns a 200 response containing an error field when we\nwait for the
update mappings task. This case wasn't being handled. This\nPR handles
that case, when we find a `search_phase_execution_exception`\nin the ES
response we return a retryable error that sends us back to the\nupdate
mappings state. It does it for both migration algorithms, the\npriority
is ZDT but seemed like a nice to have in both.\n\n### Checklist\n\nCheck
the PR satisfies following conditions. \n\nReviewers should verify this
PR satisfies this list as well.\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"49380143432b654cf1b849d8c77b3abc2fb3aeb4"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216693","number":216693,"mergeCommit":{"message":"[SO
migration] Move to previous step in update mappings wait when it fails
with search_phase_execution_exception (#216693)\n\n##
Summary\n\nResolves
https://github.com/elastic/kibana/issues/207096\n\nThis continues the
work in https://github.com/elastic/kibana/pull/213979\n\nSometimes ES
returns a 200 response containing an error field when we\nwait for the
update mappings task. This case wasn't being handled. This\nPR handles
that case, when we find a `search_phase_execution_exception`\nin the ES
response we return a retryable error that sends us back to the\nupdate
mappings state. It does it for both migration algorithms, the\npriority
is ZDT but seemed like a nice to have in both.\n\n### Checklist\n\nCheck
the PR satisfies following conditions. \n\nReviewers should verify this
PR satisfies this list as well.\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"49380143432b654cf1b849d8c77b3abc2fb3aeb4"}}]}]
BACKPORT-->

Co-authored-by: Jesus Wahrman <41008968+jesuswr@users.noreply.github.com>
2025-04-04 16:44:48 +01:00
Kibana Machine
520a8658d7
[8.16] Register resident set size and limit bytes metrics in APM (#215458) (#215613)
# Backport

This will backport the following commits from `main` to `8.16`:
- [Register resident set size and limit bytes metrics in APM
(#215458)](https://github.com/elastic/kibana/pull/215458)

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

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

<!--BACKPORT [{"author":{"name":"Jesus
Wahrman","email":"41008968+jesuswr@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-23T21:22:30Z","message":"Register
resident set size and limit bytes metrics in APM (#215458)\n\n##
Summary\n\nResolves
https://github.com/elastic/kibana-team/issues/1565\n\nRegister resident
set size and limit bytes metrics in APM.\n\n<img width=\"1614\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/d5f1caf5-da4f-4acd-a63f-2b5256a91307\"\n/>\n\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"04772fcc456aa6b03d9ecec540cc927c23c0dd9a","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport:prev-major","backport:current-major","v9.1.0"],"title":"Register
resident set size and limit bytes metrics in
APM","number":215458,"url":"https://github.com/elastic/kibana/pull/215458","mergeCommit":{"message":"Register
resident set size and limit bytes metrics in APM (#215458)\n\n##
Summary\n\nResolves
https://github.com/elastic/kibana-team/issues/1565\n\nRegister resident
set size and limit bytes metrics in APM.\n\n<img width=\"1614\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/d5f1caf5-da4f-4acd-a63f-2b5256a91307\"\n/>\n\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"04772fcc456aa6b03d9ecec540cc927c23c0dd9a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/215458","number":215458,"mergeCommit":{"message":"Register
resident set size and limit bytes metrics in APM (#215458)\n\n##
Summary\n\nResolves
https://github.com/elastic/kibana-team/issues/1565\n\nRegister resident
set size and limit bytes metrics in APM.\n\n<img width=\"1614\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/d5f1caf5-da4f-4acd-a63f-2b5256a91307\"\n/>\n\n\n###
Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers
should verify this PR satisfies this list as well.\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"04772fcc456aa6b03d9ecec540cc927c23c0dd9a"}}]}]
BACKPORT-->

Co-authored-by: Jesus Wahrman <41008968+jesuswr@users.noreply.github.com>
2025-03-24 01:16:56 +02:00
Alejandro Fernández Haro
8020063671
[8.16] [Feature Flags] ECS-compliant logger (#214231) (#214353)
# Backport

This will backport the following commits from `main` to `8.16`:
- [[Feature Flags] ECS-compliant logger
(#214231)](https://github.com/elastic/kibana/pull/214231)

<!--- 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":"2025-03-12T23:24:40Z","message":"[Feature
Flags] ECS-compliant logger (#214231)\n\n## Summary\n\nThe OpenFeature
clients receive a logger, but it logs errors like\n`log('something went
wrong', error)`. Our core logger then removes the\n`error.message` as it
prefers the message provided as the first\nargument.\n\nThis PR wraps
the logger to make sure that we handle this type of usage.\n\ncc
@pmuellr as he found out about this bug\n\n\n### Checklist\n\n- [x]
[Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"98986a86a1086d0047d60a14425920b3c5fbc343","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor","backport:prev-major","v9.1.0"],"title":"[Feature
Flags] ECS-compliant
logger","number":214231,"url":"https://github.com/elastic/kibana/pull/214231","mergeCommit":{"message":"[Feature
Flags] ECS-compliant logger (#214231)\n\n## Summary\n\nThe OpenFeature
clients receive a logger, but it logs errors like\n`log('something went
wrong', error)`. Our core logger then removes the\n`error.message` as it
prefers the message provided as the first\nargument.\n\nThis PR wraps
the logger to make sure that we handle this type of usage.\n\ncc
@pmuellr as he found out about this bug\n\n\n### Checklist\n\n- [x]
[Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"98986a86a1086d0047d60a14425920b3c5fbc343"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/214304","number":214304,"state":"MERGED","mergeCommit":{"sha":"fa04dc0e0536ced502e3eb8993aa7ba227f7299d","message":"[9.0]
[Feature Flags] ECS-compliant logger (#214231) (#214304)\n\n#
Backport\n\nThis will backport the following commits from `main` to
`9.0`:\n- [[Feature Flags] ECS-compliant
logger\n(#214231)](https://github.com/elastic/kibana/pull/214231)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Alejandro Fernández Haro
<alejandro.haro@elastic.co>"}},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214231","number":214231,"mergeCommit":{"message":"[Feature
Flags] ECS-compliant logger (#214231)\n\n## Summary\n\nThe OpenFeature
clients receive a logger, but it logs errors like\n`log('something went
wrong', error)`. Our core logger then removes the\n`error.message` as it
prefers the message provided as the first\nargument.\n\nThis PR wraps
the logger to make sure that we handle this type of usage.\n\ncc
@pmuellr as he found out about this bug\n\n\n### Checklist\n\n- [x]
[Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"98986a86a1086d0047d60a14425920b3c5fbc343"}}]}]
BACKPORT-->
2025-03-13 13:50:49 +00:00
Alejandro Fernández Haro
a17cb1c163
[8.16] [Feature Flags] Retry provider setup (#214200) (#214300)
# Backport

This will backport the following commits from `main` to `8.16`:
- [[Feature Flags] Retry provider setup
(#214200)](https://github.com/elastic/kibana/pull/214200)

<!--- 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":"2025-03-12T21:45:38Z","message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport:prev-minor","backport:prev-major","v9.1.0"],"title":"[Feature
Flags] Retry provider
setup","number":214200,"url":"https://github.com/elastic/kibana/pull/214200","mergeCommit":{"message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214200","number":214200,"mergeCommit":{"message":"[Feature
Flags] Retry provider setup (#214200)\n\n## Summary\n\nWe identified
that on some occasions, the Feature Flags provider times\nout when
setting up, and, since we don't restart the Kibana server, it\nnever
sets it up.\n\nThis PR adds a retry logic to try to set the provider in
case there's an\nerror.\n\ncc @pmuellr as he found out about this
bug\n\n### Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"1337c11ac3c4c94c828db52a9ab9768ccf9a1c45"}},{"url":"https://github.com/elastic/kibana/pull/214288","number":214288,"branch":"9.0","state":"OPEN"}]}]
BACKPORT-->
2025-03-13 11:30:18 +01:00
Kibana Machine
e1b00ef925
[8.16] Zdt retry on common failures (#213979) (#214068)
# Backport

This will backport the following commits from `main` to `8.16`:
- [Zdt retry on common failures
(#213979)](https://github.com/elastic/kibana/pull/213979)

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

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

<!--BACKPORT [{"author":{"name":"Jesus
Wahrman","email":"41008968+jesuswr@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-12T09:10:47Z","message":"Zdt
retry on common failures (#213979)\n\n## Summary\n\nresolves
https://github.com/elastic/kibana/issues/207096\n\nAdded a new handler
to `readWithPit`, `pickupUpdatedMappings` and\n`checkForUnknownDocs`.
This handler retries when it receives an error\nresponse including
`type: search_phase_execution_exception`.\n\n\n### Checklist\n\nCheck
the PR satisfies following conditions. \n\nReviewers should verify this
PR satisfies this list as well.\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"68b2bde0b032efb2fab3e8a30a7d5a9e0b601f7e","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Saved
Objects","release_note:skip","backport:prev-major","Epic:ZDTmigrations","v9.1.0"],"title":"Zdt
retry on common
failures","number":213979,"url":"https://github.com/elastic/kibana/pull/213979","mergeCommit":{"message":"Zdt
retry on common failures (#213979)\n\n## Summary\n\nresolves
https://github.com/elastic/kibana/issues/207096\n\nAdded a new handler
to `readWithPit`, `pickupUpdatedMappings` and\n`checkForUnknownDocs`.
This handler retries when it receives an error\nresponse including
`type: search_phase_execution_exception`.\n\n\n### Checklist\n\nCheck
the PR satisfies following conditions. \n\nReviewers should verify this
PR satisfies this list as well.\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"68b2bde0b032efb2fab3e8a30a7d5a9e0b601f7e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/213979","number":213979,"mergeCommit":{"message":"Zdt
retry on common failures (#213979)\n\n## Summary\n\nresolves
https://github.com/elastic/kibana/issues/207096\n\nAdded a new handler
to `readWithPit`, `pickupUpdatedMappings` and\n`checkForUnknownDocs`.
This handler retries when it receives an error\nresponse including
`type: search_phase_execution_exception`.\n\n\n### Checklist\n\nCheck
the PR satisfies following conditions. \n\nReviewers should verify this
PR satisfies this list as well.\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [x] The PR
description includes the appropriate Release Notes section,\nand the
correct `release_note:*` label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"68b2bde0b032efb2fab3e8a30a7d5a9e0b601f7e"}}]}]
BACKPORT-->

Co-authored-by: Jesus Wahrman <41008968+jesuswr@users.noreply.github.com>
2025-03-12 13:54:30 +01:00
Alejandro Fernández Haro
100fa88354
[8.16] Update lru-cache (main) (#206225) (#213948)
# Backport

This will backport the following commits from `main` to `8.16`:
- [Update lru-cache (main)
(#206225)](https://github.com/elastic/kibana/pull/206225)

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

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

<!--BACKPORT
[{"author":{"name":"elastic-renovate-prod[bot]","email":"174716857+elastic-renovate-prod[bot]@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-11T14:00:09Z","message":"Update
lru-cache (main) (#206225)\n\nThis PR contains the following
updates:\n\n| Package | Type | Update | Change |\n|---|---|---|---|\n|
@&#8203;types/lru-cache | devDependencies | major | [`^5.1.0`
->\n`^7.10.10`](https://renovatebot.com/diffs/npm/@types%2flru-cache/5.1.0/7.10.10)\n|\n|
[lru-cache](https://redirect.github.com/isaacs/node-lru-cache)
|\ndependencies | major | [`^4.1.5`
->\n`^11.0.2`](https://renovatebot.com/diffs/npm/lru-cache/4.1.5/11.0.2)
|\n\n---\n\n### Release Notes\n\n~Changelog~ _cringe lorg_ is
here:\nhttps://github.com/isaacs/node-lru-cache/blob/main/CHANGELOG.md\n\nTL;DR:\n*
Named export\n* Renamed some APIs (during
7.0):\nhttps://github.com/isaacs/node-lru-cache/blob/main/CHANGELOG.md#70---2022-02\n*
TS is embedded now, so `@types/lru-cache` are not needed.\n\nI'm
addressing all these changes locally and will release the PR
when\nfixed.\n\n<details>\n<summary>isaacs/node-lru-cache
(lru-cache)</summary>\n\n###\n[`v11.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.1...v11.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.1...v11.0.2)\n\n###\n[`v11.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.0...v11.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.0...v11.0.1)\n\n###\n[`v11.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.3...v11.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.3...v11.0.0)\n\n###\n[`v10.4.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.2...v10.4.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.2...v10.4.3)\n\n###\n[`v10.4.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.1...v10.4.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.1...v10.4.2)\n\n###\n[`v10.4.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.0...v10.4.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.0...v10.4.1)\n\n###\n[`v10.4.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.3.1...v10.4.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.3.1...v10.4.0)\n\n###\n[`v10.3.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.3.0...v10.3.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.3.0...v10.3.1)\n\n###\n[`v10.3.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.2...v10.3.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.2...v10.3.0)\n\n###\n[`v10.2.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.1...v10.2.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.1...v10.2.2)\n\n###\n[`v10.2.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.0...v10.2.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.0...v10.2.1)\n\n###\n[`v10.2.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.1.0...v10.2.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.1.0...v10.2.0)\n\n###\n[`v10.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.3...v10.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.3...v10.1.0)\n\n###\n[`v10.0.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.2...v10.0.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.2...v10.0.3)\n\n###\n[`v10.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.1...v10.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.1...v10.0.2)\n\n###\n[`v10.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.0...v10.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.0...v10.0.1)\n\n###\n[`v10.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.2...v10.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.2...v10.0.0)\n\n###\n[`v9.1.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.1...v9.1.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.1...v9.1.2)\n\n###\n[`v9.1.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.0...v9.1.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.0...v9.1.1)\n\n###\n[`v9.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.3...v9.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.3...v9.1.0)\n\n###\n[`v9.0.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.2...v9.0.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.2...v9.0.3)\n\n###\n[`v9.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.1...v9.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.1...v9.0.2)\n\n###\n[`v9.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.0...v9.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.0...v9.0.1)\n\n###\n[`v9.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.5...v9.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.5...v9.0.0)\n\n###\n[`v8.0.5`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.4...v8.0.5)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.4...v8.0.5)\n\n###\n[`v8.0.4`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.3...v8.0.4)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.3...v8.0.4)\n\n###\n[`v8.0.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.2...v8.0.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.2...v8.0.3)\n\n###\n[`v8.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.1...v8.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.1...v8.0.2)\n\n###\n[`v8.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.0...v8.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.0...v8.0.1)\n\n###\n[`v8.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.3...v8.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.3...v8.0.0)\n\n###\n[`v7.18.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.2...v7.18.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.2...v7.18.3)\n\n###\n[`v7.18.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.1...v7.18.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.1...v7.18.2)\n\n###\n[`v7.18.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.0...v7.18.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.0...v7.18.1)\n\n###\n[`v7.18.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.2...v7.18.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.2...v7.18.0)\n\n###\n[`v7.17.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.1...v7.17.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.1...v7.17.2)\n\n###\n[`v7.17.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.0...v7.17.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.0...v7.17.1)\n\n###\n[`v7.17.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.2...v7.17.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.2...v7.17.0)\n\n###\n[`v7.16.2`](https://redirect.github.com/isaacs/node-lru-cache/blob/HEAD/CHANGELOG.md#7162)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.1...v7.16.2)\n\n-
Fail fetch() promises when they are
aborted\n\n###\n[`v7.16.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.0...v7.16.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.0...v7.16.1)\n\n###\n[`v7.16.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.15.0...v7.16.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.15.0...v7.16.0)\n\n###\n[`v7.15.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.14.1...v7.15.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.14.1...v7.15.0)\n\n###\n[`v7.14.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.14.0...v7.14.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.14.0...v7.14.1)\n\n###\n[`v7.14.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.2...v7.14.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.2...v7.14.0)\n\n###\n[`v7.13.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.1...v7.13.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.1...v7.13.2)\n\n###\n[`v7.13.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.0...v7.13.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.0...v7.13.1)\n\n###\n[`v7.13.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.12.1...v7.13.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.12.1...v7.13.0)\n\n###\n[`v7.12.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.12.0...v7.12.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.12.0...v7.12.1)\n\n###\n[`v7.12.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.11.0...v7.12.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.11.0...v7.12.0)\n\n###\n[`v7.11.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.3...v7.11.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.3...v7.11.0)\n\n###\n[`v7.10.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.2...v7.10.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.2...v7.10.3)\n\n###\n[`v7.10.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.1...v7.10.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.1...v7.10.2)\n\n###\n[`v7.10.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.0...v7.10.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.0...v7.10.1)\n\n###\n[`v7.10.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.9.1...v7.10.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.9.1...v7.10.0)\n\n###\n[`v7.9.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.9.0...v7.9.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.9.0...v7.9.1)\n\n###\n[`v7.9.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.2...v7.9.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.2...v7.9.0)\n\n###\n[`v7.8.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.1...v7.8.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.1...v7.8.2)\n\n###\n[`v7.8.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.0...v7.8.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.0...v7.8.1)\n\n###\n[`v7.8.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.4...v7.8.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.4...v7.8.0)\n\n###\n[`v7.7.4`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.3...v7.7.4)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.3...v7.7.4)\n\n###\n[`v7.7.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.2...v7.7.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.2...v7.7.3)\n\n###\n[`v7.7.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.1...v7.7.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.1...v7.7.2)\n\n###\n[`v7.7.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.0...v7.7.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.0...v7.7.1)\n\n###\n[`v7.7.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.6.1...v7.7.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.6.1...v7.7.0)\n\n###\n[`v7.6.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.6.0...v7.6.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.6.0...v7.6.1)\n\n###\n[`v7.6.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.2...v7.6.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.2...v7.6.0)\n\n###\n[`v7.5.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.1...v7.5.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.1...v7.5.2)\n\n###\n[`v7.5.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.0...v7.5.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.0...v7.5.1)\n\n###\n[`v7.5.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.5...v7.5.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.5...v7.5.0)\n\n###\n[`v7.4.5`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.4...v7.4.5)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.4...v7.4.5)\n\n###\n[`v7.4.4`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.3...v7.4.4)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.3...v7.4.4)\n\n###\n[`v7.4.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.2...v7.4.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.2...v7.4.3)\n\n###\n[`v7.4.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.1...v7.4.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.1...v7.4.2)\n\n###\n[`v7.4.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.0...v7.4.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.0...v7.4.1)\n\n###\n[`v7.4.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.3...v7.4.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.3...v7.4.0)\n\n###\n[`v7.3.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.2...v7.3.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.2...v7.3.3)\n\n###\n[`v7.3.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.1...v7.3.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.1...v7.3.2)\n\n###\n[`v7.3.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.0...v7.3.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.0...v7.3.1)\n\n###\n[`v7.3.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.3...v7.3.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.3...v7.3.0)\n\n###\n[`v7.2.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.2...v7.2.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.2...v7.2.3)\n\n###\n[`v7.2.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.1...v7.2.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.1...v7.2.2)\n\n###\n[`v7.2.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.0...v7.2.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.0...v7.2.1)\n\n###\n[`v7.2.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.3...v7.2.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.3...v7.2.0)\n\n###\n[`v7.1.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.2...v7.1.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.2...v7.1.3)\n\n###\n[`v7.1.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.1...v7.1.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.1...v7.1.2)\n\n###\n[`v7.1.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.0...v7.1.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.0...v7.1.1)\n\n###\n[`v7.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.4...v7.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.4...v7.1.0)\n\n###\n[`v7.0.4`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.3...v7.0.4)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.3...v7.0.4)\n\n###\n[`v7.0.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.2...v7.0.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.2...v7.0.3)\n\n###\n[`v7.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.1...v7.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.1...v7.0.2)\n\n###\n[`v7.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.0...v7.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.0...v7.0.1)\n\n###\n[`v7.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v6.0.0...v7.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v6.0.0...v7.0.0)\n\n###\n[`v6.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.1.1...v6.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.1.1...v6.0.0)\n\n###\n[`v5.1.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.1.0...v5.1.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.1.0...v5.1.1)\n\n###\n[`v5.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.0.1...v5.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.0.1...v5.1.0)\n\n###\n[`v5.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.0.0...v5.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.0.0...v5.0.1)\n\n###\n[`v5.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v4.1.5...v5.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v4.1.5...v5.0.0)\n\n</details>\n\n---\n\n###
Configuration\n\n📅 **Schedule**: Branch creation - At any time (no
schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦
**Automerge**: Disabled by config. Please merge this manually once
you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted,
or you tick the\nrebase/retry checkbox.\n\n👻 **Immortal**: This PR will
be recreated if closed unmerged.
Get\n[config\nhelp](https://redirect.github.com/renovatebot/renovate/discussions)
if\nthat's undesired.\n\n---\n\n- [ ] If you want to rebase/retry this
PR, check\nthis box\n\n---\n\nThis PR has been generated by
[Renovate\nBot](https://redirect.github.com/renovatebot/renovate).\n\n\n\n---------\n\nCo-authored-by:
elastic-renovate-prod[bot]
<174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Jean-Louis Leysens <jeanlouis.leysens@elastic.co>\nCo-authored-by:
Alejandro Fernández Haro
<alejandro.haro@elastic.co>","sha":"45f19b769e5403390d9fee29ae918f0d13c260a0","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Team:Presentation","release_note:skip","Team:Fleet","Team:SharedUX","backport:all-open","Team:obs-ux-logs","Team:obs-ux-infra_services","Team:obs-ux-management","v9.1.0"],"title":"Update
lru-cache
(main)","number":206225,"url":"https://github.com/elastic/kibana/pull/206225","mergeCommit":{"message":"Update
lru-cache (main) (#206225)\n\nThis PR contains the following
updates:\n\n| Package | Type | Update | Change |\n|---|---|---|---|\n|
@&#8203;types/lru-cache | devDependencies | major | [`^5.1.0`
->\n`^7.10.10`](https://renovatebot.com/diffs/npm/@types%2flru-cache/5.1.0/7.10.10)\n|\n|
[lru-cache](https://redirect.github.com/isaacs/node-lru-cache)
|\ndependencies | major | [`^4.1.5`
->\n`^11.0.2`](https://renovatebot.com/diffs/npm/lru-cache/4.1.5/11.0.2)
|\n\n---\n\n### Release Notes\n\n~Changelog~ _cringe lorg_ is
here:\nhttps://github.com/isaacs/node-lru-cache/blob/main/CHANGELOG.md\n\nTL;DR:\n*
Named export\n* Renamed some APIs (during
7.0):\nhttps://github.com/isaacs/node-lru-cache/blob/main/CHANGELOG.md#70---2022-02\n*
TS is embedded now, so `@types/lru-cache` are not needed.\n\nI'm
addressing all these changes locally and will release the PR
when\nfixed.\n\n<details>\n<summary>isaacs/node-lru-cache
(lru-cache)</summary>\n\n###\n[`v11.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.1...v11.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.1...v11.0.2)\n\n###\n[`v11.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.0...v11.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.0...v11.0.1)\n\n###\n[`v11.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.3...v11.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.3...v11.0.0)\n\n###\n[`v10.4.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.2...v10.4.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.2...v10.4.3)\n\n###\n[`v10.4.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.1...v10.4.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.1...v10.4.2)\n\n###\n[`v10.4.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.0...v10.4.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.0...v10.4.1)\n\n###\n[`v10.4.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.3.1...v10.4.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.3.1...v10.4.0)\n\n###\n[`v10.3.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.3.0...v10.3.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.3.0...v10.3.1)\n\n###\n[`v10.3.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.2...v10.3.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.2...v10.3.0)\n\n###\n[`v10.2.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.1...v10.2.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.1...v10.2.2)\n\n###\n[`v10.2.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.0...v10.2.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.0...v10.2.1)\n\n###\n[`v10.2.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.1.0...v10.2.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.1.0...v10.2.0)\n\n###\n[`v10.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.3...v10.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.3...v10.1.0)\n\n###\n[`v10.0.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.2...v10.0.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.2...v10.0.3)\n\n###\n[`v10.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.1...v10.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.1...v10.0.2)\n\n###\n[`v10.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.0...v10.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.0...v10.0.1)\n\n###\n[`v10.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.2...v10.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.2...v10.0.0)\n\n###\n[`v9.1.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.1...v9.1.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.1...v9.1.2)\n\n###\n[`v9.1.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.0...v9.1.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.0...v9.1.1)\n\n###\n[`v9.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.3...v9.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.3...v9.1.0)\n\n###\n[`v9.0.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.2...v9.0.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.2...v9.0.3)\n\n###\n[`v9.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.1...v9.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.1...v9.0.2)\n\n###\n[`v9.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.0...v9.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.0...v9.0.1)\n\n###\n[`v9.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.5...v9.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.5...v9.0.0)\n\n###\n[`v8.0.5`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.4...v8.0.5)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.4...v8.0.5)\n\n###\n[`v8.0.4`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.3...v8.0.4)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.3...v8.0.4)\n\n###\n[`v8.0.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.2...v8.0.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.2...v8.0.3)\n\n###\n[`v8.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.1...v8.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.1...v8.0.2)\n\n###\n[`v8.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.0...v8.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.0...v8.0.1)\n\n###\n[`v8.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.3...v8.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.3...v8.0.0)\n\n###\n[`v7.18.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.2...v7.18.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.2...v7.18.3)\n\n###\n[`v7.18.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.1...v7.18.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.1...v7.18.2)\n\n###\n[`v7.18.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.0...v7.18.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.0...v7.18.1)\n\n###\n[`v7.18.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.2...v7.18.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.2...v7.18.0)\n\n###\n[`v7.17.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.1...v7.17.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.1...v7.17.2)\n\n###\n[`v7.17.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.0...v7.17.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.0...v7.17.1)\n\n###\n[`v7.17.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.2...v7.17.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.2...v7.17.0)\n\n###\n[`v7.16.2`](https://redirect.github.com/isaacs/node-lru-cache/blob/HEAD/CHANGELOG.md#7162)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.1...v7.16.2)\n\n-
Fail fetch() promises when they are
aborted\n\n###\n[`v7.16.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.0...v7.16.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.0...v7.16.1)\n\n###\n[`v7.16.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.15.0...v7.16.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.15.0...v7.16.0)\n\n###\n[`v7.15.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.14.1...v7.15.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.14.1...v7.15.0)\n\n###\n[`v7.14.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.14.0...v7.14.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.14.0...v7.14.1)\n\n###\n[`v7.14.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.2...v7.14.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.2...v7.14.0)\n\n###\n[`v7.13.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.1...v7.13.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.1...v7.13.2)\n\n###\n[`v7.13.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.0...v7.13.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.0...v7.13.1)\n\n###\n[`v7.13.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.12.1...v7.13.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.12.1...v7.13.0)\n\n###\n[`v7.12.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.12.0...v7.12.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.12.0...v7.12.1)\n\n###\n[`v7.12.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.11.0...v7.12.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.11.0...v7.12.0)\n\n###\n[`v7.11.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.3...v7.11.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.3...v7.11.0)\n\n###\n[`v7.10.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.2...v7.10.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.2...v7.10.3)\n\n###\n[`v7.10.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.1...v7.10.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.1...v7.10.2)\n\n###\n[`v7.10.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.0...v7.10.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.0...v7.10.1)\n\n###\n[`v7.10.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.9.1...v7.10.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.9.1...v7.10.0)\n\n###\n[`v7.9.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.9.0...v7.9.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.9.0...v7.9.1)\n\n###\n[`v7.9.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.2...v7.9.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.2...v7.9.0)\n\n###\n[`v7.8.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.1...v7.8.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.1...v7.8.2)\n\n###\n[`v7.8.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.0...v7.8.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.0...v7.8.1)\n\n###\n[`v7.8.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.4...v7.8.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.4...v7.8.0)\n\n###\n[`v7.7.4`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.3...v7.7.4)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.3...v7.7.4)\n\n###\n[`v7.7.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.2...v7.7.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.2...v7.7.3)\n\n###\n[`v7.7.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.1...v7.7.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.1...v7.7.2)\n\n###\n[`v7.7.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.0...v7.7.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.0...v7.7.1)\n\n###\n[`v7.7.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.6.1...v7.7.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.6.1...v7.7.0)\n\n###\n[`v7.6.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.6.0...v7.6.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.6.0...v7.6.1)\n\n###\n[`v7.6.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.2...v7.6.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.2...v7.6.0)\n\n###\n[`v7.5.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.1...v7.5.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.1...v7.5.2)\n\n###\n[`v7.5.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.0...v7.5.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.0...v7.5.1)\n\n###\n[`v7.5.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.5...v7.5.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.5...v7.5.0)\n\n###\n[`v7.4.5`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.4...v7.4.5)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.4...v7.4.5)\n\n###\n[`v7.4.4`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.3...v7.4.4)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.3...v7.4.4)\n\n###\n[`v7.4.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.2...v7.4.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.2...v7.4.3)\n\n###\n[`v7.4.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.1...v7.4.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.1...v7.4.2)\n\n###\n[`v7.4.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.0...v7.4.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.0...v7.4.1)\n\n###\n[`v7.4.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.3...v7.4.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.3...v7.4.0)\n\n###\n[`v7.3.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.2...v7.3.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.2...v7.3.3)\n\n###\n[`v7.3.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.1...v7.3.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.1...v7.3.2)\n\n###\n[`v7.3.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.0...v7.3.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.0...v7.3.1)\n\n###\n[`v7.3.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.3...v7.3.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.3...v7.3.0)\n\n###\n[`v7.2.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.2...v7.2.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.2...v7.2.3)\n\n###\n[`v7.2.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.1...v7.2.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.1...v7.2.2)\n\n###\n[`v7.2.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.0...v7.2.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.0...v7.2.1)\n\n###\n[`v7.2.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.3...v7.2.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.3...v7.2.0)\n\n###\n[`v7.1.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.2...v7.1.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.2...v7.1.3)\n\n###\n[`v7.1.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.1...v7.1.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.1...v7.1.2)\n\n###\n[`v7.1.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.0...v7.1.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.0...v7.1.1)\n\n###\n[`v7.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.4...v7.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.4...v7.1.0)\n\n###\n[`v7.0.4`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.3...v7.0.4)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.3...v7.0.4)\n\n###\n[`v7.0.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.2...v7.0.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.2...v7.0.3)\n\n###\n[`v7.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.1...v7.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.1...v7.0.2)\n\n###\n[`v7.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.0...v7.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.0...v7.0.1)\n\n###\n[`v7.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v6.0.0...v7.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v6.0.0...v7.0.0)\n\n###\n[`v6.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.1.1...v6.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.1.1...v6.0.0)\n\n###\n[`v5.1.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.1.0...v5.1.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.1.0...v5.1.1)\n\n###\n[`v5.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.0.1...v5.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.0.1...v5.1.0)\n\n###\n[`v5.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.0.0...v5.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.0.0...v5.0.1)\n\n###\n[`v5.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v4.1.5...v5.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v4.1.5...v5.0.0)\n\n</details>\n\n---\n\n###
Configuration\n\n📅 **Schedule**: Branch creation - At any time (no
schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦
**Automerge**: Disabled by config. Please merge this manually once
you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted,
or you tick the\nrebase/retry checkbox.\n\n👻 **Immortal**: This PR will
be recreated if closed unmerged.
Get\n[config\nhelp](https://redirect.github.com/renovatebot/renovate/discussions)
if\nthat's undesired.\n\n---\n\n- [ ] If you want to rebase/retry this
PR, check\nthis box\n\n---\n\nThis PR has been generated by
[Renovate\nBot](https://redirect.github.com/renovatebot/renovate).\n\n\n\n---------\n\nCo-authored-by:
elastic-renovate-prod[bot]
<174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Jean-Louis Leysens <jeanlouis.leysens@elastic.co>\nCo-authored-by:
Alejandro Fernández Haro
<alejandro.haro@elastic.co>","sha":"45f19b769e5403390d9fee29ae918f0d13c260a0"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206225","number":206225,"mergeCommit":{"message":"Update
lru-cache (main) (#206225)\n\nThis PR contains the following
updates:\n\n| Package | Type | Update | Change |\n|---|---|---|---|\n|
@&#8203;types/lru-cache | devDependencies | major | [`^5.1.0`
->\n`^7.10.10`](https://renovatebot.com/diffs/npm/@types%2flru-cache/5.1.0/7.10.10)\n|\n|
[lru-cache](https://redirect.github.com/isaacs/node-lru-cache)
|\ndependencies | major | [`^4.1.5`
->\n`^11.0.2`](https://renovatebot.com/diffs/npm/lru-cache/4.1.5/11.0.2)
|\n\n---\n\n### Release Notes\n\n~Changelog~ _cringe lorg_ is
here:\nhttps://github.com/isaacs/node-lru-cache/blob/main/CHANGELOG.md\n\nTL;DR:\n*
Named export\n* Renamed some APIs (during
7.0):\nhttps://github.com/isaacs/node-lru-cache/blob/main/CHANGELOG.md#70---2022-02\n*
TS is embedded now, so `@types/lru-cache` are not needed.\n\nI'm
addressing all these changes locally and will release the PR
when\nfixed.\n\n<details>\n<summary>isaacs/node-lru-cache
(lru-cache)</summary>\n\n###\n[`v11.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.1...v11.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.1...v11.0.2)\n\n###\n[`v11.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.0...v11.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v11.0.0...v11.0.1)\n\n###\n[`v11.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.3...v11.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.3...v11.0.0)\n\n###\n[`v10.4.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.2...v10.4.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.2...v10.4.3)\n\n###\n[`v10.4.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.1...v10.4.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.1...v10.4.2)\n\n###\n[`v10.4.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.0...v10.4.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.4.0...v10.4.1)\n\n###\n[`v10.4.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.3.1...v10.4.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.3.1...v10.4.0)\n\n###\n[`v10.3.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.3.0...v10.3.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.3.0...v10.3.1)\n\n###\n[`v10.3.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.2...v10.3.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.2...v10.3.0)\n\n###\n[`v10.2.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.1...v10.2.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.1...v10.2.2)\n\n###\n[`v10.2.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.0...v10.2.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.2.0...v10.2.1)\n\n###\n[`v10.2.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.1.0...v10.2.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.1.0...v10.2.0)\n\n###\n[`v10.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.3...v10.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.3...v10.1.0)\n\n###\n[`v10.0.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.2...v10.0.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.2...v10.0.3)\n\n###\n[`v10.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.1...v10.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.1...v10.0.2)\n\n###\n[`v10.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.0...v10.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v10.0.0...v10.0.1)\n\n###\n[`v10.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.2...v10.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.2...v10.0.0)\n\n###\n[`v9.1.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.1...v9.1.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.1...v9.1.2)\n\n###\n[`v9.1.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.0...v9.1.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.1.0...v9.1.1)\n\n###\n[`v9.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.3...v9.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.3...v9.1.0)\n\n###\n[`v9.0.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.2...v9.0.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.2...v9.0.3)\n\n###\n[`v9.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.1...v9.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.1...v9.0.2)\n\n###\n[`v9.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.0...v9.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v9.0.0...v9.0.1)\n\n###\n[`v9.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.5...v9.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.5...v9.0.0)\n\n###\n[`v8.0.5`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.4...v8.0.5)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.4...v8.0.5)\n\n###\n[`v8.0.4`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.3...v8.0.4)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.3...v8.0.4)\n\n###\n[`v8.0.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.2...v8.0.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.2...v8.0.3)\n\n###\n[`v8.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.1...v8.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.1...v8.0.2)\n\n###\n[`v8.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.0...v8.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v8.0.0...v8.0.1)\n\n###\n[`v8.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.3...v8.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.3...v8.0.0)\n\n###\n[`v7.18.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.2...v7.18.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.2...v7.18.3)\n\n###\n[`v7.18.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.1...v7.18.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.1...v7.18.2)\n\n###\n[`v7.18.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.0...v7.18.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.18.0...v7.18.1)\n\n###\n[`v7.18.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.2...v7.18.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.2...v7.18.0)\n\n###\n[`v7.17.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.1...v7.17.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.1...v7.17.2)\n\n###\n[`v7.17.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.0...v7.17.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.17.0...v7.17.1)\n\n###\n[`v7.17.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.2...v7.17.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.2...v7.17.0)\n\n###\n[`v7.16.2`](https://redirect.github.com/isaacs/node-lru-cache/blob/HEAD/CHANGELOG.md#7162)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.1...v7.16.2)\n\n-
Fail fetch() promises when they are
aborted\n\n###\n[`v7.16.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.0...v7.16.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.16.0...v7.16.1)\n\n###\n[`v7.16.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.15.0...v7.16.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.15.0...v7.16.0)\n\n###\n[`v7.15.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.14.1...v7.15.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.14.1...v7.15.0)\n\n###\n[`v7.14.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.14.0...v7.14.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.14.0...v7.14.1)\n\n###\n[`v7.14.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.2...v7.14.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.2...v7.14.0)\n\n###\n[`v7.13.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.1...v7.13.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.1...v7.13.2)\n\n###\n[`v7.13.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.0...v7.13.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.13.0...v7.13.1)\n\n###\n[`v7.13.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.12.1...v7.13.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.12.1...v7.13.0)\n\n###\n[`v7.12.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.12.0...v7.12.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.12.0...v7.12.1)\n\n###\n[`v7.12.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.11.0...v7.12.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.11.0...v7.12.0)\n\n###\n[`v7.11.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.3...v7.11.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.3...v7.11.0)\n\n###\n[`v7.10.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.2...v7.10.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.2...v7.10.3)\n\n###\n[`v7.10.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.1...v7.10.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.1...v7.10.2)\n\n###\n[`v7.10.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.0...v7.10.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.10.0...v7.10.1)\n\n###\n[`v7.10.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.9.1...v7.10.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.9.1...v7.10.0)\n\n###\n[`v7.9.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.9.0...v7.9.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.9.0...v7.9.1)\n\n###\n[`v7.9.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.2...v7.9.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.2...v7.9.0)\n\n###\n[`v7.8.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.1...v7.8.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.1...v7.8.2)\n\n###\n[`v7.8.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.0...v7.8.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.8.0...v7.8.1)\n\n###\n[`v7.8.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.4...v7.8.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.4...v7.8.0)\n\n###\n[`v7.7.4`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.3...v7.7.4)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.3...v7.7.4)\n\n###\n[`v7.7.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.2...v7.7.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.2...v7.7.3)\n\n###\n[`v7.7.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.1...v7.7.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.1...v7.7.2)\n\n###\n[`v7.7.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.0...v7.7.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.7.0...v7.7.1)\n\n###\n[`v7.7.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.6.1...v7.7.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.6.1...v7.7.0)\n\n###\n[`v7.6.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.6.0...v7.6.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.6.0...v7.6.1)\n\n###\n[`v7.6.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.2...v7.6.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.2...v7.6.0)\n\n###\n[`v7.5.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.1...v7.5.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.1...v7.5.2)\n\n###\n[`v7.5.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.0...v7.5.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.5.0...v7.5.1)\n\n###\n[`v7.5.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.5...v7.5.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.5...v7.5.0)\n\n###\n[`v7.4.5`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.4...v7.4.5)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.4...v7.4.5)\n\n###\n[`v7.4.4`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.3...v7.4.4)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.3...v7.4.4)\n\n###\n[`v7.4.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.2...v7.4.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.2...v7.4.3)\n\n###\n[`v7.4.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.1...v7.4.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.1...v7.4.2)\n\n###\n[`v7.4.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.0...v7.4.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.4.0...v7.4.1)\n\n###\n[`v7.4.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.3...v7.4.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.3...v7.4.0)\n\n###\n[`v7.3.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.2...v7.3.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.2...v7.3.3)\n\n###\n[`v7.3.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.1...v7.3.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.1...v7.3.2)\n\n###\n[`v7.3.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.0...v7.3.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.3.0...v7.3.1)\n\n###\n[`v7.3.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.3...v7.3.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.3...v7.3.0)\n\n###\n[`v7.2.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.2...v7.2.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.2...v7.2.3)\n\n###\n[`v7.2.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.1...v7.2.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.1...v7.2.2)\n\n###\n[`v7.2.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.0...v7.2.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.2.0...v7.2.1)\n\n###\n[`v7.2.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.3...v7.2.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.3...v7.2.0)\n\n###\n[`v7.1.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.2...v7.1.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.2...v7.1.3)\n\n###\n[`v7.1.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.1...v7.1.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.1...v7.1.2)\n\n###\n[`v7.1.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.0...v7.1.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.1.0...v7.1.1)\n\n###\n[`v7.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.4...v7.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.4...v7.1.0)\n\n###\n[`v7.0.4`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.3...v7.0.4)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.3...v7.0.4)\n\n###\n[`v7.0.3`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.2...v7.0.3)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.2...v7.0.3)\n\n###\n[`v7.0.2`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.1...v7.0.2)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.1...v7.0.2)\n\n###\n[`v7.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.0...v7.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v7.0.0...v7.0.1)\n\n###\n[`v7.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v6.0.0...v7.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v6.0.0...v7.0.0)\n\n###\n[`v6.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.1.1...v6.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.1.1...v6.0.0)\n\n###\n[`v5.1.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.1.0...v5.1.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.1.0...v5.1.1)\n\n###\n[`v5.1.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.0.1...v5.1.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.0.1...v5.1.0)\n\n###\n[`v5.0.1`](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.0.0...v5.0.1)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v5.0.0...v5.0.1)\n\n###\n[`v5.0.0`](https://redirect.github.com/isaacs/node-lru-cache/compare/v4.1.5...v5.0.0)\n\n[Compare\nSource](https://redirect.github.com/isaacs/node-lru-cache/compare/v4.1.5...v5.0.0)\n\n</details>\n\n---\n\n###
Configuration\n\n📅 **Schedule**: Branch creation - At any time (no
schedule defined),\nAutomerge - At any time (no schedule defined).\n\n🚦
**Automerge**: Disabled by config. Please merge this manually once
you\nare satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted,
or you tick the\nrebase/retry checkbox.\n\n👻 **Immortal**: This PR will
be recreated if closed unmerged.
Get\n[config\nhelp](https://redirect.github.com/renovatebot/renovate/discussions)
if\nthat's undesired.\n\n---\n\n- [ ] If you want to rebase/retry this
PR, check\nthis box\n\n---\n\nThis PR has been generated by
[Renovate\nBot](https://redirect.github.com/renovatebot/renovate).\n\n\n\n---------\n\nCo-authored-by:
elastic-renovate-prod[bot]
<174716857+elastic-renovate-prod[bot]@users.noreply.github.com>\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Jean-Louis Leysens <jeanlouis.leysens@elastic.co>\nCo-authored-by:
Alejandro Fernández Haro
<alejandro.haro@elastic.co>","sha":"45f19b769e5403390d9fee29ae918f0d13c260a0"}},{"url":"https://github.com/elastic/kibana/pull/213926","number":213926,"branch":"9.0","state":"OPEN"}]}]
BACKPORT-->

---------

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2025-03-11 20:12:36 +01:00
Kibana Machine
acf75166dd
[8.16] [Feature Flags] Remove apm.captureError on slow setup (#212037) (#212056)
# Backport

This will backport the following commits from `main` to `8.16`:
- [[Feature Flags] Remove `apm.captureError` on slow setup
(#212037)](https://github.com/elastic/kibana/pull/212037)

<!--- 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":"2025-02-21T12:20:37Z","message":"[Feature
Flags] Remove `apm.captureError` on slow setup
(#212037)","sha":"f4d3652832c557f68890aca68df12003de7a1652","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","technical
debt","release_note:skip","backport:prev-major","v9.1.0"],"title":"[Feature
Flags] Remove `apm.captureError` on slow
setup","number":212037,"url":"https://github.com/elastic/kibana/pull/212037","mergeCommit":{"message":"[Feature
Flags] Remove `apm.captureError` on slow setup
(#212037)","sha":"f4d3652832c557f68890aca68df12003de7a1652"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212037","number":212037,"mergeCommit":{"message":"[Feature
Flags] Remove `apm.captureError` on slow setup
(#212037)","sha":"f4d3652832c557f68890aca68df12003de7a1652"}}]}]
BACKPORT-->

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2025-02-21 14:32:40 +00:00
Tiago Costa
9621d8dd51
[8.16] chore(NA): upgrade to webpack 5 (#191106) (#211152)
# Backport

This will backport the following commits from `main` to `8.16`:
- [chore(NA): upgrade to webpack 5
(#191106)](https://github.com/elastic/kibana/pull/191106)

<!--- Backport version: 9.6.4 -->

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

<!--BACKPORT [{"author":{"name":"Tiago
Costa","email":"tiago.costa@elastic.co"},"sourceCommit":{"committedDate":"2025-02-14T03:01:36Z","message":"chore(NA):
upgrade to webpack 5 (#191106)\n\n### Summary\r\n\r\n- Closes
#89741\r\n\r\nThis PR contains the resulting work of a massive effort
that ports our\r\non top bundler abstraction (called @kbn/optimizer)
from Webpack v4 into\r\nWebpack v5. It's essential in terms of long term
maintenance since v4\r\nwas not receiving updates any longer but will
also unblock some new\r\nfeatures that could be beneficial for our
future DevEx endeavours.\r\n\r\nNext you can find a small list of all
the accomplished tasks on this\r\njourney.\r\n\r\n### Completed
Tasks\r\n- [x] Upgrade dependencies to match the ones on webpack v5\r\n-
[x] Fix null-loader usages\r\n- [x] Fix raw-loader usages\r\n- [x] Fix
file-loader usages\r\n- [x] Fix url-loader usages\r\n- [x] Fix
`@kbn/optimizer-webpack-helpers` to support webpack v5 \r\n- [x] Adopt
previous webpack v4 polyfill-all strategy
with\r\nnode-polyfill-webpack-plugin\r\n- [x] Fix theme-loader on
@kbn/optimizer\r\n- [x] Migrate configurations and ad-hoc loader options
on all webpack\r\nconfigs from v4 to v5\r\n- [x] Fix @kbn/test jest
resolver for file-loader cases\r\n- [x] Migrate public-path loader on
UiSharedDeps\r\n- [x] Fix all usages of webpack-merge\r\n- [x] Migrate
BundleRemoteModule\r\n- [x] Migrate BundleRemotesPlugin\r\n- [x]
Correctly migrate PopulateBundleCachePlugin\r\n- [x] Correctly migrate
BundleMetricsPlugin\r\n- [x] Check if the profiling plugins still work
(--profile flag)\r\n- [x] Recover if possible the previous webpack v4
cacheGroup chunks\r\nrename to something like
`data.plugin.chunk.0.js`\r\n- [x] Run `/ci` and make sure we get our
first green CI, otherwise work\r\non the errors until we do\r\n- [x]
Profile and solve bottlenecks until we get a cold build\r\nperformance
similar to the one we had on webpack v4
(`node\r\nscripts/build_kibana_platform_plugins --no-cache`).\r\n- [x]
OpenSSL Legacy Warnings: try to remove `--openssl-legacy-provider\r\n`
flags\r\n- [x] Add Webpack to Renovate config\r\n- [x] Explore removing
`NodePolyfillPlugin`\r\n([here](https://www.npmjs.com/package/node-polyfill-webpack-plugin))
and\r\nadd each polyfill needed individually per each webpack config to
check\r\nif we get smaller bundles. If we do it's better to go with the
case by\r\ncase need approach instead of deploying a bunch of polyfills
with\r\nNodePolyfillPlugin. As another alternative, create a custom
smaller\r\nplugin with only the union of all needed polyfills.\r\n- [x]
Evaluate if we want to touch the resolutions on mainFields
and\r\nconditionNames\r\n- [x] Understand why `@import
'src/core/public/mixins'` does not work\r\nanymore (not a problem, we
should use relative paths anyway but we want\r\nto track why it changed
from v4 to v5)\r\n- [x] BUG: Child compilers are having errors hidden
and/or changed from\r\nerror to warning\r\n- [x] Fix license check
for\r\n[Artistic-2.0](https://spdx.org/licenses/Artistic-2.0.html) is
the\r\nlicense
for\r\n[domain-browser](https://github.com/bevry/domain-browser?tab=License-1-ov-file).\r\nThis
package is a dependency
of\r\n[NodePolyfillPlugin](https://www.npmjs.com/package/node-polyfill-webpack-plugin).\r\nArtistic
2.0 license is [classified
as\r\nyellow](https://github.com/elastic/open-source/blob/main/elastic-product-policy.md#yellow-list)\r\nand
should only be used for dev dependencies.\r\n- [x] Make sure
`resourceQuery: { not: /raw/ }` is not necessary on\r\nother webpack
configs like storybook one\r\n- [x] Find what is being wrongly removed
by usedExports optimization;\r\nhint: I believe it is identifying a lot
of exports inside the sync entry\r\nof plugins as unused exports and
removing them. Then `__kbnBootstrap__`\r\ncan't be found\r\n- [x]
Rebalance @kbn/optimizer pickMaxWorkerCount\r\n- [x] Re-open the issue
to fix
sass-warnings\r\n[#190345](https://github.com/elastic/kibana/issues/190345)
or downgrade\r\nsass-loader to v10\r\n- [x] Remove previous esm no parse
rules\r\n- [x] Confirm esm support is working\r\n- [x] Confirm console
override is needed\r\n- [x] Confirm react prod builds on ui shared deps
for distributable\r\n- [x] Remove customization
for\r\n[xyflow](https://github.com/xyflow/xyflow) from webpack
configs\r\n- [x] Clean all the code\r\n- [x] Make sure collected metrics
from stats are still aligned with what\r\nwe were collecting before;
also verify if the modules used for optimizer\r\ncaches etc are well
generated (@kbn/node-libs-browser)\r\n- [x] Fix watch
performance\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Brad White
<brad.white@elastic.co>","sha":"203bc284781cc830049b3f7948c8fcafa8b7d9a1","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","Team:Operations","release_note:skip","Team:Fleet","v9.0.0","backport:all-open","ci:build-webpack-bundle-analyzer","Team:obs-ux-infra_services","v9.1.0"],"title":"chore(NA):
upgrade to webpack
5","number":191106,"url":"https://github.com/elastic/kibana/pull/191106","mergeCommit":{"message":"chore(NA):
upgrade to webpack 5 (#191106)\n\n### Summary\r\n\r\n- Closes
#89741\r\n\r\nThis PR contains the resulting work of a massive effort
that ports our\r\non top bundler abstraction (called @kbn/optimizer)
from Webpack v4 into\r\nWebpack v5. It's essential in terms of long term
maintenance since v4\r\nwas not receiving updates any longer but will
also unblock some new\r\nfeatures that could be beneficial for our
future DevEx endeavours.\r\n\r\nNext you can find a small list of all
the accomplished tasks on this\r\njourney.\r\n\r\n### Completed
Tasks\r\n- [x] Upgrade dependencies to match the ones on webpack v5\r\n-
[x] Fix null-loader usages\r\n- [x] Fix raw-loader usages\r\n- [x] Fix
file-loader usages\r\n- [x] Fix url-loader usages\r\n- [x] Fix
`@kbn/optimizer-webpack-helpers` to support webpack v5 \r\n- [x] Adopt
previous webpack v4 polyfill-all strategy
with\r\nnode-polyfill-webpack-plugin\r\n- [x] Fix theme-loader on
@kbn/optimizer\r\n- [x] Migrate configurations and ad-hoc loader options
on all webpack\r\nconfigs from v4 to v5\r\n- [x] Fix @kbn/test jest
resolver for file-loader cases\r\n- [x] Migrate public-path loader on
UiSharedDeps\r\n- [x] Fix all usages of webpack-merge\r\n- [x] Migrate
BundleRemoteModule\r\n- [x] Migrate BundleRemotesPlugin\r\n- [x]
Correctly migrate PopulateBundleCachePlugin\r\n- [x] Correctly migrate
BundleMetricsPlugin\r\n- [x] Check if the profiling plugins still work
(--profile flag)\r\n- [x] Recover if possible the previous webpack v4
cacheGroup chunks\r\nrename to something like
`data.plugin.chunk.0.js`\r\n- [x] Run `/ci` and make sure we get our
first green CI, otherwise work\r\non the errors until we do\r\n- [x]
Profile and solve bottlenecks until we get a cold build\r\nperformance
similar to the one we had on webpack v4
(`node\r\nscripts/build_kibana_platform_plugins --no-cache`).\r\n- [x]
OpenSSL Legacy Warnings: try to remove `--openssl-legacy-provider\r\n`
flags\r\n- [x] Add Webpack to Renovate config\r\n- [x] Explore removing
`NodePolyfillPlugin`\r\n([here](https://www.npmjs.com/package/node-polyfill-webpack-plugin))
and\r\nadd each polyfill needed individually per each webpack config to
check\r\nif we get smaller bundles. If we do it's better to go with the
case by\r\ncase need approach instead of deploying a bunch of polyfills
with\r\nNodePolyfillPlugin. As another alternative, create a custom
smaller\r\nplugin with only the union of all needed polyfills.\r\n- [x]
Evaluate if we want to touch the resolutions on mainFields
and\r\nconditionNames\r\n- [x] Understand why `@import
'src/core/public/mixins'` does not work\r\nanymore (not a problem, we
should use relative paths anyway but we want\r\nto track why it changed
from v4 to v5)\r\n- [x] BUG: Child compilers are having errors hidden
and/or changed from\r\nerror to warning\r\n- [x] Fix license check
for\r\n[Artistic-2.0](https://spdx.org/licenses/Artistic-2.0.html) is
the\r\nlicense
for\r\n[domain-browser](https://github.com/bevry/domain-browser?tab=License-1-ov-file).\r\nThis
package is a dependency
of\r\n[NodePolyfillPlugin](https://www.npmjs.com/package/node-polyfill-webpack-plugin).\r\nArtistic
2.0 license is [classified
as\r\nyellow](https://github.com/elastic/open-source/blob/main/elastic-product-policy.md#yellow-list)\r\nand
should only be used for dev dependencies.\r\n- [x] Make sure
`resourceQuery: { not: /raw/ }` is not necessary on\r\nother webpack
configs like storybook one\r\n- [x] Find what is being wrongly removed
by usedExports optimization;\r\nhint: I believe it is identifying a lot
of exports inside the sync entry\r\nof plugins as unused exports and
removing them. Then `__kbnBootstrap__`\r\ncan't be found\r\n- [x]
Rebalance @kbn/optimizer pickMaxWorkerCount\r\n- [x] Re-open the issue
to fix
sass-warnings\r\n[#190345](https://github.com/elastic/kibana/issues/190345)
or downgrade\r\nsass-loader to v10\r\n- [x] Remove previous esm no parse
rules\r\n- [x] Confirm esm support is working\r\n- [x] Confirm console
override is needed\r\n- [x] Confirm react prod builds on ui shared deps
for distributable\r\n- [x] Remove customization
for\r\n[xyflow](https://github.com/xyflow/xyflow) from webpack
configs\r\n- [x] Clean all the code\r\n- [x] Make sure collected metrics
from stats are still aligned with what\r\nwe were collecting before;
also verify if the modules used for optimizer\r\ncaches etc are well
generated (@kbn/node-libs-browser)\r\n- [x] Fix watch
performance\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Brad White
<brad.white@elastic.co>","sha":"203bc284781cc830049b3f7948c8fcafa8b7d9a1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/211145","number":211145,"state":"OPEN"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/191106","number":191106,"mergeCommit":{"message":"chore(NA):
upgrade to webpack 5 (#191106)\n\n### Summary\r\n\r\n- Closes
#89741\r\n\r\nThis PR contains the resulting work of a massive effort
that ports our\r\non top bundler abstraction (called @kbn/optimizer)
from Webpack v4 into\r\nWebpack v5. It's essential in terms of long term
maintenance since v4\r\nwas not receiving updates any longer but will
also unblock some new\r\nfeatures that could be beneficial for our
future DevEx endeavours.\r\n\r\nNext you can find a small list of all
the accomplished tasks on this\r\njourney.\r\n\r\n### Completed
Tasks\r\n- [x] Upgrade dependencies to match the ones on webpack v5\r\n-
[x] Fix null-loader usages\r\n- [x] Fix raw-loader usages\r\n- [x] Fix
file-loader usages\r\n- [x] Fix url-loader usages\r\n- [x] Fix
`@kbn/optimizer-webpack-helpers` to support webpack v5 \r\n- [x] Adopt
previous webpack v4 polyfill-all strategy
with\r\nnode-polyfill-webpack-plugin\r\n- [x] Fix theme-loader on
@kbn/optimizer\r\n- [x] Migrate configurations and ad-hoc loader options
on all webpack\r\nconfigs from v4 to v5\r\n- [x] Fix @kbn/test jest
resolver for file-loader cases\r\n- [x] Migrate public-path loader on
UiSharedDeps\r\n- [x] Fix all usages of webpack-merge\r\n- [x] Migrate
BundleRemoteModule\r\n- [x] Migrate BundleRemotesPlugin\r\n- [x]
Correctly migrate PopulateBundleCachePlugin\r\n- [x] Correctly migrate
BundleMetricsPlugin\r\n- [x] Check if the profiling plugins still work
(--profile flag)\r\n- [x] Recover if possible the previous webpack v4
cacheGroup chunks\r\nrename to something like
`data.plugin.chunk.0.js`\r\n- [x] Run `/ci` and make sure we get our
first green CI, otherwise work\r\non the errors until we do\r\n- [x]
Profile and solve bottlenecks until we get a cold build\r\nperformance
similar to the one we had on webpack v4
(`node\r\nscripts/build_kibana_platform_plugins --no-cache`).\r\n- [x]
OpenSSL Legacy Warnings: try to remove `--openssl-legacy-provider\r\n`
flags\r\n- [x] Add Webpack to Renovate config\r\n- [x] Explore removing
`NodePolyfillPlugin`\r\n([here](https://www.npmjs.com/package/node-polyfill-webpack-plugin))
and\r\nadd each polyfill needed individually per each webpack config to
check\r\nif we get smaller bundles. If we do it's better to go with the
case by\r\ncase need approach instead of deploying a bunch of polyfills
with\r\nNodePolyfillPlugin. As another alternative, create a custom
smaller\r\nplugin with only the union of all needed polyfills.\r\n- [x]
Evaluate if we want to touch the resolutions on mainFields
and\r\nconditionNames\r\n- [x] Understand why `@import
'src/core/public/mixins'` does not work\r\nanymore (not a problem, we
should use relative paths anyway but we want\r\nto track why it changed
from v4 to v5)\r\n- [x] BUG: Child compilers are having errors hidden
and/or changed from\r\nerror to warning\r\n- [x] Fix license check
for\r\n[Artistic-2.0](https://spdx.org/licenses/Artistic-2.0.html) is
the\r\nlicense
for\r\n[domain-browser](https://github.com/bevry/domain-browser?tab=License-1-ov-file).\r\nThis
package is a dependency
of\r\n[NodePolyfillPlugin](https://www.npmjs.com/package/node-polyfill-webpack-plugin).\r\nArtistic
2.0 license is [classified
as\r\nyellow](https://github.com/elastic/open-source/blob/main/elastic-product-policy.md#yellow-list)\r\nand
should only be used for dev dependencies.\r\n- [x] Make sure
`resourceQuery: { not: /raw/ }` is not necessary on\r\nother webpack
configs like storybook one\r\n- [x] Find what is being wrongly removed
by usedExports optimization;\r\nhint: I believe it is identifying a lot
of exports inside the sync entry\r\nof plugins as unused exports and
removing them. Then `__kbnBootstrap__`\r\ncan't be found\r\n- [x]
Rebalance @kbn/optimizer pickMaxWorkerCount\r\n- [x] Re-open the issue
to fix
sass-warnings\r\n[#190345](https://github.com/elastic/kibana/issues/190345)
or downgrade\r\nsass-loader to v10\r\n- [x] Remove previous esm no parse
rules\r\n- [x] Confirm esm support is working\r\n- [x] Confirm console
override is needed\r\n- [x] Confirm react prod builds on ui shared deps
for distributable\r\n- [x] Remove customization
for\r\n[xyflow](https://github.com/xyflow/xyflow) from webpack
configs\r\n- [x] Clean all the code\r\n- [x] Make sure collected metrics
from stats are still aligned with what\r\nwe were collecting before;
also verify if the modules used for optimizer\r\ncaches etc are well
generated (@kbn/node-libs-browser)\r\n- [x] Fix watch
performance\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Brad White
<brad.white@elastic.co>","sha":"203bc284781cc830049b3f7948c8fcafa8b7d9a1"}},{"url":"https://github.com/elastic/kibana/pull/211146","number":211146,"branch":"8.x","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/211147","number":211147,"branch":"8.18","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/211148","number":211148,"branch":"8.17","state":"OPEN"}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-02-19 04:15:36 +00:00
Jesus Wahrman
c4d00b378c
[8.16] [docs] Remove experimental message from saved objects import and export apis (#202173) (#202457)
# Backport

This will backport the following commits from `main` to `8.16`:
- [[docs] Remove experimental message from saved objects import and
export apis (#202173)](https://github.com/elastic/kibana/pull/202173)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Jesus
Wahrman","email":"41008968+jesuswr@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-12-02T11:05:52Z","message":"[docs]
Remove experimental message from saved objects import and export apis
(#202173)\n\n## Summary\r\n\r\nresolves
https://github.com/elastic/kibana/issues/159454\r\n\r\nRemove
experimental message from saved objects import and export
apis.\r\n\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n-
[x]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n\r\n###
Identify risks\r\n\r\nDoes this PR introduce any risks? For example,
consider risks like hard\r\nto test bugs, performance regression,
potential of data loss.\r\n\r\nDescribe the risk, its severity, and
mitigation for each identified\r\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"9b99070470869ba390924cf64745771b6b143377","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","docs","backport:version","v8.17.0","v8.18.0","v8.16.2","v8.15.6"],"title":"[docs]
Remove experimental message from saved objects import and export
apis","number":202173,"url":"https://github.com/elastic/kibana/pull/202173","mergeCommit":{"message":"[docs]
Remove experimental message from saved objects import and export apis
(#202173)\n\n## Summary\r\n\r\nresolves
https://github.com/elastic/kibana/issues/159454\r\n\r\nRemove
experimental message from saved objects import and export
apis.\r\n\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n-
[x]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n\r\n###
Identify risks\r\n\r\nDoes this PR introduce any risks? For example,
consider risks like hard\r\nto test bugs, performance regression,
potential of data loss.\r\n\r\nDescribe the risk, its severity, and
mitigation for each identified\r\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"9b99070470869ba390924cf64745771b6b143377"}},"sourceBranch":"main","suggestedTargetBranches":["8.17","8.x","8.16","8.15"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202173","number":202173,"mergeCommit":{"message":"[docs]
Remove experimental message from saved objects import and export apis
(#202173)\n\n## Summary\r\n\r\nresolves
https://github.com/elastic/kibana/issues/159454\r\n\r\nRemove
experimental message from saved objects import and export
apis.\r\n\r\n\r\n### Checklist\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\nReviewers should verify this PR satisfies this list
as well.\r\n\r\n-
[x]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n\r\n###
Identify risks\r\n\r\nDoes this PR introduce any risks? For example,
consider risks like hard\r\nto test bugs, performance regression,
potential of data loss.\r\n\r\nDescribe the risk, its severity, and
mitigation for each identified\r\nrisk. Invite stakeholders and evaluate
how to proceed before merging.\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"9b99070470869ba390924cf64745771b6b143377"}},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.16","label":"v8.16.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.15","label":"v8.15.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
2024-12-02 09:18:33 -06:00
Kibana Machine
d5a062e518
[8.16] Fix issue with duplicate references in error object when copying saved objects to space (#200053) (#200600)
# Backport

This will backport the following commits from `main` to `8.16`:
- [Fix issue with duplicate references in error object when copying
saved objects to space
(#200053)](https://github.com/elastic/kibana/pull/200053)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT
[{"author":{"name":"Sid","email":"siddharthmantri1@gmail.com"},"sourceCommit":{"committedDate":"2024-11-18T15:46:07Z","message":"Fix
issue with duplicate references in error object when copying saved
objects to space (#200053)\n\nCloses
https://github.com/elastic/kibana/issues/158027\r\n\r\n##
Summary\r\n\r\nSimply dedupes references to objects if they are part of
the\r\nmissing_references in the copy saved objects to SO
endpoint\r\n\r\n### Notes\r\n- Update forEach over SOs to a regular for
loop since we had a couple of\r\nearly exit scenarios\r\n- Checks
against the set for references already added to the missing\r\nlist and
adds only if not present\r\n\r\n------\r\n\r\n**Old response: Note the
duplicate references**\r\n\r\n<img width=\"400\" alt=\"Screenshot
2024-11-14 at 01 52
54\"\r\nsrc=\"https://github.com/user-attachments/assets/67078080-e39d-43b2-bf7c-7abb76866fa4\">\r\n\r\n\r\n**New
response**\r\n\r\n<img width=\"800\" alt=\"Screenshot 2024-11-14 at 01
50
41\"\r\nsrc=\"https://github.com/user-attachments/assets/776db189-af8c-4522-bb03-f8efbb7cdcd9\">\r\n\r\n\r\n###
Release note\r\nDedupe results from copy saved objects to spaces API
when object\r\ncontains references to other
objects.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"262b48f1cf4d4f624be99c2f42d169e4ab1f1f44","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:Security","Feature:Saved
Objects","v9.0.0","backport:prev-minor","backport:prev-major","v8.17.0"],"title":"Fix
issue with duplicate references in error object when copying saved
objects to
space","number":200053,"url":"https://github.com/elastic/kibana/pull/200053","mergeCommit":{"message":"Fix
issue with duplicate references in error object when copying saved
objects to space (#200053)\n\nCloses
https://github.com/elastic/kibana/issues/158027\r\n\r\n##
Summary\r\n\r\nSimply dedupes references to objects if they are part of
the\r\nmissing_references in the copy saved objects to SO
endpoint\r\n\r\n### Notes\r\n- Update forEach over SOs to a regular for
loop since we had a couple of\r\nearly exit scenarios\r\n- Checks
against the set for references already added to the missing\r\nlist and
adds only if not present\r\n\r\n------\r\n\r\n**Old response: Note the
duplicate references**\r\n\r\n<img width=\"400\" alt=\"Screenshot
2024-11-14 at 01 52
54\"\r\nsrc=\"https://github.com/user-attachments/assets/67078080-e39d-43b2-bf7c-7abb76866fa4\">\r\n\r\n\r\n**New
response**\r\n\r\n<img width=\"800\" alt=\"Screenshot 2024-11-14 at 01
50
41\"\r\nsrc=\"https://github.com/user-attachments/assets/776db189-af8c-4522-bb03-f8efbb7cdcd9\">\r\n\r\n\r\n###
Release note\r\nDedupe results from copy saved objects to spaces API
when object\r\ncontains references to other
objects.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"262b48f1cf4d4f624be99c2f42d169e4ab1f1f44"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200053","number":200053,"mergeCommit":{"message":"Fix
issue with duplicate references in error object when copying saved
objects to space (#200053)\n\nCloses
https://github.com/elastic/kibana/issues/158027\r\n\r\n##
Summary\r\n\r\nSimply dedupes references to objects if they are part of
the\r\nmissing_references in the copy saved objects to SO
endpoint\r\n\r\n### Notes\r\n- Update forEach over SOs to a regular for
loop since we had a couple of\r\nearly exit scenarios\r\n- Checks
against the set for references already added to the missing\r\nlist and
adds only if not present\r\n\r\n------\r\n\r\n**Old response: Note the
duplicate references**\r\n\r\n<img width=\"400\" alt=\"Screenshot
2024-11-14 at 01 52
54\"\r\nsrc=\"https://github.com/user-attachments/assets/67078080-e39d-43b2-bf7c-7abb76866fa4\">\r\n\r\n\r\n**New
response**\r\n\r\n<img width=\"800\" alt=\"Screenshot 2024-11-14 at 01
50
41\"\r\nsrc=\"https://github.com/user-attachments/assets/776db189-af8c-4522-bb03-f8efbb7cdcd9\">\r\n\r\n\r\n###
Release note\r\nDedupe results from copy saved objects to spaces API
when object\r\ncontains references to other
objects.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"262b48f1cf4d4f624be99c2f42d169e4ab1f1f44"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Sid <siddharthmantri1@gmail.com>
2024-11-18 11:38:07 -06:00
Sébastien Loix
52651e7108
[8.16] [Stateful sidenav] Update feedback urls (#198143) (#198479)
# Backport

This will backport the following commits from `main` to `8.16`:
- [[Stateful sidenav] Update feedback urls
(#198143)](https://github.com/elastic/kibana/pull/198143)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Sébastien
Loix","email":"sebastien.loix@elastic.co"},"sourceCommit":{"committedDate":"2024-10-31T08:55:49Z","message":"[Stateful
sidenav] Update feedback urls
(#198143)","sha":"89fe54815d9c25b860b34451f3045d43994ad42e","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-major","Feature:Chrome"],"number":198143,"url":"https://github.com/elastic/kibana/pull/198143","mergeCommit":{"message":"[Stateful
sidenav] Update feedback urls
(#198143)","sha":"89fe54815d9c25b860b34451f3045d43994ad42e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198143","number":198143,"mergeCommit":{"message":"[Stateful
sidenav] Update feedback urls
(#198143)","sha":"89fe54815d9c25b860b34451f3045d43994ad42e"}}]}]
BACKPORT-->
2024-10-31 05:59:00 -05:00
Kibana Machine
10abaaaf5c
[8.16] Use more efficient strategies to process user input (#196858) (#197791)
# Backport

This will backport the following commits from `main` to `8.16`:
- [Use more efficient strategies to process user input
(#196858)](https://github.com/elastic/kibana/pull/196858)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-10-22T12:07:25Z","message":"Use
more efficient strategies to process user input (#196858)\n\n##
Summary\r\n\r\nAddress performance concerns with
Regexps","sha":"c9637cf71c97e2290db57302d54b90caffb6b1bf","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:all-open"],"title":"Use
more efficient strategies to process user
input","number":196858,"url":"https://github.com/elastic/kibana/pull/196858","mergeCommit":{"message":"Use
more efficient strategies to process user input (#196858)\n\n##
Summary\r\n\r\nAddress performance concerns with
Regexps","sha":"c9637cf71c97e2290db57302d54b90caffb6b1bf"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196858","number":196858,"mergeCommit":{"message":"Use
more efficient strategies to process user input (#196858)\n\n##
Summary\r\n\r\nAddress performance concerns with
Regexps","sha":"c9637cf71c97e2290db57302d54b90caffb6b1bf"}}]}]
BACKPORT-->

Co-authored-by: Gerard Soldevila <gerard.soldevila@elastic.co>
2024-10-25 06:54:10 -05:00
Kibana Machine
0b366b21d2
[8.16] [CodeQL] resolve issue with prototype pollution (#196685) (#197614)
# Backport

This will backport the following commits from `main` to `8.16`:
- [[CodeQL] resolve issue with prototype pollution
(#196685)](https://github.com/elastic/kibana/pull/196685)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Eyo O.
Eyo","email":"7893459+eokoneyo@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-24T11:20:30Z","message":"[CodeQL]
resolve issue with prototype pollution (#196685)\n\n##
Summary\r\n\r\nRelates to
https://github.com/elastic/kibana-team/issues/1102\r\n\r\nParticularly
addresses issues with prototype pollution\r\n\r\n<!--\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces&mdash;unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes&mdash;Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)\r\n-
[ ] This will appear in the **Release Notes** and follow
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n-->\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"7164a343e5f101e1790ffa484d649e700cdc05b2","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","v9.0.0","Team:SharedUX","backport:prev-major","v7.17.26"],"title":"[CodeQL]
resolve issue with prototype
pollution","number":196685,"url":"https://github.com/elastic/kibana/pull/196685","mergeCommit":{"message":"[CodeQL]
resolve issue with prototype pollution (#196685)\n\n##
Summary\r\n\r\nRelates to
https://github.com/elastic/kibana-team/issues/1102\r\n\r\nParticularly
addresses issues with prototype pollution\r\n\r\n<!--\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces&mdash;unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes&mdash;Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)\r\n-
[ ] This will appear in the **Release Notes** and follow
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n-->\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"7164a343e5f101e1790ffa484d649e700cdc05b2"}},"sourceBranch":"main","suggestedTargetBranches":["7.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196685","number":196685,"mergeCommit":{"message":"[CodeQL]
resolve issue with prototype pollution (#196685)\n\n##
Summary\r\n\r\nRelates to
https://github.com/elastic/kibana-team/issues/1102\r\n\r\nParticularly
addresses issues with prototype pollution\r\n\r\n<!--\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces&mdash;unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes&mdash;Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)\r\n-
[ ] This will appear in the **Release Notes** and follow
the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n-->\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"7164a343e5f101e1790ffa484d649e700cdc05b2"}},{"branch":"7.17","label":"v7.17.26","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Eyo O. Eyo <7893459+eokoneyo@users.noreply.github.com>
2024-10-24 08:02:13 -05:00
Kibana Machine
3687435cb4
[8.16] Update mappings if/when new SO types are introduced (#197061) (#197573)
# Backport

This will backport the following commits from `main` to `8.16`:
- [Update mappings if/when new SO types are introduced
(#197061)](https://github.com/elastic/kibana/pull/197061)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-10-24T08:21:43Z","message":"Update
mappings if/when new SO types are introduced (#197061)\n\n##
Summary\r\n\r\nAddresses
https://github.com/elastic/elastic-entity-model/issues/70\r\nFixes
regression introduced
in\r\nhttps://github.com/elastic/kibana/pull/176803","sha":"8de3636e43be7c874b2c3457f1496a0fc31f224d","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","Team:Core","release_note:skip","v9.0.0","backport:prev-minor","backport:prev-major","v8.16.0","v8.15.3"],"title":"Update
mappings if/when new SO types are
introduced","number":197061,"url":"https://github.com/elastic/kibana/pull/197061","mergeCommit":{"message":"Update
mappings if/when new SO types are introduced (#197061)\n\n##
Summary\r\n\r\nAddresses
https://github.com/elastic/elastic-entity-model/issues/70\r\nFixes
regression introduced
in\r\nhttps://github.com/elastic/kibana/pull/176803","sha":"8de3636e43be7c874b2c3457f1496a0fc31f224d"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.15"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197061","number":197061,"mergeCommit":{"message":"Update
mappings if/when new SO types are introduced (#197061)\n\n##
Summary\r\n\r\nAddresses
https://github.com/elastic/elastic-entity-model/issues/70\r\nFixes
regression introduced
in\r\nhttps://github.com/elastic/kibana/pull/176803","sha":"8de3636e43be7c874b2c3457f1496a0fc31f224d"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.15","label":"v8.15.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Gerard Soldevila <gerard.soldevila@elastic.co>
2024-10-24 05:11:52 -05:00
Kibana Machine
76993eb1f6
[8.16] [OAS] Support setting availability (#196647) (#197025)
# Backport

This will backport the following commits from `main` to `8.16`:
- [[OAS] Support setting availability
(#196647)](https://github.com/elastic/kibana/pull/196647)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Jean-Louis
Leysens","email":"jeanlouis.leysens@elastic.co"},"sourceCommit":{"committedDate":"2024-10-21T10:30:45Z","message":"[OAS]
Support setting availability (#196647)\n\n## Summary\r\n\r\nClose
https://github.com/elastic/kibana/issues/181995\r\n\r\nRelated
https://github.com/elastic/kibana/pull/195325\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Christiane (Tina)
Heiligers
<christiane.heiligers@elastic.co>","sha":"608cc70be56fa63cb68a93d480e545fa95c0846a","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","Feature:OAS","v8.16.0","backport:version"],"title":"[OAS]
Support setting
availability","number":196647,"url":"https://github.com/elastic/kibana/pull/196647","mergeCommit":{"message":"[OAS]
Support setting availability (#196647)\n\n## Summary\r\n\r\nClose
https://github.com/elastic/kibana/issues/181995\r\n\r\nRelated
https://github.com/elastic/kibana/pull/195325\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Christiane (Tina)
Heiligers
<christiane.heiligers@elastic.co>","sha":"608cc70be56fa63cb68a93d480e545fa95c0846a"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196647","number":196647,"mergeCommit":{"message":"[OAS]
Support setting availability (#196647)\n\n## Summary\r\n\r\nClose
https://github.com/elastic/kibana/issues/181995\r\n\r\nRelated
https://github.com/elastic/kibana/pull/195325\r\n\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Christiane (Tina)
Heiligers
<christiane.heiligers@elastic.co>","sha":"608cc70be56fa63cb68a93d480e545fa95c0846a"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jean-Louis Leysens <jeanlouis.leysens@elastic.co>
2024-10-21 07:11:37 -05:00
Jeramy Soucy
d216933327
[8.x] Set spaces and roles CRUD APIs to public (#193534) (#196242)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Set spaces and roles CRUD APIs to public
(#193534)](https://github.com/elastic/kibana/pull/193534)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Jeramy
Soucy","email":"jeramy.soucy@elastic.co"},"sourceCommit":{"committedDate":"2024-10-03T14:28:54Z","message":"Set
spaces and roles CRUD APIs to public (#193534)\n\nCloses
#192153\r\n\r\n## Summary\r\n\r\nThis PR sets the spaces and roles CRUD
operation HTTP API endpoints to\r\npublic in both stateful and
serverless offerings, and additionally,\r\nswitches to the versioned
router to register these endpoints.\r\n\r\nPrior to this PR, the access
level was not explicitly set, thus any\r\nendpoints registered in
serverless were by default internal. CRUD\r\noperations for spaces and
roles are being set to public to support the\r\nrollout of custom roles
in serverless, which coincides with enabling\r\nmultiple
spaces.\r\n\r\n### Note\r\n- Currently, roles APIs are only available in
serverless via a feature\r\nflag
(`xpack.security.roleManagementEnabled`)\r\n- Spaces APIs are already
registered in serverless, however, the maximum\r\nnumber of spaces is by
default 1, rendering create and delete operations\r\nunusable. By
overriding `xpack.spaces.maxSpaces` to a number greater\r\nthan 1
(stateful default is 1000), it will effectively enable use of
the\r\nspaces CRUD operations in serverless.\r\n\r\n##
Tests\r\n-\r\nx-pack/test_serverless/api_integration/test_suites/common/management/multiple_spaces_enabled.ts\r\n-\r\nx-pack/test_serverless/api_integration/test_suites/common/management/spaces.ts\r\n-\r\nx-pack/test_serverless/api_integration/test_suites/common/platform_security/authorization.ts\r\n-\r\nx-pack/test_serverless/api_integration/test_suites/common/platform_security/roles_routes_feature_flag.ts\r\n-
Unit tests for each endpoint (to account for versioned router)\r\n-
Flaky Test
Runner:\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7002\r\n\r\n##
Manual Testing\r\n1. Start ES & Kibana in serverless mode with config
options to enable\r\nrole management and multiple
spaces\r\n\r\nElasticsearch:\r\n```\r\nxpack.security.authc.native_roles.enabled:
true\r\n```\r\n KIbana:\r\n```\r\n xpack.security.roleManagementEnabled:
true\r\n xpack.spaces.maxSpaces: 100\r\n```\r\n3. Issue each CRUD HTTP
API without including the internal origin
header\r\n('x-elastic-internal-origin') and verify you do not receive a
400 with\r\nthe message \"method [get|post|put|delete] exists but is not
available\r\nwith the current configuration\"\r\n4. Repeat steps 1 & 2
from the current head of main and verify that you\r\nDO receive a 400
with the message \"method [get|post|put|delete] exists\r\nbut is not
available with the current configuration\"\r\n\r\nRegression testing -
ensure that interfaces which leverage spaces and\r\nroles APIs are
functioning properly\r\n- Spaces management\r\n- Space navigation\r\n-
Roles management\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"26f2928b0887c9fda4403c0ce3fcc332b7c0e69a","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","Feature:Security/Spaces","release_note:skip","Feature:Security/Authorization","v9.0.0","backport:prev-minor","Project:Serverless"],"number":193534,"url":"https://github.com/elastic/kibana/pull/193534","mergeCommit":{"message":"Set
spaces and roles CRUD APIs to public (#193534)\n\nCloses
#192153\r\n\r\n## Summary\r\n\r\nThis PR sets the spaces and roles CRUD
operation HTTP API endpoints to\r\npublic in both stateful and
serverless offerings, and additionally,\r\nswitches to the versioned
router to register these endpoints.\r\n\r\nPrior to this PR, the access
level was not explicitly set, thus any\r\nendpoints registered in
serverless were by default internal. CRUD\r\noperations for spaces and
roles are being set to public to support the\r\nrollout of custom roles
in serverless, which coincides with enabling\r\nmultiple
spaces.\r\n\r\n### Note\r\n- Currently, roles APIs are only available in
serverless via a feature\r\nflag
(`xpack.security.roleManagementEnabled`)\r\n- Spaces APIs are already
registered in serverless, however, the maximum\r\nnumber of spaces is by
default 1, rendering create and delete operations\r\nunusable. By
overriding `xpack.spaces.maxSpaces` to a number greater\r\nthan 1
(stateful default is 1000), it will effectively enable use of
the\r\nspaces CRUD operations in serverless.\r\n\r\n##
Tests\r\n-\r\nx-pack/test_serverless/api_integration/test_suites/common/management/multiple_spaces_enabled.ts\r\n-\r\nx-pack/test_serverless/api_integration/test_suites/common/management/spaces.ts\r\n-\r\nx-pack/test_serverless/api_integration/test_suites/common/platform_security/authorization.ts\r\n-\r\nx-pack/test_serverless/api_integration/test_suites/common/platform_security/roles_routes_feature_flag.ts\r\n-
Unit tests for each endpoint (to account for versioned router)\r\n-
Flaky Test
Runner:\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7002\r\n\r\n##
Manual Testing\r\n1. Start ES & Kibana in serverless mode with config
options to enable\r\nrole management and multiple
spaces\r\n\r\nElasticsearch:\r\n```\r\nxpack.security.authc.native_roles.enabled:
true\r\n```\r\n KIbana:\r\n```\r\n xpack.security.roleManagementEnabled:
true\r\n xpack.spaces.maxSpaces: 100\r\n```\r\n3. Issue each CRUD HTTP
API without including the internal origin
header\r\n('x-elastic-internal-origin') and verify you do not receive a
400 with\r\nthe message \"method [get|post|put|delete] exists but is not
available\r\nwith the current configuration\"\r\n4. Repeat steps 1 & 2
from the current head of main and verify that you\r\nDO receive a 400
with the message \"method [get|post|put|delete] exists\r\nbut is not
available with the current configuration\"\r\n\r\nRegression testing -
ensure that interfaces which leverage spaces and\r\nroles APIs are
functioning properly\r\n- Spaces management\r\n- Space navigation\r\n-
Roles management\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"26f2928b0887c9fda4403c0ce3fcc332b7c0e69a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193534","number":193534,"mergeCommit":{"message":"Set
spaces and roles CRUD APIs to public (#193534)\n\nCloses
#192153\r\n\r\n## Summary\r\n\r\nThis PR sets the spaces and roles CRUD
operation HTTP API endpoints to\r\npublic in both stateful and
serverless offerings, and additionally,\r\nswitches to the versioned
router to register these endpoints.\r\n\r\nPrior to this PR, the access
level was not explicitly set, thus any\r\nendpoints registered in
serverless were by default internal. CRUD\r\noperations for spaces and
roles are being set to public to support the\r\nrollout of custom roles
in serverless, which coincides with enabling\r\nmultiple
spaces.\r\n\r\n### Note\r\n- Currently, roles APIs are only available in
serverless via a feature\r\nflag
(`xpack.security.roleManagementEnabled`)\r\n- Spaces APIs are already
registered in serverless, however, the maximum\r\nnumber of spaces is by
default 1, rendering create and delete operations\r\nunusable. By
overriding `xpack.spaces.maxSpaces` to a number greater\r\nthan 1
(stateful default is 1000), it will effectively enable use of
the\r\nspaces CRUD operations in serverless.\r\n\r\n##
Tests\r\n-\r\nx-pack/test_serverless/api_integration/test_suites/common/management/multiple_spaces_enabled.ts\r\n-\r\nx-pack/test_serverless/api_integration/test_suites/common/management/spaces.ts\r\n-\r\nx-pack/test_serverless/api_integration/test_suites/common/platform_security/authorization.ts\r\n-\r\nx-pack/test_serverless/api_integration/test_suites/common/platform_security/roles_routes_feature_flag.ts\r\n-
Unit tests for each endpoint (to account for versioned router)\r\n-
Flaky Test
Runner:\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7002\r\n\r\n##
Manual Testing\r\n1. Start ES & Kibana in serverless mode with config
options to enable\r\nrole management and multiple
spaces\r\n\r\nElasticsearch:\r\n```\r\nxpack.security.authc.native_roles.enabled:
true\r\n```\r\n KIbana:\r\n```\r\n xpack.security.roleManagementEnabled:
true\r\n xpack.spaces.maxSpaces: 100\r\n```\r\n3. Issue each CRUD HTTP
API without including the internal origin
header\r\n('x-elastic-internal-origin') and verify you do not receive a
400 with\r\nthe message \"method [get|post|put|delete] exists but is not
available\r\nwith the current configuration\"\r\n4. Repeat steps 1 & 2
from the current head of main and verify that you\r\nDO receive a 400
with the message \"method [get|post|put|delete] exists\r\nbut is not
available with the current configuration\"\r\n\r\nRegression testing -
ensure that interfaces which leverage spaces and\r\nroles APIs are
functioning properly\r\n- Spaces management\r\n- Space navigation\r\n-
Roles management\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"26f2928b0887c9fda4403c0ce3fcc332b7c0e69a"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-10-16 09:09:27 +02:00
Kibana Machine
760021bb27
[8.x] [Stateful sidenav] Fix breadcrumbs (#196169) (#196332)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Stateful sidenav] Fix breadcrumbs
(#196169)](https://github.com/elastic/kibana/pull/196169)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Sébastien
Loix","email":"sebastien.loix@elastic.co"},"sourceCommit":{"committedDate":"2024-10-15T14:37:19Z","message":"[Stateful
sidenav] Fix breadcrumbs
(#196169)","sha":"204f9d3a2f2fef174e24f3a79eb6d7b2f2ef03f2","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","Feature:Chrome"],"title":"[Stateful
sidenav] Fix
breadcrumbs","number":196169,"url":"https://github.com/elastic/kibana/pull/196169","mergeCommit":{"message":"[Stateful
sidenav] Fix breadcrumbs
(#196169)","sha":"204f9d3a2f2fef174e24f3a79eb6d7b2f2ef03f2"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196169","number":196169,"mergeCommit":{"message":"[Stateful
sidenav] Fix breadcrumbs
(#196169)","sha":"204f9d3a2f2fef174e24f3a79eb6d7b2f2ef03f2"}}]}]
BACKPORT-->

Co-authored-by: Sébastien Loix <sebastien.loix@elastic.co>
2024-10-15 11:26:00 -05:00
Kibana Machine
0158fec36f
[8.x] [Http] Make HTTP resource routes respond without the versioned header (#195940) (#196324)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Http] Make HTTP resource routes respond without the versioned header
(#195940)](https://github.com/elastic/kibana/pull/195940)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Jean-Louis
Leysens","email":"jeanlouis.leysens@elastic.co"},"sourceCommit":{"committedDate":"2024-10-15T14:09:42Z","message":"[Http]
Make HTTP resource routes respond without the versioned header
(#195940)\n\n## Summary\r\n\r\nFollow up on
https://github.com/elastic/kibana/pull/195464\r\n\r\nAdds public route
registrar option `httpResource` to distinguish API\r\nroutes from routes
intended to be used for loading resources,
[for\r\nex](bd22f1370f/x-pack/plugins/security/server/routes/authentication/oidc.ts (L36)).\r\n\r\nThis
enables us to avoid returning the version
header\r\n`elastic-api-version` for HTTP resource routes.\r\n\r\nIt's
still possible for API authors to use the versioned router for\r\nthings
that should be HTTP resources, but it's assumed that all
routes\r\nregistered through HTTP resources services are:\r\n\r\n1.
Public\r\n2. Not versioned (focus of this PR)\r\n3. Not documented (done
in\r\nhttps://github.com/elastic/kibana/pull/192675)\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"72f3d2d3491f6da4b0c9147e766635e9dbb9cbe8","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:http","Team:Core","release_note:skip","v9.0.0","v8.16.0","backport:version"],"title":"[Http]
Make HTTP resource routes respond without the versioned
header","number":195940,"url":"https://github.com/elastic/kibana/pull/195940","mergeCommit":{"message":"[Http]
Make HTTP resource routes respond without the versioned header
(#195940)\n\n## Summary\r\n\r\nFollow up on
https://github.com/elastic/kibana/pull/195464\r\n\r\nAdds public route
registrar option `httpResource` to distinguish API\r\nroutes from routes
intended to be used for loading resources,
[for\r\nex](bd22f1370f/x-pack/plugins/security/server/routes/authentication/oidc.ts (L36)).\r\n\r\nThis
enables us to avoid returning the version
header\r\n`elastic-api-version` for HTTP resource routes.\r\n\r\nIt's
still possible for API authors to use the versioned router for\r\nthings
that should be HTTP resources, but it's assumed that all
routes\r\nregistered through HTTP resources services are:\r\n\r\n1.
Public\r\n2. Not versioned (focus of this PR)\r\n3. Not documented (done
in\r\nhttps://github.com/elastic/kibana/pull/192675)\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"72f3d2d3491f6da4b0c9147e766635e9dbb9cbe8"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195940","number":195940,"mergeCommit":{"message":"[Http]
Make HTTP resource routes respond without the versioned header
(#195940)\n\n## Summary\r\n\r\nFollow up on
https://github.com/elastic/kibana/pull/195464\r\n\r\nAdds public route
registrar option `httpResource` to distinguish API\r\nroutes from routes
intended to be used for loading resources,
[for\r\nex](bd22f1370f/x-pack/plugins/security/server/routes/authentication/oidc.ts (L36)).\r\n\r\nThis
enables us to avoid returning the version
header\r\n`elastic-api-version` for HTTP resource routes.\r\n\r\nIt's
still possible for API authors to use the versioned router for\r\nthings
that should be HTTP resources, but it's assumed that all
routes\r\nregistered through HTTP resources services are:\r\n\r\n1.
Public\r\n2. Not versioned (focus of this PR)\r\n3. Not documented (done
in\r\nhttps://github.com/elastic/kibana/pull/192675)\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"72f3d2d3491f6da4b0c9147e766635e9dbb9cbe8"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jean-Louis Leysens <jeanlouis.leysens@elastic.co>
2024-10-15 11:10:28 -05:00
Kibana Machine
2d16d45d1d
[8.x] Upgrade EUI to v97.0.0 (#195525) (#196116)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Upgrade EUI to v97.0.0
(#195525)](https://github.com/elastic/kibana/pull/195525)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Cee
Chen","email":"549407+cee-chen@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-14T11:35:35Z","message":"Upgrade
EUI to v97.0.0 (#195525)\n\n`v96.1.0``v97.0.0`\r\n\r\n_[Questions?
Please see our Kibana
upgrade\r\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_\r\n\r\n---\r\n\r\n##
[`v97.0.0`](https://github.com/elastic/eui/releases/v97.0.0)\r\n\r\n**Breaking
changes**\r\n\r\n- EuiDataGrid's custom grid body (rendered via
`renderCustomGridBody`)\r\nno longer automatically renders the column
header row or footer rows. It\r\ninstead now passes the `headerRow` and
`footerRow` React elements, which\r\nrequire manual
rendering.\r\n([#8028](https://github.com/elastic/eui/pull/8028))\r\n-
This change was made to allow consumers to sync header/footer
rows\r\nwith their own custom virtualization libraries.\r\n- To
facilitate this, a `gridWidth` prop is now also passed to custom\r\ngrid
body renderers.\r\n\r\n**Bug fixes**\r\n\r\n- Fixed inputs not taking
the whole width when passing `fullWidth` as\r\n`true` to
EuiDatePickerRange
component\r\n([#8061](https://github.com/elastic/eui/pull/8061))\r\n\r\n**Accessibility**\r\n\r\n-
Improved accessibility of `EuiExternalLinkIcon` by clarifying text
for\r\nScreen Reader users.
([#8065](https://github.com/elastic/eui/pull/8065))\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"cd60c66d19ffdb4130a5c2d1b76e80cfaf8cde78","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Embedding","release_note:skip","EUI","v9.0.0","ci:project-deploy-observability","Team:obs-ux-infra_services","Team:obs-ux-management","v8.16.0","backport:version"],"title":"Upgrade
EUI to
v97.0.0","number":195525,"url":"https://github.com/elastic/kibana/pull/195525","mergeCommit":{"message":"Upgrade
EUI to v97.0.0 (#195525)\n\n`v96.1.0``v97.0.0`\r\n\r\n_[Questions?
Please see our Kibana
upgrade\r\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_\r\n\r\n---\r\n\r\n##
[`v97.0.0`](https://github.com/elastic/eui/releases/v97.0.0)\r\n\r\n**Breaking
changes**\r\n\r\n- EuiDataGrid's custom grid body (rendered via
`renderCustomGridBody`)\r\nno longer automatically renders the column
header row or footer rows. It\r\ninstead now passes the `headerRow` and
`footerRow` React elements, which\r\nrequire manual
rendering.\r\n([#8028](https://github.com/elastic/eui/pull/8028))\r\n-
This change was made to allow consumers to sync header/footer
rows\r\nwith their own custom virtualization libraries.\r\n- To
facilitate this, a `gridWidth` prop is now also passed to custom\r\ngrid
body renderers.\r\n\r\n**Bug fixes**\r\n\r\n- Fixed inputs not taking
the whole width when passing `fullWidth` as\r\n`true` to
EuiDatePickerRange
component\r\n([#8061](https://github.com/elastic/eui/pull/8061))\r\n\r\n**Accessibility**\r\n\r\n-
Improved accessibility of `EuiExternalLinkIcon` by clarifying text
for\r\nScreen Reader users.
([#8065](https://github.com/elastic/eui/pull/8065))\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"cd60c66d19ffdb4130a5c2d1b76e80cfaf8cde78"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195525","number":195525,"mergeCommit":{"message":"Upgrade
EUI to v97.0.0 (#195525)\n\n`v96.1.0``v97.0.0`\r\n\r\n_[Questions?
Please see our Kibana
upgrade\r\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_\r\n\r\n---\r\n\r\n##
[`v97.0.0`](https://github.com/elastic/eui/releases/v97.0.0)\r\n\r\n**Breaking
changes**\r\n\r\n- EuiDataGrid's custom grid body (rendered via
`renderCustomGridBody`)\r\nno longer automatically renders the column
header row or footer rows. It\r\ninstead now passes the `headerRow` and
`footerRow` React elements, which\r\nrequire manual
rendering.\r\n([#8028](https://github.com/elastic/eui/pull/8028))\r\n-
This change was made to allow consumers to sync header/footer
rows\r\nwith their own custom virtualization libraries.\r\n- To
facilitate this, a `gridWidth` prop is now also passed to custom\r\ngrid
body renderers.\r\n\r\n**Bug fixes**\r\n\r\n- Fixed inputs not taking
the whole width when passing `fullWidth` as\r\n`true` to
EuiDatePickerRange
component\r\n([#8061](https://github.com/elastic/eui/pull/8061))\r\n\r\n**Accessibility**\r\n\r\n-
Improved accessibility of `EuiExternalLinkIcon` by clarifying text
for\r\nScreen Reader users.
([#8065](https://github.com/elastic/eui/pull/8065))\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"cd60c66d19ffdb4130a5c2d1b76e80cfaf8cde78"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Cee Chen <549407+cee-chen@users.noreply.github.com>
2024-10-14 08:31:39 -05:00
Kibana Machine
bf56b4ea3a
[8.x] [Core] log on external requests to internal routes (#195696) (#195974)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Core] log on external requests to internal routes
(#195696)](https://github.com/elastic/kibana/pull/195696)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Christiane (Tina)
Heiligers","email":"christiane.heiligers@elastic.co"},"sourceCommit":{"committedDate":"2024-10-11T18:02:31Z","message":"[Core]
log on external requests to internal routes (#195696)\n\nfix
[#194772](https://github.com/elastic/kibana/issues/194772)\r\n\r\nKibana
logs a warning when detecting requests from integrations
with\r\ninternal APIs when the restriction is not enforced or explicitly
set to\r\n`false`.\r\nConsumers can use these logs to audit their
integrations and make\r\nchanges before the restriction becomes
enforced.\r\n\r\n### Note ###\r\nAfter 9.0, the restriction will be
enforced. Explicitly disabling the\r\nrestriction effectively opts into
using internal routes, which are\r\nsubject to change and not
recommended for non-Elastic consumption.\r\n\r\nBypassing the
restriction for specific routes by adding the necessary\r\nheader or
query parameter that allows access is also not recommended
for\r\nnon-Elastic consumption.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n## How to
test this ##\r\n\r\n#### Test as an external consumer making a request
to an internal route\r\n####\r\n\r\n<details>\r\n<summary>1. Enforce
restricted internal APIs & enable
logging:</summary>\r\n\r\n```//kibana.yml\r\nserver.restrictInternalApis:
true // or don't declare\r\n...\r\nlogging\r\n appenders:\r\n
http-custom:\r\n type: console\r\n layout:\r\n type: pattern\r\n
highlight: true\r\n pattern:
\"HTTP_CUSTOM--[%date][%level][%logger]---%message\"\r\n root:\r\n
appenders: [console]\r\n level: warn\r\n loggers\r\n - name:
http.server.kbn-internal-api-restricted\r\n level: warn\r\n appenders:
[http-custom]\r\n```\r\n</details>\r\n\r\n2. Start ES (any
license)\r\n3. Start Kbn\r\n\r\n<details>\r\n<summary>4. GET global
settings:</summary>\r\n\r\n```\r\ncurl --location
'localhost:5601/abc/internal/kibana/global_settings' \\\r\n--header
'Content-Type: application/json' \\\r\n--header 'Accept-Encoding: gzip,
deflate, br' \\\r\n--header 'kbn-xsrf: kibana' \\\r\n--header
'Kbn-Version: 9.0.0' \\\r\n--header 'Authorization: Basic
ZWxhc3RpYzpjaGFuZ2VtZQ=='\r\n```\r\n</details>\r\n\r\n5. The response
from the curl request shoud
be:\r\n```\r\n{\"statusCode\":400,\"error\":\"Bad
Request\",\"message\":\"uri [/internal/kibana/global_settings] with
method [get] exists but is not available with the current
configuration\"}\r\n```\r\n6. You should see an error log from
the\r\n`http.server.kbnInternalApiRestricted`
logger:\r\n```\r\nHTTP_CUSTOM--[2024-10-10T13:04:51.287-07:00][ERROR][http.server.kbn-internal-api-restricted]---Access
to uri [/internal/kibana/global_settings] with method [get] is not
available with the current configuration\r\n```\r\n\r\n#### Bypass the
restriction for the global settings route (opt in to use\r\nthe internal
route)\r\nKeeping the same configuration and with ES and Kbn still
running, add\r\nthe 'x-elastic-internal-origin' header to the curl
request ####\r\n\r\n<details>\r\n<summary>1. Opt in to use the global
settings route:</summary>\r\n\r\n```\r\ncurl --location
'localhost:5601/abc/internal/kibana/global_settings' \\\r\n--header
'Content-Type: application/json' \\\r\n--header 'Accept-Encoding: gzip,
deflate, br' \\\r\n--header 'kbn-xsrf: kibana' \\\r\n--header
'Kbn-Version: 9.0.0' \\\r\n--header 'x-elastic-internal-origin: kibana'
\\\r\n--header 'Authorization: Basic
ZWxhc3RpYzpjaGFuZ2VtZQ=='\r\n```\r\n</details>\r\n\r\n2. The response
from the curl request shoud
be:\r\n```\r\n{\"settings\":{\"buildNum\":{\"userValue\":9007199254740991},\"isDefaultIndexMigrated\":{\"userValue\":true}}}\r\n```\r\n3.
You shouldn't see any new logs from
the\r\n`http.server.kbnInternalApiRestricted` logger\r\n\r\n#### Test as
an external consumer explicitly disabling the restriction\r\ncompletely
(not recommended and not guaranteed)
####\r\n\r\n<details>\r\n<summary>1. Disable restricted internal APIs &
enable
logging:</summary>\r\n\r\n```//kibana.yml\r\nserver.restrictInternalApis:
false\r\n...\r\nlogging\r\n appenders:\r\n http-custom:\r\n type:
console\r\n layout:\r\n type: pattern\r\n highlight: true\r\n pattern:
\"HTTP_CUSTOM--[%date][%level][%logger]---%message\"\r\n root:\r\n
appenders: [console]\r\n level: warn\r\n loggers\r\n - name:
http.server.kbn-internal-api-restricted\r\n level: warn\r\n appenders:
[http-custom]\r\n```\r\n</details>\r\n\r\n2. Start ES (any
license)\r\n3. Start Kbn\r\n\r\n<details>\r\n<summary>4. GET global
settings:</summary>\r\n\r\n```\r\ncurl --location
'localhost:5601/abc/internal/kibana/global_settings' \\\r\n--header
'Content-Type: application/json' \\\r\n--header 'Accept-Encoding: gzip,
deflate, br' \\\r\n--header 'kbn-xsrf: kibana' \\\r\n--header
'Kbn-Version: 9.0.0' \\\r\n--header 'Authorization: Basic
ZWxhc3RpYzpjaGFuZ2VtZQ=='\r\n```\r\n</details>\r\n\r\n5. The response
from the curl request shoud
be:\r\n```\r\n{\"settings\":{\"buildNum\":{\"userValue\":9007199254740991},\"isDefaultIndexMigrated\":{\"userValue\":true}}}\r\n```\r\n6.
You should see a warning log from
the\r\n`http.server.kbnInternalApiRestricted`
logger:\r\n```\r\nHTTP_CUSTOM--[2024-10-10T13:31:48.729-07:00][WARN
][http.server.kbn-internal-api-restricted]---Access to uri
[/internal/kibana/global_settings] with method [get] is
deprecated\r\n```\r\n<details>\r\n<summary>7. Add the internal origin
header to the request:</summary>\r\n\r\n```\r\ncurl --location
'localhost:5601/abc/internal/kibana/global_settings' \\\r\n--header
'Content-Type: application/json' \\\r\n--header 'Accept-Encoding: gzip,
deflate, br' \\\r\n--header 'kbn-xsrf: kibana' \\\r\n--header
'Kbn-Version: 9.0.0' \\\r\n--header 'x-elastic-internal-origin: kibana'
\\\r\n--header 'Authorization: Basic
ZWxhc3RpYzpjaGFuZ2VtZQ=='\r\n```\r\n</details>\r\n\r\n8. The response
from the curl request shoud
be:\r\n```\r\n{\"settings\":{\"buildNum\":{\"userValue\":9007199254740991},\"isDefaultIndexMigrated\":{\"userValue\":true}}}\r\n```\r\n9.
You shouldn't see any new logs from
the\r\n`http.server.kbnInternalApiRestricted`
logger.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"d0bdbdddb200a2656567c9b9f05d1e934c5a4cea","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Core]
log on external requests to internal
routes","number":195696,"url":"https://github.com/elastic/kibana/pull/195696","mergeCommit":{"message":"[Core]
log on external requests to internal routes (#195696)\n\nfix
[#194772](https://github.com/elastic/kibana/issues/194772)\r\n\r\nKibana
logs a warning when detecting requests from integrations
with\r\ninternal APIs when the restriction is not enforced or explicitly
set to\r\n`false`.\r\nConsumers can use these logs to audit their
integrations and make\r\nchanges before the restriction becomes
enforced.\r\n\r\n### Note ###\r\nAfter 9.0, the restriction will be
enforced. Explicitly disabling the\r\nrestriction effectively opts into
using internal routes, which are\r\nsubject to change and not
recommended for non-Elastic consumption.\r\n\r\nBypassing the
restriction for specific routes by adding the necessary\r\nheader or
query parameter that allows access is also not recommended
for\r\nnon-Elastic consumption.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n## How to
test this ##\r\n\r\n#### Test as an external consumer making a request
to an internal route\r\n####\r\n\r\n<details>\r\n<summary>1. Enforce
restricted internal APIs & enable
logging:</summary>\r\n\r\n```//kibana.yml\r\nserver.restrictInternalApis:
true // or don't declare\r\n...\r\nlogging\r\n appenders:\r\n
http-custom:\r\n type: console\r\n layout:\r\n type: pattern\r\n
highlight: true\r\n pattern:
\"HTTP_CUSTOM--[%date][%level][%logger]---%message\"\r\n root:\r\n
appenders: [console]\r\n level: warn\r\n loggers\r\n - name:
http.server.kbn-internal-api-restricted\r\n level: warn\r\n appenders:
[http-custom]\r\n```\r\n</details>\r\n\r\n2. Start ES (any
license)\r\n3. Start Kbn\r\n\r\n<details>\r\n<summary>4. GET global
settings:</summary>\r\n\r\n```\r\ncurl --location
'localhost:5601/abc/internal/kibana/global_settings' \\\r\n--header
'Content-Type: application/json' \\\r\n--header 'Accept-Encoding: gzip,
deflate, br' \\\r\n--header 'kbn-xsrf: kibana' \\\r\n--header
'Kbn-Version: 9.0.0' \\\r\n--header 'Authorization: Basic
ZWxhc3RpYzpjaGFuZ2VtZQ=='\r\n```\r\n</details>\r\n\r\n5. The response
from the curl request shoud
be:\r\n```\r\n{\"statusCode\":400,\"error\":\"Bad
Request\",\"message\":\"uri [/internal/kibana/global_settings] with
method [get] exists but is not available with the current
configuration\"}\r\n```\r\n6. You should see an error log from
the\r\n`http.server.kbnInternalApiRestricted`
logger:\r\n```\r\nHTTP_CUSTOM--[2024-10-10T13:04:51.287-07:00][ERROR][http.server.kbn-internal-api-restricted]---Access
to uri [/internal/kibana/global_settings] with method [get] is not
available with the current configuration\r\n```\r\n\r\n#### Bypass the
restriction for the global settings route (opt in to use\r\nthe internal
route)\r\nKeeping the same configuration and with ES and Kbn still
running, add\r\nthe 'x-elastic-internal-origin' header to the curl
request ####\r\n\r\n<details>\r\n<summary>1. Opt in to use the global
settings route:</summary>\r\n\r\n```\r\ncurl --location
'localhost:5601/abc/internal/kibana/global_settings' \\\r\n--header
'Content-Type: application/json' \\\r\n--header 'Accept-Encoding: gzip,
deflate, br' \\\r\n--header 'kbn-xsrf: kibana' \\\r\n--header
'Kbn-Version: 9.0.0' \\\r\n--header 'x-elastic-internal-origin: kibana'
\\\r\n--header 'Authorization: Basic
ZWxhc3RpYzpjaGFuZ2VtZQ=='\r\n```\r\n</details>\r\n\r\n2. The response
from the curl request shoud
be:\r\n```\r\n{\"settings\":{\"buildNum\":{\"userValue\":9007199254740991},\"isDefaultIndexMigrated\":{\"userValue\":true}}}\r\n```\r\n3.
You shouldn't see any new logs from
the\r\n`http.server.kbnInternalApiRestricted` logger\r\n\r\n#### Test as
an external consumer explicitly disabling the restriction\r\ncompletely
(not recommended and not guaranteed)
####\r\n\r\n<details>\r\n<summary>1. Disable restricted internal APIs &
enable
logging:</summary>\r\n\r\n```//kibana.yml\r\nserver.restrictInternalApis:
false\r\n...\r\nlogging\r\n appenders:\r\n http-custom:\r\n type:
console\r\n layout:\r\n type: pattern\r\n highlight: true\r\n pattern:
\"HTTP_CUSTOM--[%date][%level][%logger]---%message\"\r\n root:\r\n
appenders: [console]\r\n level: warn\r\n loggers\r\n - name:
http.server.kbn-internal-api-restricted\r\n level: warn\r\n appenders:
[http-custom]\r\n```\r\n</details>\r\n\r\n2. Start ES (any
license)\r\n3. Start Kbn\r\n\r\n<details>\r\n<summary>4. GET global
settings:</summary>\r\n\r\n```\r\ncurl --location
'localhost:5601/abc/internal/kibana/global_settings' \\\r\n--header
'Content-Type: application/json' \\\r\n--header 'Accept-Encoding: gzip,
deflate, br' \\\r\n--header 'kbn-xsrf: kibana' \\\r\n--header
'Kbn-Version: 9.0.0' \\\r\n--header 'Authorization: Basic
ZWxhc3RpYzpjaGFuZ2VtZQ=='\r\n```\r\n</details>\r\n\r\n5. The response
from the curl request shoud
be:\r\n```\r\n{\"settings\":{\"buildNum\":{\"userValue\":9007199254740991},\"isDefaultIndexMigrated\":{\"userValue\":true}}}\r\n```\r\n6.
You should see a warning log from
the\r\n`http.server.kbnInternalApiRestricted`
logger:\r\n```\r\nHTTP_CUSTOM--[2024-10-10T13:31:48.729-07:00][WARN
][http.server.kbn-internal-api-restricted]---Access to uri
[/internal/kibana/global_settings] with method [get] is
deprecated\r\n```\r\n<details>\r\n<summary>7. Add the internal origin
header to the request:</summary>\r\n\r\n```\r\ncurl --location
'localhost:5601/abc/internal/kibana/global_settings' \\\r\n--header
'Content-Type: application/json' \\\r\n--header 'Accept-Encoding: gzip,
deflate, br' \\\r\n--header 'kbn-xsrf: kibana' \\\r\n--header
'Kbn-Version: 9.0.0' \\\r\n--header 'x-elastic-internal-origin: kibana'
\\\r\n--header 'Authorization: Basic
ZWxhc3RpYzpjaGFuZ2VtZQ=='\r\n```\r\n</details>\r\n\r\n8. The response
from the curl request shoud
be:\r\n```\r\n{\"settings\":{\"buildNum\":{\"userValue\":9007199254740991},\"isDefaultIndexMigrated\":{\"userValue\":true}}}\r\n```\r\n9.
You shouldn't see any new logs from
the\r\n`http.server.kbnInternalApiRestricted`
logger.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"d0bdbdddb200a2656567c9b9f05d1e934c5a4cea"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195696","number":195696,"mergeCommit":{"message":"[Core]
log on external requests to internal routes (#195696)\n\nfix
[#194772](https://github.com/elastic/kibana/issues/194772)\r\n\r\nKibana
logs a warning when detecting requests from integrations
with\r\ninternal APIs when the restriction is not enforced or explicitly
set to\r\n`false`.\r\nConsumers can use these logs to audit their
integrations and make\r\nchanges before the restriction becomes
enforced.\r\n\r\n### Note ###\r\nAfter 9.0, the restriction will be
enforced. Explicitly disabling the\r\nrestriction effectively opts into
using internal routes, which are\r\nsubject to change and not
recommended for non-Elastic consumption.\r\n\r\nBypassing the
restriction for specific routes by adding the necessary\r\nheader or
query parameter that allows access is also not recommended
for\r\nnon-Elastic consumption.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n## How to
test this ##\r\n\r\n#### Test as an external consumer making a request
to an internal route\r\n####\r\n\r\n<details>\r\n<summary>1. Enforce
restricted internal APIs & enable
logging:</summary>\r\n\r\n```//kibana.yml\r\nserver.restrictInternalApis:
true // or don't declare\r\n...\r\nlogging\r\n appenders:\r\n
http-custom:\r\n type: console\r\n layout:\r\n type: pattern\r\n
highlight: true\r\n pattern:
\"HTTP_CUSTOM--[%date][%level][%logger]---%message\"\r\n root:\r\n
appenders: [console]\r\n level: warn\r\n loggers\r\n - name:
http.server.kbn-internal-api-restricted\r\n level: warn\r\n appenders:
[http-custom]\r\n```\r\n</details>\r\n\r\n2. Start ES (any
license)\r\n3. Start Kbn\r\n\r\n<details>\r\n<summary>4. GET global
settings:</summary>\r\n\r\n```\r\ncurl --location
'localhost:5601/abc/internal/kibana/global_settings' \\\r\n--header
'Content-Type: application/json' \\\r\n--header 'Accept-Encoding: gzip,
deflate, br' \\\r\n--header 'kbn-xsrf: kibana' \\\r\n--header
'Kbn-Version: 9.0.0' \\\r\n--header 'Authorization: Basic
ZWxhc3RpYzpjaGFuZ2VtZQ=='\r\n```\r\n</details>\r\n\r\n5. The response
from the curl request shoud
be:\r\n```\r\n{\"statusCode\":400,\"error\":\"Bad
Request\",\"message\":\"uri [/internal/kibana/global_settings] with
method [get] exists but is not available with the current
configuration\"}\r\n```\r\n6. You should see an error log from
the\r\n`http.server.kbnInternalApiRestricted`
logger:\r\n```\r\nHTTP_CUSTOM--[2024-10-10T13:04:51.287-07:00][ERROR][http.server.kbn-internal-api-restricted]---Access
to uri [/internal/kibana/global_settings] with method [get] is not
available with the current configuration\r\n```\r\n\r\n#### Bypass the
restriction for the global settings route (opt in to use\r\nthe internal
route)\r\nKeeping the same configuration and with ES and Kbn still
running, add\r\nthe 'x-elastic-internal-origin' header to the curl
request ####\r\n\r\n<details>\r\n<summary>1. Opt in to use the global
settings route:</summary>\r\n\r\n```\r\ncurl --location
'localhost:5601/abc/internal/kibana/global_settings' \\\r\n--header
'Content-Type: application/json' \\\r\n--header 'Accept-Encoding: gzip,
deflate, br' \\\r\n--header 'kbn-xsrf: kibana' \\\r\n--header
'Kbn-Version: 9.0.0' \\\r\n--header 'x-elastic-internal-origin: kibana'
\\\r\n--header 'Authorization: Basic
ZWxhc3RpYzpjaGFuZ2VtZQ=='\r\n```\r\n</details>\r\n\r\n2. The response
from the curl request shoud
be:\r\n```\r\n{\"settings\":{\"buildNum\":{\"userValue\":9007199254740991},\"isDefaultIndexMigrated\":{\"userValue\":true}}}\r\n```\r\n3.
You shouldn't see any new logs from
the\r\n`http.server.kbnInternalApiRestricted` logger\r\n\r\n#### Test as
an external consumer explicitly disabling the restriction\r\ncompletely
(not recommended and not guaranteed)
####\r\n\r\n<details>\r\n<summary>1. Disable restricted internal APIs &
enable
logging:</summary>\r\n\r\n```//kibana.yml\r\nserver.restrictInternalApis:
false\r\n...\r\nlogging\r\n appenders:\r\n http-custom:\r\n type:
console\r\n layout:\r\n type: pattern\r\n highlight: true\r\n pattern:
\"HTTP_CUSTOM--[%date][%level][%logger]---%message\"\r\n root:\r\n
appenders: [console]\r\n level: warn\r\n loggers\r\n - name:
http.server.kbn-internal-api-restricted\r\n level: warn\r\n appenders:
[http-custom]\r\n```\r\n</details>\r\n\r\n2. Start ES (any
license)\r\n3. Start Kbn\r\n\r\n<details>\r\n<summary>4. GET global
settings:</summary>\r\n\r\n```\r\ncurl --location
'localhost:5601/abc/internal/kibana/global_settings' \\\r\n--header
'Content-Type: application/json' \\\r\n--header 'Accept-Encoding: gzip,
deflate, br' \\\r\n--header 'kbn-xsrf: kibana' \\\r\n--header
'Kbn-Version: 9.0.0' \\\r\n--header 'Authorization: Basic
ZWxhc3RpYzpjaGFuZ2VtZQ=='\r\n```\r\n</details>\r\n\r\n5. The response
from the curl request shoud
be:\r\n```\r\n{\"settings\":{\"buildNum\":{\"userValue\":9007199254740991},\"isDefaultIndexMigrated\":{\"userValue\":true}}}\r\n```\r\n6.
You should see a warning log from
the\r\n`http.server.kbnInternalApiRestricted`
logger:\r\n```\r\nHTTP_CUSTOM--[2024-10-10T13:31:48.729-07:00][WARN
][http.server.kbn-internal-api-restricted]---Access to uri
[/internal/kibana/global_settings] with method [get] is
deprecated\r\n```\r\n<details>\r\n<summary>7. Add the internal origin
header to the request:</summary>\r\n\r\n```\r\ncurl --location
'localhost:5601/abc/internal/kibana/global_settings' \\\r\n--header
'Content-Type: application/json' \\\r\n--header 'Accept-Encoding: gzip,
deflate, br' \\\r\n--header 'kbn-xsrf: kibana' \\\r\n--header
'Kbn-Version: 9.0.0' \\\r\n--header 'x-elastic-internal-origin: kibana'
\\\r\n--header 'Authorization: Basic
ZWxhc3RpYzpjaGFuZ2VtZQ=='\r\n```\r\n</details>\r\n\r\n8. The response
from the curl request shoud
be:\r\n```\r\n{\"settings\":{\"buildNum\":{\"userValue\":9007199254740991},\"isDefaultIndexMigrated\":{\"userValue\":true}}}\r\n```\r\n9.
You shouldn't see any new logs from
the\r\n`http.server.kbnInternalApiRestricted`
logger.\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"d0bdbdddb200a2656567c9b9f05d1e934c5a4cea"}}]}]
BACKPORT-->

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2024-10-11 14:57:52 -05:00
Kibana Machine
77e8ad4480
[8.x] [Stateful sidenav] Feedback button (#195751) (#195933)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Stateful sidenav] Feedback button
(#195751)](https://github.com/elastic/kibana/pull/195751)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Sébastien
Loix","email":"sebastien.loix@elastic.co"},"sourceCommit":{"committedDate":"2024-10-11T14:29:39Z","message":"[Stateful
sidenav] Feedback button
(#195751)","sha":"c1c70c73aa02931f39045fdf2bc7938aea53c58d","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","Feature:Chrome"],"title":"[Stateful
sidenav] Feedback
button","number":195751,"url":"https://github.com/elastic/kibana/pull/195751","mergeCommit":{"message":"[Stateful
sidenav] Feedback button
(#195751)","sha":"c1c70c73aa02931f39045fdf2bc7938aea53c58d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195751","number":195751,"mergeCommit":{"message":"[Stateful
sidenav] Feedback button
(#195751)","sha":"c1c70c73aa02931f39045fdf2bc7938aea53c58d"}}]}]
BACKPORT-->

Co-authored-by: Sébastien Loix <sebastien.loix@elastic.co>
2024-10-11 11:16:50 -05:00
Kibana Machine
8bd34c49e5
[8.x] [HTTP] Copy array returned by &#x60;getRoutes&#x60; (#195647) (#195714)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[HTTP] Copy array returned by &#x60;getRoutes&#x60;
(#195647)](https://github.com/elastic/kibana/pull/195647)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Jean-Louis
Leysens","email":"jeanlouis.leysens@elastic.co"},"sourceCommit":{"committedDate":"2024-10-10T08:53:59Z","message":"[HTTP]
Copy array returned by `getRoutes` (#195647)\n\n## Summary\r\n\r\nSmall
follow up based
on\r\nhttps://github.com/elastic/kibana/pull/192675#discussion_r1793601519","sha":"a481da68e58cb20d6407c9866c1511717addfdb0","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:http","Team:Core","release_note:skip","v9.0.0","v8.16.0","backport:version"],"title":"[HTTP]
Copy array returned by
`getRoutes`","number":195647,"url":"https://github.com/elastic/kibana/pull/195647","mergeCommit":{"message":"[HTTP]
Copy array returned by `getRoutes` (#195647)\n\n## Summary\r\n\r\nSmall
follow up based
on\r\nhttps://github.com/elastic/kibana/pull/192675#discussion_r1793601519","sha":"a481da68e58cb20d6407c9866c1511717addfdb0"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195647","number":195647,"mergeCommit":{"message":"[HTTP]
Copy array returned by `getRoutes` (#195647)\n\n## Summary\r\n\r\nSmall
follow up based
on\r\nhttps://github.com/elastic/kibana/pull/192675#discussion_r1793601519","sha":"a481da68e58cb20d6407c9866c1511717addfdb0"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jean-Louis Leysens <jeanlouis.leysens@elastic.co>
2024-10-10 12:58:28 +02:00
Kibana Machine
358b2795f2
[8.x] Update deprecations carried over from 8 (#195491) (#195654)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Update deprecations carried over from 8
(#195491)](https://github.com/elastic/kibana/pull/195491)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Christiane (Tina)
Heiligers","email":"christiane.heiligers@elastic.co"},"sourceCommit":{"committedDate":"2024-10-09T17:12:52Z","message":"Update
deprecations carried over from 8 (#195491)\n\nFix
https://github.com/elastic/kibana/issues/142915\r\n\r\n### Risk
Matrix\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Third party plugin types throw type errors | Low | Low | type
checks\r\nwill error when using a deprecated type. Plugin authors should
extend\r\nthe supported types or define new ones inline |\r\n\r\n### For
maintainers\r\n\r\n- [X] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n(no
breaking
changes)","sha":"5ed13ee4a4b4325bae2f3e117a4fc400540fa542","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor","v8.16.0"],"title":"Update
deprecations carried over from
8","number":195491,"url":"https://github.com/elastic/kibana/pull/195491","mergeCommit":{"message":"Update
deprecations carried over from 8 (#195491)\n\nFix
https://github.com/elastic/kibana/issues/142915\r\n\r\n### Risk
Matrix\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Third party plugin types throw type errors | Low | Low | type
checks\r\nwill error when using a deprecated type. Plugin authors should
extend\r\nthe supported types or define new ones inline |\r\n\r\n### For
maintainers\r\n\r\n- [X] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n(no
breaking
changes)","sha":"5ed13ee4a4b4325bae2f3e117a4fc400540fa542"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195491","number":195491,"mergeCommit":{"message":"Update
deprecations carried over from 8 (#195491)\n\nFix
https://github.com/elastic/kibana/issues/142915\r\n\r\n### Risk
Matrix\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Third party plugin types throw type errors | Low | Low | type
checks\r\nwill error when using a deprecated type. Plugin authors should
extend\r\nthe supported types or define new ones inline |\r\n\r\n### For
maintainers\r\n\r\n- [X] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n(no
breaking
changes)","sha":"5ed13ee4a4b4325bae2f3e117a4fc400540fa542"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2024-10-09 21:14:11 +02:00
Kibana Machine
95ebd3a84c
[8.x] [HTTP/OAS] Ability to exclude routes from introspection (#192675) (#195652)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[HTTP/OAS] Ability to exclude routes from introspection
(#192675)](https://github.com/elastic/kibana/pull/192675)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Jean-Louis
Leysens","email":"jeanlouis.leysens@elastic.co"},"sourceCommit":{"committedDate":"2024-10-09T16:31:42Z","message":"[HTTP/OAS]
Ability to exclude routes from introspection
(#192675)","sha":"2327681de7306c20bcca69fe77660c0a586c979d","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","Feature:OAS","v8.16.0","backport:version"],"title":"[HTTP/OAS]
Ability to exclude routes from
introspection","number":192675,"url":"https://github.com/elastic/kibana/pull/192675","mergeCommit":{"message":"[HTTP/OAS]
Ability to exclude routes from introspection
(#192675)","sha":"2327681de7306c20bcca69fe77660c0a586c979d"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192675","number":192675,"mergeCommit":{"message":"[HTTP/OAS]
Ability to exclude routes from introspection
(#192675)","sha":"2327681de7306c20bcca69fe77660c0a586c979d"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jean-Louis Leysens <jeanlouis.leysens@elastic.co>
2024-10-09 21:05:54 +02:00
Kibana Machine
07b6f6c5aa
[8.x] [Http] Added version header to unversioned, public routes (#195464) (#195646)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Http] Added version header to unversioned, public routes
(#195464)](https://github.com/elastic/kibana/pull/195464)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Jean-Louis
Leysens","email":"jeanlouis.leysens@elastic.co"},"sourceCommit":{"committedDate":"2024-10-09T16:33:54Z","message":"[Http]
Added version header to unversioned, public routes
(#195464)","sha":"61251bfdaffdb621558fff96d78cc8b2260c0abe","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:http","Team:Core","release_note:skip","v9.0.0","v8.16.0","backport:version"],"title":"[Http]
Added version header to unversioned, public
routes","number":195464,"url":"https://github.com/elastic/kibana/pull/195464","mergeCommit":{"message":"[Http]
Added version header to unversioned, public routes
(#195464)","sha":"61251bfdaffdb621558fff96d78cc8b2260c0abe"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195464","number":195464,"mergeCommit":{"message":"[Http]
Added version header to unversioned, public routes
(#195464)","sha":"61251bfdaffdb621558fff96d78cc8b2260c0abe"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jean-Louis Leysens <jeanlouis.leysens@elastic.co>
2024-10-09 20:32:00 +02:00
Kibana Machine
0bdfdbfbf0
[8.x] Add logging to importer. Closes issue #192212 (#192234) (#195339)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Add logging to importer. Closes issue #192212
(#192234)](https://github.com/elastic/kibana/pull/192234)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Kyra
Cho","email":"wsc2119@columbia.edu"},"sourceCommit":{"committedDate":"2024-10-08T01:58:32Z","message":"Add
logging to importer. Closes issue #192212 (#192234)\n\n##
Summary\r\nHello, this closes issue #192212 by adding a custom logger to
the\r\nimporter, making debugging issues easier.\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [N/A] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[N/A]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios TODO\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed TODO\r\n- [N/A] Any UI touched in this
PR is usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [N/A] Any
UI touched in this PR does not create any new axe failures\r\n(run axe
in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[N/A] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[N/A] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[N/A] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
For maintainers\r\n\r\n- [X] This was checked for breaking API changes
and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n(no
API changes)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"c36a8943982b92afd593a521d5a0bf2de06deb01","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","💝community","v9.0.0","backport:prev-minor","v8.16.0"],"title":"Add
logging to importer. Closes issue
#192212","number":192234,"url":"https://github.com/elastic/kibana/pull/192234","mergeCommit":{"message":"Add
logging to importer. Closes issue #192212 (#192234)\n\n##
Summary\r\nHello, this closes issue #192212 by adding a custom logger to
the\r\nimporter, making debugging issues easier.\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [N/A] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[N/A]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios TODO\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed TODO\r\n- [N/A] Any UI touched in this
PR is usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [N/A] Any
UI touched in this PR does not create any new axe failures\r\n(run axe
in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[N/A] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[N/A] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[N/A] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
For maintainers\r\n\r\n- [X] This was checked for breaking API changes
and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n(no
API changes)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"c36a8943982b92afd593a521d5a0bf2de06deb01"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192234","number":192234,"mergeCommit":{"message":"Add
logging to importer. Closes issue #192212 (#192234)\n\n##
Summary\r\nHello, this closes issue #192212 by adding a custom logger to
the\r\nimporter, making debugging issues easier.\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [N/A] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[N/A]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [x] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios TODO\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed TODO\r\n- [N/A] Any UI touched in this
PR is usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [N/A] Any
UI touched in this PR does not create any new axe failures\r\n(run axe
in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[N/A] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[N/A] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[N/A] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
For maintainers\r\n\r\n- [X] This was checked for breaking API changes
and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n(no
API changes)\r\n\r\n---------\r\n\r\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"c36a8943982b92afd593a521d5a0bf2de06deb01"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Kyra Cho <wsc2119@columbia.edu>
2024-10-08 05:43:17 +02:00
Kibana Machine
f5eac383a8
[8.x] docs(): fix dynamic config url (#195271) (#195310)
# Backport

This will backport the following commits from `main` to `8.x`:
- [docs(): fix dynamic config url
(#195271)](https://github.com/elastic/kibana/pull/195271)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Alejandro Fernández
Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2024-10-07T19:00:42Z","message":"docs():
fix dynamic config url
(#195271)","sha":"36fe809ba9958d67235ee0d99d80d3d7a1defa56","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor"],"title":"docs():
fix dynamic config
url","number":195271,"url":"https://github.com/elastic/kibana/pull/195271","mergeCommit":{"message":"docs():
fix dynamic config url
(#195271)","sha":"36fe809ba9958d67235ee0d99d80d3d7a1defa56"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195271","number":195271,"mergeCommit":{"message":"docs():
fix dynamic config url
(#195271)","sha":"36fe809ba9958d67235ee0d99d80d3d7a1defa56"}}]}]
BACKPORT-->

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2024-10-07 22:45:48 +02:00
Kibana Machine
c483318790
[8.x] Implement new nav hierarchy for stateful/cloud (#192805) (#194912)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Implement new nav hierarchy for stateful/cloud
(#192805)](https://github.com/elastic/kibana/pull/192805)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Panagiota
Mitsopoulou","email":"panagiota.mitsopoulou@elastic.co"},"sourceCommit":{"committedDate":"2024-10-04T08:02:57Z","message":"Implement
new nav hierarchy for stateful/cloud (#192805)\n\n<strike>Depends on
https://github.com/elastic/kibana/issues/193526,\r\nWON'T
FIX</strike>\r\n\r\nFixes
https://github.com/elastic/kibana/issues/192803\r\nFixes
https://github.com/elastic/kibana/issues/191509\r\n\r\nThis PR updates
the nav hierarchy for stateful/cloud and changes the\r\n`accordion` to
`panelOpener`. The menu items have been updated according\r\nto the
Figma file and the discussions happening in
this\r\n[issue](https://github.com/elastic/kibana/issues/192050). I took
a video\r\nbelow of how the new navigation looks like with the new
changes\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/e73c8dd9-b674-4146-bcde-443490569502\r\n\r\n##
What was changed\r\n- AI & ML menu is removed and split into\r\n - `AI
Assistant`\r\n- `Machine learning`: this menu was already present in the
footer, it\r\nwas moved in the body (after Infrastucture)\r\n-
`Applications` now opens a `panelOpener` instead of an `accordion`\r\n -
Synthetics was moved to a new section\r\n - “User Experience” was
renamed to “User experience” \r\n- `Infrastucture` now opens a
`panelOpener` instead of an `accordion`\r\n - Universal Profiling was
moved to a separate section below\r\n - Metrics Explorer was renamed to
Metrics explorer\r\n- `Machine learning` now opens a `panelOpener`
instead of an `accordion`\r\n- `Supplied Configurations` was added under
the Machine learning >\r\nAnomaly Detection section.\r\n- The machine
learning `link:\r\n'securitySolutionUI:machine_learning-landing'` was
completely removed.\r\nClicking on the `Machine learning` link will
slide out the panel instead\r\n(same behavior with clicking on the
icon). More details about why I\r\nremoved
this\r\n[here](https://github.com/elastic/kibana/pull/192805#issuecomment-2359368851)\r\n
- Use sentence/case for the menu items\r\n- `Other tools` now opens a
`panelOpener` instead of an `accordion`\r\n - Logs anomalies was added
here\r\n - Logs categories was added here\r\n - Visualize library was
added\r\n- Clicking on the 1st level menu items (Applications,
Infrastructure,\r\nMachine learning, Other tools) toggles the panel on
the right\r\n(arrowRight).\r\n- The icon was changed from the four small
squares to the right-facing\r\ncaret\r\n- The sub-nav menu slides out to
the right whenever the label OR the\r\nicon are clicked\r\n- `Getting
started` in the footer was renamed to `Add data`\r\n- `Data Set Quality`
was added under `Stack Management > Data` section\r\nbelow `Index
Management`\r\n\r\n\r\n## Functional Tests\r\nSome tests have been added
that test:\r\n- toggling of the panel when clicking on the link
button\r\n- `AI assistant` changes\r\n- `Infrastructure` changes\r\n-
`Other Tools` changes\r\n- `Machine Learning` changes\r\n\r\n\r\n## What
this PR doesn't do\r\nI faced some issues with the footer, so footer
will be separately\r\nhandled in this
[issue](https://github.com/elastic/kibana/issues/192865)\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Sébastien
Loix <sebastien.loix@elastic.co>\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Dominique Clarke
<dominique.clarke@elastic.co>","sha":"ab715099b0310019e44ed203bd0b5b3fab50f650","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management","v8.16.0"],"title":"Implement
new nav hierarchy for
stateful/cloud","number":192805,"url":"https://github.com/elastic/kibana/pull/192805","mergeCommit":{"message":"Implement
new nav hierarchy for stateful/cloud (#192805)\n\n<strike>Depends on
https://github.com/elastic/kibana/issues/193526,\r\nWON'T
FIX</strike>\r\n\r\nFixes
https://github.com/elastic/kibana/issues/192803\r\nFixes
https://github.com/elastic/kibana/issues/191509\r\n\r\nThis PR updates
the nav hierarchy for stateful/cloud and changes the\r\n`accordion` to
`panelOpener`. The menu items have been updated according\r\nto the
Figma file and the discussions happening in
this\r\n[issue](https://github.com/elastic/kibana/issues/192050). I took
a video\r\nbelow of how the new navigation looks like with the new
changes\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/e73c8dd9-b674-4146-bcde-443490569502\r\n\r\n##
What was changed\r\n- AI & ML menu is removed and split into\r\n - `AI
Assistant`\r\n- `Machine learning`: this menu was already present in the
footer, it\r\nwas moved in the body (after Infrastucture)\r\n-
`Applications` now opens a `panelOpener` instead of an `accordion`\r\n -
Synthetics was moved to a new section\r\n - “User Experience” was
renamed to “User experience” \r\n- `Infrastucture` now opens a
`panelOpener` instead of an `accordion`\r\n - Universal Profiling was
moved to a separate section below\r\n - Metrics Explorer was renamed to
Metrics explorer\r\n- `Machine learning` now opens a `panelOpener`
instead of an `accordion`\r\n- `Supplied Configurations` was added under
the Machine learning >\r\nAnomaly Detection section.\r\n- The machine
learning `link:\r\n'securitySolutionUI:machine_learning-landing'` was
completely removed.\r\nClicking on the `Machine learning` link will
slide out the panel instead\r\n(same behavior with clicking on the
icon). More details about why I\r\nremoved
this\r\n[here](https://github.com/elastic/kibana/pull/192805#issuecomment-2359368851)\r\n
- Use sentence/case for the menu items\r\n- `Other tools` now opens a
`panelOpener` instead of an `accordion`\r\n - Logs anomalies was added
here\r\n - Logs categories was added here\r\n - Visualize library was
added\r\n- Clicking on the 1st level menu items (Applications,
Infrastructure,\r\nMachine learning, Other tools) toggles the panel on
the right\r\n(arrowRight).\r\n- The icon was changed from the four small
squares to the right-facing\r\ncaret\r\n- The sub-nav menu slides out to
the right whenever the label OR the\r\nicon are clicked\r\n- `Getting
started` in the footer was renamed to `Add data`\r\n- `Data Set Quality`
was added under `Stack Management > Data` section\r\nbelow `Index
Management`\r\n\r\n\r\n## Functional Tests\r\nSome tests have been added
that test:\r\n- toggling of the panel when clicking on the link
button\r\n- `AI assistant` changes\r\n- `Infrastructure` changes\r\n-
`Other Tools` changes\r\n- `Machine Learning` changes\r\n\r\n\r\n## What
this PR doesn't do\r\nI faced some issues with the footer, so footer
will be separately\r\nhandled in this
[issue](https://github.com/elastic/kibana/issues/192865)\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Sébastien
Loix <sebastien.loix@elastic.co>\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Dominique Clarke
<dominique.clarke@elastic.co>","sha":"ab715099b0310019e44ed203bd0b5b3fab50f650"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192805","number":192805,"mergeCommit":{"message":"Implement
new nav hierarchy for stateful/cloud (#192805)\n\n<strike>Depends on
https://github.com/elastic/kibana/issues/193526,\r\nWON'T
FIX</strike>\r\n\r\nFixes
https://github.com/elastic/kibana/issues/192803\r\nFixes
https://github.com/elastic/kibana/issues/191509\r\n\r\nThis PR updates
the nav hierarchy for stateful/cloud and changes the\r\n`accordion` to
`panelOpener`. The menu items have been updated according\r\nto the
Figma file and the discussions happening in
this\r\n[issue](https://github.com/elastic/kibana/issues/192050). I took
a video\r\nbelow of how the new navigation looks like with the new
changes\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/e73c8dd9-b674-4146-bcde-443490569502\r\n\r\n##
What was changed\r\n- AI & ML menu is removed and split into\r\n - `AI
Assistant`\r\n- `Machine learning`: this menu was already present in the
footer, it\r\nwas moved in the body (after Infrastucture)\r\n-
`Applications` now opens a `panelOpener` instead of an `accordion`\r\n -
Synthetics was moved to a new section\r\n - “User Experience” was
renamed to “User experience” \r\n- `Infrastucture` now opens a
`panelOpener` instead of an `accordion`\r\n - Universal Profiling was
moved to a separate section below\r\n - Metrics Explorer was renamed to
Metrics explorer\r\n- `Machine learning` now opens a `panelOpener`
instead of an `accordion`\r\n- `Supplied Configurations` was added under
the Machine learning >\r\nAnomaly Detection section.\r\n- The machine
learning `link:\r\n'securitySolutionUI:machine_learning-landing'` was
completely removed.\r\nClicking on the `Machine learning` link will
slide out the panel instead\r\n(same behavior with clicking on the
icon). More details about why I\r\nremoved
this\r\n[here](https://github.com/elastic/kibana/pull/192805#issuecomment-2359368851)\r\n
- Use sentence/case for the menu items\r\n- `Other tools` now opens a
`panelOpener` instead of an `accordion`\r\n - Logs anomalies was added
here\r\n - Logs categories was added here\r\n - Visualize library was
added\r\n- Clicking on the 1st level menu items (Applications,
Infrastructure,\r\nMachine learning, Other tools) toggles the panel on
the right\r\n(arrowRight).\r\n- The icon was changed from the four small
squares to the right-facing\r\ncaret\r\n- The sub-nav menu slides out to
the right whenever the label OR the\r\nicon are clicked\r\n- `Getting
started` in the footer was renamed to `Add data`\r\n- `Data Set Quality`
was added under `Stack Management > Data` section\r\nbelow `Index
Management`\r\n\r\n\r\n## Functional Tests\r\nSome tests have been added
that test:\r\n- toggling of the panel when clicking on the link
button\r\n- `AI assistant` changes\r\n- `Infrastructure` changes\r\n-
`Other Tools` changes\r\n- `Machine Learning` changes\r\n\r\n\r\n## What
this PR doesn't do\r\nI faced some issues with the footer, so footer
will be separately\r\nhandled in this
[issue](https://github.com/elastic/kibana/issues/192865)\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Sébastien
Loix <sebastien.loix@elastic.co>\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Dominique Clarke
<dominique.clarke@elastic.co>","sha":"ab715099b0310019e44ed203bd0b5b3fab50f650"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Panagiota Mitsopoulou <panagiota.mitsopoulou@elastic.co>
2024-10-04 04:51:27 -05:00
Kibana Machine
bc434697c9
[8.x] [Http] Gracefully onboarding internal routes to &#x60;VersionedRouter&#x60; (#194789) (#194902)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Http] Gracefully onboarding internal routes to
&#x60;VersionedRouter&#x60;
(#194789)](https://github.com/elastic/kibana/pull/194789)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Jean-Louis
Leysens","email":"jeanlouis.leysens@elastic.co"},"sourceCommit":{"committedDate":"2024-10-04T06:47:36Z","message":"[Http]
Gracefully onboarding internal routes to `VersionedRouter`
(#194789)\n\n## Summary\r\n\r\nIf an internal route goes from
unversioned -> versioned today this will\r\nsurface as a breaking
change. This PR allows internal routes to\r\ngracefully onboard to the
versioned router.\r\n\r\nThe fix is to default to version `1` of an
internal route if no version\r\nis provided. In this way old clients can
continue to interact with the\r\nnew servers as developers onboard to
the versioned router and roll out\r\nv2+ of an internal route.\r\n\r\n##
Notes\r\n\r\nWe could use `buildNr` to narrow down internal routes
defaulting to v1\r\nto older clients only. IMO this would be more
accurate, but also of\r\nmarginal value. My rationale is: by requiring
explicit versions during\r\ndev time the risk of us shipping new builds
that don't provide a version\r\nis effectively nullified. Additionally
we already run this risk with our\r\npublic route default behaviour (we
even require that public routes have\r\nexplicit version in dev to
mitigate this same risk for existing public\r\nclients).\r\n\r\nIf
reviewers feel otherwise I'm happy to revisit this!\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n\r\n### Risk
Matrix\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
By defaulting internal routes to v1 it's possible that
behaviour\r\nbecomes less predictable. | Low | Low | This is already
true for public\r\nroutes and we are allowing a more limited/more
predictable version of\r\nthat here.
|","sha":"afecfd8889b042501d8de72b6eb6d8a1b98cb586","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:http","Team:Core","release_note:skip","v9.0.0","v8.16.0","backport:version"],"title":"[Http]
Gracefully onboarding internal routes to
`VersionedRouter`","number":194789,"url":"https://github.com/elastic/kibana/pull/194789","mergeCommit":{"message":"[Http]
Gracefully onboarding internal routes to `VersionedRouter`
(#194789)\n\n## Summary\r\n\r\nIf an internal route goes from
unversioned -> versioned today this will\r\nsurface as a breaking
change. This PR allows internal routes to\r\ngracefully onboard to the
versioned router.\r\n\r\nThe fix is to default to version `1` of an
internal route if no version\r\nis provided. In this way old clients can
continue to interact with the\r\nnew servers as developers onboard to
the versioned router and roll out\r\nv2+ of an internal route.\r\n\r\n##
Notes\r\n\r\nWe could use `buildNr` to narrow down internal routes
defaulting to v1\r\nto older clients only. IMO this would be more
accurate, but also of\r\nmarginal value. My rationale is: by requiring
explicit versions during\r\ndev time the risk of us shipping new builds
that don't provide a version\r\nis effectively nullified. Additionally
we already run this risk with our\r\npublic route default behaviour (we
even require that public routes have\r\nexplicit version in dev to
mitigate this same risk for existing public\r\nclients).\r\n\r\nIf
reviewers feel otherwise I'm happy to revisit this!\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n\r\n### Risk
Matrix\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
By defaulting internal routes to v1 it's possible that
behaviour\r\nbecomes less predictable. | Low | Low | This is already
true for public\r\nroutes and we are allowing a more limited/more
predictable version of\r\nthat here.
|","sha":"afecfd8889b042501d8de72b6eb6d8a1b98cb586"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194789","number":194789,"mergeCommit":{"message":"[Http]
Gracefully onboarding internal routes to `VersionedRouter`
(#194789)\n\n## Summary\r\n\r\nIf an internal route goes from
unversioned -> versioned today this will\r\nsurface as a breaking
change. This PR allows internal routes to\r\ngracefully onboard to the
versioned router.\r\n\r\nThe fix is to default to version `1` of an
internal route if no version\r\nis provided. In this way old clients can
continue to interact with the\r\nnew servers as developers onboard to
the versioned router and roll out\r\nv2+ of an internal route.\r\n\r\n##
Notes\r\n\r\nWe could use `buildNr` to narrow down internal routes
defaulting to v1\r\nto older clients only. IMO this would be more
accurate, but also of\r\nmarginal value. My rationale is: by requiring
explicit versions during\r\ndev time the risk of us shipping new builds
that don't provide a version\r\nis effectively nullified. Additionally
we already run this risk with our\r\npublic route default behaviour (we
even require that public routes have\r\nexplicit version in dev to
mitigate this same risk for existing public\r\nclients).\r\n\r\nIf
reviewers feel otherwise I'm happy to revisit this!\r\n\r\n###
Checklist\r\n\r\nDelete any items that are not applicable to this
PR.\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n\r\n### Risk
Matrix\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
By defaulting internal routes to v1 it's possible that
behaviour\r\nbecomes less predictable. | Low | Low | This is already
true for public\r\nroutes and we are allowing a more limited/more
predictable version of\r\nthat here.
|","sha":"afecfd8889b042501d8de72b6eb6d8a1b98cb586"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jean-Louis Leysens <jeanlouis.leysens@elastic.co>
2024-10-04 03:34:06 -05:00
Elena Shostak
0b748f0b36
[8.x] [Authz] Added support for security route configuration option (#191973) (#194667)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Authz] Added support for security route configuration option
(#191973)](https://github.com/elastic/kibana/pull/191973)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Elena
Shostak","email":"165678770+elena-shostak@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-09-30T11:13:26Z","message":"[Authz]
Added support for security route configuration option (#191973)\n\n##
Summary\r\n\r\nExtended `KibanaRouteOptions` to include security
configuration at the\r\nroute definition level.\r\n\r\n## Security
Config\r\nTo facilitate iterative development security config is marked
as\r\noptional for now.\r\n\r\n- `authz` supports both simple
configuration (e.g., single privilege\r\nrequirements) and more complex
configurations that involve anyRequired\r\nand allRequired privilege
sets.\r\n- `authc` property has been added and is expected to replace
the\r\nexisting `authRequired` option. This transition will be part of
an\r\nupcoming deprecation process in scope
of\r\nhttps://github.com/elastic/kibana/issues/191711\r\n- For versioned
routes, the `authc` and `authz` configurations can be\r\napplied
independently for each version, enabling version-specific\r\nsecurity
configuration. If none provided for the specific version it\r\nwill fall
back to the route root security option.\r\n- Validation logic has been
added that ensures only supported\r\nconfigurations are specified.\r\n-
Existing `registerOnPostAuth` hook has been modified to
incorporate\r\nchecks based on the new `authz` property in the security
configuration.\r\n- Comprehensive documentation will be added in the
separate PR before\r\nsunsetting new security configuration and
deprecating old one.\r\n\r\n## How to Test\r\nYou can modify any
existing route or use the example routes below\r\n###
Routes\r\n\r\n<details>\r\n<summary><b>Route
1:\r\n/api/security/authz_examples/authz_disabled</b></summary>\r\n\r\n```javascript\r\nrouter.get(\r\n
{\r\n path: '/api/security/authz_examples/authz_disabled',\r\n security:
{\r\n authz: {\r\n enabled: false,\r\n reason: 'This route is opted out
from authorization',\r\n },\r\n },\r\n validate: false,\r\n },\r\n
createLicensedRouteHandler(async (context, request, response) => {\r\n
try {\r\n return response.ok({\r\n body: {\r\n message: 'This route is
opted out from authorization',\r\n },\r\n });\r\n } catch (error) {\r\n
return response.customError(wrapIntoCustomErrorResponse(error));\r\n
}\r\n
})\r\n);\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary><b>Route
2:\r\n/api/security/authz_examples/simple_privileges_1</b></summary>\r\n\r\n```javascript\r\nrouter.get(\r\n
{\r\n path: '/api/security/authz_examples/simple_privileges_1',\r\n
security: {\r\n authz: {\r\n requiredPrivileges: ['manageSpaces',
'taskManager'],\r\n },\r\n },\r\n validate: false,\r\n },\r\n
createLicensedRouteHandler(async (context, request, response) => {\r\n
try {\r\n return response.ok({\r\n body: {\r\n authzResult:
request.authzResult,\r\n },\r\n });\r\n } catch (error) {\r\n return
response.customError(wrapIntoCustomErrorResponse(error));\r\n }\r\n
})\r\n);\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary><b>Route
3:\r\n/api/security/authz_examples/simple_privileges_2</b></summary>\r\n\r\n```javascript\r\nrouter.get(\r\n
{\r\n path: '/api/security/authz_examples/simple_privileges_2',\r\n
security: {\r\n authz: {\r\n requiredPrivileges: [\r\n
'manageSpaces',\r\n {\r\n anyRequired: ['taskManager', 'features'],\r\n
},\r\n ],\r\n },\r\n },\r\n validate: false,\r\n },\r\n
createLicensedRouteHandler(async (context, request, response) => {\r\n
try {\r\n return response.ok({\r\n body: {\r\n authzResult:
request.authzResult,\r\n },\r\n });\r\n } catch (error) {\r\n return
response.customError(wrapIntoCustomErrorResponse(error));\r\n }\r\n
})\r\n);\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary><b>Versioned
Route:\r\n/internal/security/authz_versioned_examples/simple_privileges_1</b></summary>\r\n\r\n```javascript\r\nrouter.versioned\r\n
.get({\r\n path:
'/internal/security/authz_versioned_examples/simple_privileges_1',\r\n
access: 'internal',\r\n enableQueryVersion: true,\r\n })\r\n
.addVersion(\r\n {\r\n version: '1',\r\n validate: false,\r\n security:
{\r\n authz: {\r\n requiredPrivileges: ['manageSpaces',
'taskManager'],\r\n },\r\n authc: {\r\n enabled: 'optional',\r\n },\r\n
},\r\n },\r\n (context, request, response) => {\r\n return
response.ok({\r\n body: {\r\n authzResult: request.authzResult,\r\n
version: '1',\r\n },\r\n });\r\n }\r\n )\r\n .addVersion(\r\n {\r\n
version: '2',\r\n validate: false,\r\n security: {\r\n authz: {\r\n
requiredPrivileges: ['manageSpaces'],\r\n },\r\n authc: {\r\n enabled:
true,\r\n },\r\n },\r\n },\r\n (context, request, response) => {\r\n
return response.ok({\r\n body: {\r\n authzResult:
request.authzResult,\r\n version: '2',\r\n },\r\n });\r\n }\r\n
);\r\n```\r\n</details>\r\n\r\n\r\n\r\n### Checklist\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n__Closes:
https://github.com/elastic/kibana/issues/191710__\r\n__Related:
https://github.com/elastic/kibana/issues/191712,\r\nhttps://github.com/elastic/kibana/issues/191713__\r\n\r\n###
Release Note\r\nExtended `KibanaRouteOptions` to include security
configuration at the\r\nroute definition
level.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"9a7e9124cf86d8a7a7ce25732bf11163ec7df52d","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","chore","Team:Security","Feature:Security/Authentication","Feature:Security/Authorization","backport:skip","v9.0.0"],"number":191973,"url":"https://github.com/elastic/kibana/pull/191973","mergeCommit":{"message":"[Authz]
Added support for security route configuration option (#191973)\n\n##
Summary\r\n\r\nExtended `KibanaRouteOptions` to include security
configuration at the\r\nroute definition level.\r\n\r\n## Security
Config\r\nTo facilitate iterative development security config is marked
as\r\noptional for now.\r\n\r\n- `authz` supports both simple
configuration (e.g., single privilege\r\nrequirements) and more complex
configurations that involve anyRequired\r\nand allRequired privilege
sets.\r\n- `authc` property has been added and is expected to replace
the\r\nexisting `authRequired` option. This transition will be part of
an\r\nupcoming deprecation process in scope
of\r\nhttps://github.com/elastic/kibana/issues/191711\r\n- For versioned
routes, the `authc` and `authz` configurations can be\r\napplied
independently for each version, enabling version-specific\r\nsecurity
configuration. If none provided for the specific version it\r\nwill fall
back to the route root security option.\r\n- Validation logic has been
added that ensures only supported\r\nconfigurations are specified.\r\n-
Existing `registerOnPostAuth` hook has been modified to
incorporate\r\nchecks based on the new `authz` property in the security
configuration.\r\n- Comprehensive documentation will be added in the
separate PR before\r\nsunsetting new security configuration and
deprecating old one.\r\n\r\n## How to Test\r\nYou can modify any
existing route or use the example routes below\r\n###
Routes\r\n\r\n<details>\r\n<summary><b>Route
1:\r\n/api/security/authz_examples/authz_disabled</b></summary>\r\n\r\n```javascript\r\nrouter.get(\r\n
{\r\n path: '/api/security/authz_examples/authz_disabled',\r\n security:
{\r\n authz: {\r\n enabled: false,\r\n reason: 'This route is opted out
from authorization',\r\n },\r\n },\r\n validate: false,\r\n },\r\n
createLicensedRouteHandler(async (context, request, response) => {\r\n
try {\r\n return response.ok({\r\n body: {\r\n message: 'This route is
opted out from authorization',\r\n },\r\n });\r\n } catch (error) {\r\n
return response.customError(wrapIntoCustomErrorResponse(error));\r\n
}\r\n
})\r\n);\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary><b>Route
2:\r\n/api/security/authz_examples/simple_privileges_1</b></summary>\r\n\r\n```javascript\r\nrouter.get(\r\n
{\r\n path: '/api/security/authz_examples/simple_privileges_1',\r\n
security: {\r\n authz: {\r\n requiredPrivileges: ['manageSpaces',
'taskManager'],\r\n },\r\n },\r\n validate: false,\r\n },\r\n
createLicensedRouteHandler(async (context, request, response) => {\r\n
try {\r\n return response.ok({\r\n body: {\r\n authzResult:
request.authzResult,\r\n },\r\n });\r\n } catch (error) {\r\n return
response.customError(wrapIntoCustomErrorResponse(error));\r\n }\r\n
})\r\n);\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary><b>Route
3:\r\n/api/security/authz_examples/simple_privileges_2</b></summary>\r\n\r\n```javascript\r\nrouter.get(\r\n
{\r\n path: '/api/security/authz_examples/simple_privileges_2',\r\n
security: {\r\n authz: {\r\n requiredPrivileges: [\r\n
'manageSpaces',\r\n {\r\n anyRequired: ['taskManager', 'features'],\r\n
},\r\n ],\r\n },\r\n },\r\n validate: false,\r\n },\r\n
createLicensedRouteHandler(async (context, request, response) => {\r\n
try {\r\n return response.ok({\r\n body: {\r\n authzResult:
request.authzResult,\r\n },\r\n });\r\n } catch (error) {\r\n return
response.customError(wrapIntoCustomErrorResponse(error));\r\n }\r\n
})\r\n);\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary><b>Versioned
Route:\r\n/internal/security/authz_versioned_examples/simple_privileges_1</b></summary>\r\n\r\n```javascript\r\nrouter.versioned\r\n
.get({\r\n path:
'/internal/security/authz_versioned_examples/simple_privileges_1',\r\n
access: 'internal',\r\n enableQueryVersion: true,\r\n })\r\n
.addVersion(\r\n {\r\n version: '1',\r\n validate: false,\r\n security:
{\r\n authz: {\r\n requiredPrivileges: ['manageSpaces',
'taskManager'],\r\n },\r\n authc: {\r\n enabled: 'optional',\r\n },\r\n
},\r\n },\r\n (context, request, response) => {\r\n return
response.ok({\r\n body: {\r\n authzResult: request.authzResult,\r\n
version: '1',\r\n },\r\n });\r\n }\r\n )\r\n .addVersion(\r\n {\r\n
version: '2',\r\n validate: false,\r\n security: {\r\n authz: {\r\n
requiredPrivileges: ['manageSpaces'],\r\n },\r\n authc: {\r\n enabled:
true,\r\n },\r\n },\r\n },\r\n (context, request, response) => {\r\n
return response.ok({\r\n body: {\r\n authzResult:
request.authzResult,\r\n version: '2',\r\n },\r\n });\r\n }\r\n
);\r\n```\r\n</details>\r\n\r\n\r\n\r\n### Checklist\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n__Closes:
https://github.com/elastic/kibana/issues/191710__\r\n__Related:
https://github.com/elastic/kibana/issues/191712,\r\nhttps://github.com/elastic/kibana/issues/191713__\r\n\r\n###
Release Note\r\nExtended `KibanaRouteOptions` to include security
configuration at the\r\nroute definition
level.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"9a7e9124cf86d8a7a7ce25732bf11163ec7df52d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/191973","number":191973,"mergeCommit":{"message":"[Authz]
Added support for security route configuration option (#191973)\n\n##
Summary\r\n\r\nExtended `KibanaRouteOptions` to include security
configuration at the\r\nroute definition level.\r\n\r\n## Security
Config\r\nTo facilitate iterative development security config is marked
as\r\noptional for now.\r\n\r\n- `authz` supports both simple
configuration (e.g., single privilege\r\nrequirements) and more complex
configurations that involve anyRequired\r\nand allRequired privilege
sets.\r\n- `authc` property has been added and is expected to replace
the\r\nexisting `authRequired` option. This transition will be part of
an\r\nupcoming deprecation process in scope
of\r\nhttps://github.com/elastic/kibana/issues/191711\r\n- For versioned
routes, the `authc` and `authz` configurations can be\r\napplied
independently for each version, enabling version-specific\r\nsecurity
configuration. If none provided for the specific version it\r\nwill fall
back to the route root security option.\r\n- Validation logic has been
added that ensures only supported\r\nconfigurations are specified.\r\n-
Existing `registerOnPostAuth` hook has been modified to
incorporate\r\nchecks based on the new `authz` property in the security
configuration.\r\n- Comprehensive documentation will be added in the
separate PR before\r\nsunsetting new security configuration and
deprecating old one.\r\n\r\n## How to Test\r\nYou can modify any
existing route or use the example routes below\r\n###
Routes\r\n\r\n<details>\r\n<summary><b>Route
1:\r\n/api/security/authz_examples/authz_disabled</b></summary>\r\n\r\n```javascript\r\nrouter.get(\r\n
{\r\n path: '/api/security/authz_examples/authz_disabled',\r\n security:
{\r\n authz: {\r\n enabled: false,\r\n reason: 'This route is opted out
from authorization',\r\n },\r\n },\r\n validate: false,\r\n },\r\n
createLicensedRouteHandler(async (context, request, response) => {\r\n
try {\r\n return response.ok({\r\n body: {\r\n message: 'This route is
opted out from authorization',\r\n },\r\n });\r\n } catch (error) {\r\n
return response.customError(wrapIntoCustomErrorResponse(error));\r\n
}\r\n
})\r\n);\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary><b>Route
2:\r\n/api/security/authz_examples/simple_privileges_1</b></summary>\r\n\r\n```javascript\r\nrouter.get(\r\n
{\r\n path: '/api/security/authz_examples/simple_privileges_1',\r\n
security: {\r\n authz: {\r\n requiredPrivileges: ['manageSpaces',
'taskManager'],\r\n },\r\n },\r\n validate: false,\r\n },\r\n
createLicensedRouteHandler(async (context, request, response) => {\r\n
try {\r\n return response.ok({\r\n body: {\r\n authzResult:
request.authzResult,\r\n },\r\n });\r\n } catch (error) {\r\n return
response.customError(wrapIntoCustomErrorResponse(error));\r\n }\r\n
})\r\n);\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary><b>Route
3:\r\n/api/security/authz_examples/simple_privileges_2</b></summary>\r\n\r\n```javascript\r\nrouter.get(\r\n
{\r\n path: '/api/security/authz_examples/simple_privileges_2',\r\n
security: {\r\n authz: {\r\n requiredPrivileges: [\r\n
'manageSpaces',\r\n {\r\n anyRequired: ['taskManager', 'features'],\r\n
},\r\n ],\r\n },\r\n },\r\n validate: false,\r\n },\r\n
createLicensedRouteHandler(async (context, request, response) => {\r\n
try {\r\n return response.ok({\r\n body: {\r\n authzResult:
request.authzResult,\r\n },\r\n });\r\n } catch (error) {\r\n return
response.customError(wrapIntoCustomErrorResponse(error));\r\n }\r\n
})\r\n);\r\n```\r\n</details>\r\n\r\n<details>\r\n<summary><b>Versioned
Route:\r\n/internal/security/authz_versioned_examples/simple_privileges_1</b></summary>\r\n\r\n```javascript\r\nrouter.versioned\r\n
.get({\r\n path:
'/internal/security/authz_versioned_examples/simple_privileges_1',\r\n
access: 'internal',\r\n enableQueryVersion: true,\r\n })\r\n
.addVersion(\r\n {\r\n version: '1',\r\n validate: false,\r\n security:
{\r\n authz: {\r\n requiredPrivileges: ['manageSpaces',
'taskManager'],\r\n },\r\n authc: {\r\n enabled: 'optional',\r\n },\r\n
},\r\n },\r\n (context, request, response) => {\r\n return
response.ok({\r\n body: {\r\n authzResult: request.authzResult,\r\n
version: '1',\r\n },\r\n });\r\n }\r\n )\r\n .addVersion(\r\n {\r\n
version: '2',\r\n validate: false,\r\n security: {\r\n authz: {\r\n
requiredPrivileges: ['manageSpaces'],\r\n },\r\n authc: {\r\n enabled:
true,\r\n },\r\n },\r\n },\r\n (context, request, response) => {\r\n
return response.ok({\r\n body: {\r\n authzResult:
request.authzResult,\r\n version: '2',\r\n },\r\n });\r\n }\r\n
);\r\n```\r\n</details>\r\n\r\n\r\n\r\n### Checklist\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n__Closes:
https://github.com/elastic/kibana/issues/191710__\r\n__Related:
https://github.com/elastic/kibana/issues/191712,\r\nhttps://github.com/elastic/kibana/issues/191713__\r\n\r\n###
Release Note\r\nExtended `KibanaRouteOptions` to include security
configuration at the\r\nroute definition
level.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"9a7e9124cf86d8a7a7ce25732bf11163ec7df52d"}}]}]
BACKPORT-->
2024-10-02 06:46:17 -05:00
Kibana Machine
2c670dc76b
[8.x] Upgrade http dependencies (#180986) (#194616)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Upgrade http dependencies
(#180986)](https://github.com/elastic/kibana/pull/180986)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Alejandro Fernández
Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2024-10-01T16:50:47Z","message":"Upgrade
http dependencies (#180986)\n\nCo-authored-by: florent-leborgne
<florent.leborgne@elastic.co>\r\nCo-authored-by: Rudolf Meijering
<skaapgif@gmail.com>","sha":"d570d60b0bd950faaebf39e3e2f4f7481c116ac6","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","Feature:http","release_note:breaking","Team:Core","Team:Security","v9.0.0","Team:Defend
Workflows","backport:prev-minor","Team:Detection
Engine"],"title":"Upgrade http
dependencies","number":180986,"url":"https://github.com/elastic/kibana/pull/180986","mergeCommit":{"message":"Upgrade
http dependencies (#180986)\n\nCo-authored-by: florent-leborgne
<florent.leborgne@elastic.co>\r\nCo-authored-by: Rudolf Meijering
<skaapgif@gmail.com>","sha":"d570d60b0bd950faaebf39e3e2f4f7481c116ac6"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/180986","number":180986,"mergeCommit":{"message":"Upgrade
http dependencies (#180986)\n\nCo-authored-by: florent-leborgne
<florent.leborgne@elastic.co>\r\nCo-authored-by: Rudolf Meijering
<skaapgif@gmail.com>","sha":"d570d60b0bd950faaebf39e3e2f4f7481c116ac6"}}]}]
BACKPORT-->

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2024-10-01 13:37:59 -05:00
Kibana Machine
631cba307b
[8.x] [React@18] Upgrade @types to React 18 (#194144) (#194536)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[React@18] Upgrade @types to React 18
(#194144)](https://github.com/elastic/kibana/pull/194144)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Anton
Dosov","email":"anton.dosov@elastic.co"},"sourceCommit":{"committedDate":"2024-10-01T09:40:11Z","message":"[React@18]
Upgrade @types to React 18 (#194144)\n\n## Summary\r\n\r\nPart of
https://github.com/elastic/kibana/issues/138222\r\n\r\nThis PR finilizes
the breaking type fixes that are needed for upgrade
to\r\nReact@18.\r\nMost of the remaining issues are muted with
\"@ts-expect-error\" are\r\ntricky or could be runtime bugs that need to
be looked at.\r\n\r\n**Since the types changes are backward compatible
(except the new APIs)\r\nwe can upgrade to @types/react@18 now so that
we \"save\" the progress and\r\nall the code in Kibana from now on is
written in compatbile for react@18\r\nway from types
perspective.**","sha":"bdd57b64fe19683c481f673d6f1571f91379e730","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","Team:SharedUX","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","Team:obs-ux-management","apm:review"],"title":"[React@18]
Upgrade @types to React
18","number":194144,"url":"https://github.com/elastic/kibana/pull/194144","mergeCommit":{"message":"[React@18]
Upgrade @types to React 18 (#194144)\n\n## Summary\r\n\r\nPart of
https://github.com/elastic/kibana/issues/138222\r\n\r\nThis PR finilizes
the breaking type fixes that are needed for upgrade
to\r\nReact@18.\r\nMost of the remaining issues are muted with
\"@ts-expect-error\" are\r\ntricky or could be runtime bugs that need to
be looked at.\r\n\r\n**Since the types changes are backward compatible
(except the new APIs)\r\nwe can upgrade to @types/react@18 now so that
we \"save\" the progress and\r\nall the code in Kibana from now on is
written in compatbile for react@18\r\nway from types
perspective.**","sha":"bdd57b64fe19683c481f673d6f1571f91379e730"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194144","number":194144,"mergeCommit":{"message":"[React@18]
Upgrade @types to React 18 (#194144)\n\n## Summary\r\n\r\nPart of
https://github.com/elastic/kibana/issues/138222\r\n\r\nThis PR finilizes
the breaking type fixes that are needed for upgrade
to\r\nReact@18.\r\nMost of the remaining issues are muted with
\"@ts-expect-error\" are\r\ntricky or could be runtime bugs that need to
be looked at.\r\n\r\n**Since the types changes are backward compatible
(except the new APIs)\r\nwe can upgrade to @types/react@18 now so that
we \"save\" the progress and\r\nall the code in Kibana from now on is
written in compatbile for react@18\r\nway from types
perspective.**","sha":"bdd57b64fe19683c481f673d6f1571f91379e730"}}]}]
BACKPORT-->

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2024-10-01 06:45:16 -05:00
Kibana Machine
e99ab27ec0
[8.x] Hide progress bar on initial load when client prefers reduced motion (#194365) (#194496)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Hide progress bar on initial load when client prefers reduced motion
(#194365)](https://github.com/elastic/kibana/pull/194365)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Nathan L
Smith","email":"nathan.smith@elastic.co"},"sourceCommit":{"committedDate":"2024-09-30T14:55:49Z","message":"Hide
progress bar on initial load when client prefers reduced motion
(#194365)\n\n##
Summary\r\n\r\nSee\r\nhttps://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion\r\n\r\n![CleanShot
2024-09-29 at 21
57\r\n36](https://github.com/user-attachments/assets/27436ec4-986b-4c91-9d9f-e49d59d76e7c)","sha":"2a935dcce37bd3e3f3fce32d6257b2ec7191dac5","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-major"],"title":"Hide
progress bar on initial load when client prefers reduced
motion","number":194365,"url":"https://github.com/elastic/kibana/pull/194365","mergeCommit":{"message":"Hide
progress bar on initial load when client prefers reduced motion
(#194365)\n\n##
Summary\r\n\r\nSee\r\nhttps://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion\r\n\r\n![CleanShot
2024-09-29 at 21
57\r\n36](https://github.com/user-attachments/assets/27436ec4-986b-4c91-9d9f-e49d59d76e7c)","sha":"2a935dcce37bd3e3f3fce32d6257b2ec7191dac5"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194365","number":194365,"mergeCommit":{"message":"Hide
progress bar on initial load when client prefers reduced motion
(#194365)\n\n##
Summary\r\n\r\nSee\r\nhttps://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion\r\n\r\n![CleanShot
2024-09-29 at 21
57\r\n36](https://github.com/user-attachments/assets/27436ec4-986b-4c91-9d9f-e49d59d76e7c)","sha":"2a935dcce37bd3e3f3fce32d6257b2ec7191dac5"}}]}]
BACKPORT-->

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2024-09-30 18:54:49 -05:00
Kibana Machine
9079fb62f8
[8.x] Delete imports/references to EUI&#x27;s distributed &#x60;.css&#x60; files (#194237) (#194474)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Delete imports/references to EUI&#x27;s distributed &#x60;.css&#x60;
files (#194237)](https://github.com/elastic/kibana/pull/194237)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Cee
Chen","email":"549407+cee-chen@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-09-30T18:37:47Z","message":"Delete
imports/references to EUI's distributed `.css` files (#194237)\n\n##
Summary\r\n\r\nTrying #194082 again, this time wholly
deleting\r\n`kbn-ui-shared-deps-npm.v8.light/dark.css` as well
🤞\r\n\r\nOriginal PR description: \r\n\r\n> These files no longer
contain any meaningful CSS used within Kibana as\r\nof EUI's completed
Emotion migration, and can be safely removed. EUI\r\nwill shortly no
longer distribute these static `.css` files (although\r\n`.scss` src
files will still remain exported for the near
future).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"866adf37f13c79c06fe426fa822231940132de03","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","EUI","v9.0.0","ci:project-deploy-elasticsearch","v8.16.0","backport:version"],"title":"Delete
imports/references to EUI's distributed `.css`
files","number":194237,"url":"https://github.com/elastic/kibana/pull/194237","mergeCommit":{"message":"Delete
imports/references to EUI's distributed `.css` files (#194237)\n\n##
Summary\r\n\r\nTrying #194082 again, this time wholly
deleting\r\n`kbn-ui-shared-deps-npm.v8.light/dark.css` as well
🤞\r\n\r\nOriginal PR description: \r\n\r\n> These files no longer
contain any meaningful CSS used within Kibana as\r\nof EUI's completed
Emotion migration, and can be safely removed. EUI\r\nwill shortly no
longer distribute these static `.css` files (although\r\n`.scss` src
files will still remain exported for the near
future).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"866adf37f13c79c06fe426fa822231940132de03"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194237","number":194237,"mergeCommit":{"message":"Delete
imports/references to EUI's distributed `.css` files (#194237)\n\n##
Summary\r\n\r\nTrying #194082 again, this time wholly
deleting\r\n`kbn-ui-shared-deps-npm.v8.light/dark.css` as well
🤞\r\n\r\nOriginal PR description: \r\n\r\n> These files no longer
contain any meaningful CSS used within Kibana as\r\nof EUI's completed
Emotion migration, and can be safely removed. EUI\r\nwill shortly no
longer distribute these static `.css` files (although\r\n`.scss` src
files will still remain exported for the near
future).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"866adf37f13c79c06fe426fa822231940132de03"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Cee Chen <549407+cee-chen@users.noreply.github.com>
2024-09-30 15:11:09 -05:00
Kibana Machine
c68c6fd709
[8.x] [Stateful sidenav] Fix side nav panel clipping (#194268) (#194318)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Stateful sidenav] Fix side nav panel clipping
(#194268)](https://github.com/elastic/kibana/pull/194268)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Sébastien
Loix","email":"sebastien.loix@elastic.co"},"sourceCommit":{"committedDate":"2024-09-27T15:37:36Z","message":"[Stateful
sidenav] Fix side nav panel clipping
(#194268)","sha":"c01de8cf4db64d91c42f0170587f5f648c26fb3f","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","Feature:Chrome"],"title":"[Stateful
sidenav] Fix side nav panel
clipping","number":194268,"url":"https://github.com/elastic/kibana/pull/194268","mergeCommit":{"message":"[Stateful
sidenav] Fix side nav panel clipping
(#194268)","sha":"c01de8cf4db64d91c42f0170587f5f648c26fb3f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/194268","number":194268,"mergeCommit":{"message":"[Stateful
sidenav] Fix side nav panel clipping
(#194268)","sha":"c01de8cf4db64d91c42f0170587f5f648c26fb3f"}}]}]
BACKPORT-->

Co-authored-by: Sébastien Loix <sebastien.loix@elastic.co>
2024-09-27 12:31:15 -05:00
Gerard Soldevila
c7b29d18dd
[8.x] [Migrations] Backport ALL updates to integration tests (#194013)
# Backport

This will backport the following PRs from `main` to `8.x`:
 - https://github.com/elastic/kibana/pull/193328
 - https://github.com/elastic/kibana/pull/193856
 - https://github.com/elastic/kibana/pull/193696
 - https://github.com/elastic/kibana/pull/194151
2024-09-27 10:06:10 +02:00
Kibana Machine
6dfc890eaf
[8.x] Upgrade EUI to v95.11.0 (#192756) (#193803)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Upgrade EUI to v95.11.0
(#192756)](https://github.com/elastic/kibana/pull/192756)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Cee
Chen","email":"549407+cee-chen@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-09-23T22:45:19Z","message":"Upgrade
EUI to v95.11.0 (#192756)\n\n`v95.10.1``v95.11.0`\r\n\r\n> [!note]\r\n>
The bulk of this release is **EuiDataGrid**. The component has
been\r\nfully converted to Emotion, and several UX changes have been
made to\r\ndata cell actions. We recommend QA testing any data grid(s)
that have\r\ncustom styles applied to them.\r\n\r\n_[Questions? Please
see our Kibana
upgrade\r\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_\r\n\r\n---\r\n\r\n##
[`v95.11.0`](https://github.com/elastic/eui/releases/v95.11.0)\r\n\r\n-
Updated `EuiText`, `EuiTextColor`, and `EuiTextAlign` with a
new\r\n`component` prop that allows changing the default rendered
`<div>`\r\nwrapper to a `<span>` or `<p>`
tag.\r\n([#7993](https://github.com/elastic/eui/pull/7993))\r\n- Updated
`EuiDataGrid`'s cell actions to always consistently be\r\nleft-aligned,
regardless of text content
alignment\r\n([#8011](https://github.com/elastic/eui/pull/8011))\r\n-
Increased `EuiDataGrid`'s cell actions hover zone to reduce
UX\r\nfriction when mousing over from the grid cell to its
actions\r\n([#8011](https://github.com/elastic/eui/pull/8011))\r\n\r\n**Bug
fixes**\r\n\r\n- Fixed `EuiPopover` to correctly inherit from
`EuiProvider`'s\r\n`componentDefaults.EuiPortal.insert`\r\n([#8003](https://github.com/elastic/eui/pull/8003))\r\n-
Fixed push `EuiFlyoutResizable`s to not potentially block
scrollbars\r\non outside content
([#8010](https://github.com/elastic/eui/pull/8010))\r\n- Fixed an
`EuiDataGrid` bug where the `setCellProps` callback passed
by\r\n`renderCellValue` was not correctly applying custom
`data-test-subj`s\r\n([#8011](https://github.com/elastic/eui/pull/8011))\r\n\r\n**Accessibility**\r\n\r\n-
Updated the `EuiBasicTable` actions button's `aria-label` by adding
a\r\nreference to the current
row\r\n([#7994](https://github.com/elastic/eui/pull/7994))\r\n\r\n**CSS-in-JS
conversions**\r\n\r\n- Converted `EuiDataGrid`'s toolbar controls to
Emotion\r\n([#7997](https://github.com/elastic/eui/pull/7997))\r\n -
Removed `$euiDataGridPopoverMaxHeight`\r\n- Converted `EuiDataGrid` to
Emotion\r\n([#7998](https://github.com/elastic/eui/pull/7998))\r\n -
Removed `$euiZDataGrid`\r\n - Removed `$euiZHeaderBelowDataGrid`\r\n-
Converted `EuiDataGrid`'s `gridStyle`s to Emotion; Removed
the\r\nfollowing Sass variables and
mixins:\r\n([#8006](https://github.com/elastic/eui/pull/8006))\r\n -
`$euiDataGridCellPaddingS`\r\n - `$euiDataGridCellPaddingM`\r\n -
`$euiDataGridCellPaddingL`\r\n - `$euiDataGridVerticalBorder`\r\n -
`$euiDataGridPrefix`\r\n - `$euiDataGridStyles`\r\n -
`@euiDataGridSelector`\r\n - `@euiDataGridStyles`\r\n- Converted
`EuiDataGrid`'s cell popover, actions, and focus outline to\r\nEmotion;
Removed the following Sass variables and
mixins:\r\n([#8011](https://github.com/elastic/eui/pull/8011))\r\n -
`$euiZDataGridCellPopover`\r\n - `@euiDataGridCellFocus`\r\n- Converted
`EuiDataGrid`'s row, header, and footer cells to Emotion;\r\nRemoved the
following Sass variables and
mixins:\r\n([#8013](https://github.com/elastic/eui/pull/8013))\r\n -
`$euiDataGridColumnResizerWidth`\r\n - `@euiDataGridRowCell`\r\n -
`@euiDataGridHeaderCell`\r\n -
`@euiDataGridFooterCell`","sha":"9bbb296078ea385561d46819001644cdb4fdc714","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","EUI","v9.0.0","ci:project-deploy-observability","Team:obs-ux-management","v8.16.0","backport:version"],"title":"Upgrade
EUI to
v95.11.0","number":192756,"url":"https://github.com/elastic/kibana/pull/192756","mergeCommit":{"message":"Upgrade
EUI to v95.11.0 (#192756)\n\n`v95.10.1``v95.11.0`\r\n\r\n> [!note]\r\n>
The bulk of this release is **EuiDataGrid**. The component has
been\r\nfully converted to Emotion, and several UX changes have been
made to\r\ndata cell actions. We recommend QA testing any data grid(s)
that have\r\ncustom styles applied to them.\r\n\r\n_[Questions? Please
see our Kibana
upgrade\r\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_\r\n\r\n---\r\n\r\n##
[`v95.11.0`](https://github.com/elastic/eui/releases/v95.11.0)\r\n\r\n-
Updated `EuiText`, `EuiTextColor`, and `EuiTextAlign` with a
new\r\n`component` prop that allows changing the default rendered
`<div>`\r\nwrapper to a `<span>` or `<p>`
tag.\r\n([#7993](https://github.com/elastic/eui/pull/7993))\r\n- Updated
`EuiDataGrid`'s cell actions to always consistently be\r\nleft-aligned,
regardless of text content
alignment\r\n([#8011](https://github.com/elastic/eui/pull/8011))\r\n-
Increased `EuiDataGrid`'s cell actions hover zone to reduce
UX\r\nfriction when mousing over from the grid cell to its
actions\r\n([#8011](https://github.com/elastic/eui/pull/8011))\r\n\r\n**Bug
fixes**\r\n\r\n- Fixed `EuiPopover` to correctly inherit from
`EuiProvider`'s\r\n`componentDefaults.EuiPortal.insert`\r\n([#8003](https://github.com/elastic/eui/pull/8003))\r\n-
Fixed push `EuiFlyoutResizable`s to not potentially block
scrollbars\r\non outside content
([#8010](https://github.com/elastic/eui/pull/8010))\r\n- Fixed an
`EuiDataGrid` bug where the `setCellProps` callback passed
by\r\n`renderCellValue` was not correctly applying custom
`data-test-subj`s\r\n([#8011](https://github.com/elastic/eui/pull/8011))\r\n\r\n**Accessibility**\r\n\r\n-
Updated the `EuiBasicTable` actions button's `aria-label` by adding
a\r\nreference to the current
row\r\n([#7994](https://github.com/elastic/eui/pull/7994))\r\n\r\n**CSS-in-JS
conversions**\r\n\r\n- Converted `EuiDataGrid`'s toolbar controls to
Emotion\r\n([#7997](https://github.com/elastic/eui/pull/7997))\r\n -
Removed `$euiDataGridPopoverMaxHeight`\r\n- Converted `EuiDataGrid` to
Emotion\r\n([#7998](https://github.com/elastic/eui/pull/7998))\r\n -
Removed `$euiZDataGrid`\r\n - Removed `$euiZHeaderBelowDataGrid`\r\n-
Converted `EuiDataGrid`'s `gridStyle`s to Emotion; Removed
the\r\nfollowing Sass variables and
mixins:\r\n([#8006](https://github.com/elastic/eui/pull/8006))\r\n -
`$euiDataGridCellPaddingS`\r\n - `$euiDataGridCellPaddingM`\r\n -
`$euiDataGridCellPaddingL`\r\n - `$euiDataGridVerticalBorder`\r\n -
`$euiDataGridPrefix`\r\n - `$euiDataGridStyles`\r\n -
`@euiDataGridSelector`\r\n - `@euiDataGridStyles`\r\n- Converted
`EuiDataGrid`'s cell popover, actions, and focus outline to\r\nEmotion;
Removed the following Sass variables and
mixins:\r\n([#8011](https://github.com/elastic/eui/pull/8011))\r\n -
`$euiZDataGridCellPopover`\r\n - `@euiDataGridCellFocus`\r\n- Converted
`EuiDataGrid`'s row, header, and footer cells to Emotion;\r\nRemoved the
following Sass variables and
mixins:\r\n([#8013](https://github.com/elastic/eui/pull/8013))\r\n -
`$euiDataGridColumnResizerWidth`\r\n - `@euiDataGridRowCell`\r\n -
`@euiDataGridHeaderCell`\r\n -
`@euiDataGridFooterCell`","sha":"9bbb296078ea385561d46819001644cdb4fdc714"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192756","number":192756,"mergeCommit":{"message":"Upgrade
EUI to v95.11.0 (#192756)\n\n`v95.10.1``v95.11.0`\r\n\r\n> [!note]\r\n>
The bulk of this release is **EuiDataGrid**. The component has
been\r\nfully converted to Emotion, and several UX changes have been
made to\r\ndata cell actions. We recommend QA testing any data grid(s)
that have\r\ncustom styles applied to them.\r\n\r\n_[Questions? Please
see our Kibana
upgrade\r\nFAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_\r\n\r\n---\r\n\r\n##
[`v95.11.0`](https://github.com/elastic/eui/releases/v95.11.0)\r\n\r\n-
Updated `EuiText`, `EuiTextColor`, and `EuiTextAlign` with a
new\r\n`component` prop that allows changing the default rendered
`<div>`\r\nwrapper to a `<span>` or `<p>`
tag.\r\n([#7993](https://github.com/elastic/eui/pull/7993))\r\n- Updated
`EuiDataGrid`'s cell actions to always consistently be\r\nleft-aligned,
regardless of text content
alignment\r\n([#8011](https://github.com/elastic/eui/pull/8011))\r\n-
Increased `EuiDataGrid`'s cell actions hover zone to reduce
UX\r\nfriction when mousing over from the grid cell to its
actions\r\n([#8011](https://github.com/elastic/eui/pull/8011))\r\n\r\n**Bug
fixes**\r\n\r\n- Fixed `EuiPopover` to correctly inherit from
`EuiProvider`'s\r\n`componentDefaults.EuiPortal.insert`\r\n([#8003](https://github.com/elastic/eui/pull/8003))\r\n-
Fixed push `EuiFlyoutResizable`s to not potentially block
scrollbars\r\non outside content
([#8010](https://github.com/elastic/eui/pull/8010))\r\n- Fixed an
`EuiDataGrid` bug where the `setCellProps` callback passed
by\r\n`renderCellValue` was not correctly applying custom
`data-test-subj`s\r\n([#8011](https://github.com/elastic/eui/pull/8011))\r\n\r\n**Accessibility**\r\n\r\n-
Updated the `EuiBasicTable` actions button's `aria-label` by adding
a\r\nreference to the current
row\r\n([#7994](https://github.com/elastic/eui/pull/7994))\r\n\r\n**CSS-in-JS
conversions**\r\n\r\n- Converted `EuiDataGrid`'s toolbar controls to
Emotion\r\n([#7997](https://github.com/elastic/eui/pull/7997))\r\n -
Removed `$euiDataGridPopoverMaxHeight`\r\n- Converted `EuiDataGrid` to
Emotion\r\n([#7998](https://github.com/elastic/eui/pull/7998))\r\n -
Removed `$euiZDataGrid`\r\n - Removed `$euiZHeaderBelowDataGrid`\r\n-
Converted `EuiDataGrid`'s `gridStyle`s to Emotion; Removed
the\r\nfollowing Sass variables and
mixins:\r\n([#8006](https://github.com/elastic/eui/pull/8006))\r\n -
`$euiDataGridCellPaddingS`\r\n - `$euiDataGridCellPaddingM`\r\n -
`$euiDataGridCellPaddingL`\r\n - `$euiDataGridVerticalBorder`\r\n -
`$euiDataGridPrefix`\r\n - `$euiDataGridStyles`\r\n -
`@euiDataGridSelector`\r\n - `@euiDataGridStyles`\r\n- Converted
`EuiDataGrid`'s cell popover, actions, and focus outline to\r\nEmotion;
Removed the following Sass variables and
mixins:\r\n([#8011](https://github.com/elastic/eui/pull/8011))\r\n -
`$euiZDataGridCellPopover`\r\n - `@euiDataGridCellFocus`\r\n- Converted
`EuiDataGrid`'s row, header, and footer cells to Emotion;\r\nRemoved the
following Sass variables and
mixins:\r\n([#8013](https://github.com/elastic/eui/pull/8013))\r\n -
`$euiDataGridColumnResizerWidth`\r\n - `@euiDataGridRowCell`\r\n -
`@euiDataGridHeaderCell`\r\n -
`@euiDataGridFooterCell`","sha":"9bbb296078ea385561d46819001644cdb4fdc714"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Cee Chen <549407+cee-chen@users.noreply.github.com>
Co-authored-by: Cee Chen <constance.chen@elastic.co>
2024-09-26 23:17:53 -05:00
Kibana Machine
1e7765687c
[8.x] [Stateful sidenav] Update stack management landing page (#191735) (#193867)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Stateful sidenav] Update stack management landing page
(#191735)](https://github.com/elastic/kibana/pull/191735)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Sébastien
Loix","email":"sebastien.loix@elastic.co"},"sourceCommit":{"committedDate":"2024-09-24T13:01:02Z","message":"[Stateful
sidenav] Update stack management landing page
(#191735)","sha":"92f13200194e2faf35aa95a21e95d39323b2e824","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management"],"title":"[Stateful
sidenav] Update stack management landing
page","number":191735,"url":"https://github.com/elastic/kibana/pull/191735","mergeCommit":{"message":"[Stateful
sidenav] Update stack management landing page
(#191735)","sha":"92f13200194e2faf35aa95a21e95d39323b2e824"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/191735","number":191735,"mergeCommit":{"message":"[Stateful
sidenav] Update stack management landing page
(#191735)","sha":"92f13200194e2faf35aa95a21e95d39323b2e824"}}]}]
BACKPORT-->

Co-authored-by: Sébastien Loix <sebastien.loix@elastic.co>
2024-09-24 09:32:05 -05:00
Kibana Machine
d57df631aa
[8.x] Consume elasticsearch.publicBaseUrl where possible (#192741) (#193442)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Consume elasticsearch.publicBaseUrl where possible
(#192741)](https://github.com/elastic/kibana/pull/192741)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Sander
Philipse","email":"94373878+sphilipse@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-09-19T14:57:47Z","message":"Consume
elasticsearch.publicBaseUrl where possible (#192741)\n\n##
Summary\r\n\r\nThis actually consumes the public base url in the cloud
plugin and the\r\nplaces depending on the `elasticsearchUrl` value
populated there.\r\n\r\n---------\r\n\r\nCo-authored-by: Rodney Norris
<rodney@tattdcodemonkey.com>","sha":"b4a7b2e2164974e5dd9b8c1708c35d58bd021105","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Search","backport:prev-major","v8.16.0"],"title":"Consume
elasticsearch.publicBaseUrl where
possible","number":192741,"url":"https://github.com/elastic/kibana/pull/192741","mergeCommit":{"message":"Consume
elasticsearch.publicBaseUrl where possible (#192741)\n\n##
Summary\r\n\r\nThis actually consumes the public base url in the cloud
plugin and the\r\nplaces depending on the `elasticsearchUrl` value
populated there.\r\n\r\n---------\r\n\r\nCo-authored-by: Rodney Norris
<rodney@tattdcodemonkey.com>","sha":"b4a7b2e2164974e5dd9b8c1708c35d58bd021105"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192741","number":192741,"mergeCommit":{"message":"Consume
elasticsearch.publicBaseUrl where possible (#192741)\n\n##
Summary\r\n\r\nThis actually consumes the public base url in the cloud
plugin and the\r\nplaces depending on the `elasticsearchUrl` value
populated there.\r\n\r\n---------\r\n\r\nCo-authored-by: Rodney Norris
<rodney@tattdcodemonkey.com>","sha":"b4a7b2e2164974e5dd9b8c1708c35d58bd021105"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Sander Philipse <94373878+sphilipse@users.noreply.github.com>
2024-09-24 06:33:17 -05:00
Kibana Machine
022813ba21
[8.x] [core] get headers from fakeRequest in secondary user client (#192394) (#193815)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[core] get headers from fakeRequest in secondary user client
(#192394)](https://github.com/elastic/kibana/pull/192394)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Kevin
Lacabane","email":"kevin.lacabane@elastic.co"},"sourceCommit":{"committedDate":"2024-09-13T02:32:13Z","message":"[core]
get headers from fakeRequest in secondary user client (#192394)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/192004\r\n\r\nCalling
`client.asSecondaryAuthUser` from a client scoped to a fake\r\nrequest
instantiated with `getKibanaFakeRequest` returns the
following\r\nerror:\r\n`Error: asSecondaryAuthUser called from a client
scoped to a request\r\nwithout 'authorization' header.`.\r\n\r\nThis is
because we use the same branch when dealing with a real or
fake\r\nrequest and expect the headers to be cached. There are existing
tests to\r\nverify a fake request works but these requests are raw
objects not\r\ncreated through `getKibanaFakeRequest`\r\n\r\n###
Testing\r\nThis snippet does not throw\r\n```\r\nconst fakeRequest =
getFakeKibanaRequest({ id: apiKey.id, api_key: apiKey.apiKey
});\r\nconst esClient =
server.core.elasticsearch.client.asScoped(fakeRequest).asSecondaryAuthUser;\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"0987f70112aeeef0ffa9b670d86a5b5f82d60454","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor"],"title":"[core]
get headers from fakeRequest in secondary user
client","number":192394,"url":"https://github.com/elastic/kibana/pull/192394","mergeCommit":{"message":"[core]
get headers from fakeRequest in secondary user client (#192394)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/192004\r\n\r\nCalling
`client.asSecondaryAuthUser` from a client scoped to a fake\r\nrequest
instantiated with `getKibanaFakeRequest` returns the
following\r\nerror:\r\n`Error: asSecondaryAuthUser called from a client
scoped to a request\r\nwithout 'authorization' header.`.\r\n\r\nThis is
because we use the same branch when dealing with a real or
fake\r\nrequest and expect the headers to be cached. There are existing
tests to\r\nverify a fake request works but these requests are raw
objects not\r\ncreated through `getKibanaFakeRequest`\r\n\r\n###
Testing\r\nThis snippet does not throw\r\n```\r\nconst fakeRequest =
getFakeKibanaRequest({ id: apiKey.id, api_key: apiKey.apiKey
});\r\nconst esClient =
server.core.elasticsearch.client.asScoped(fakeRequest).asSecondaryAuthUser;\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"0987f70112aeeef0ffa9b670d86a5b5f82d60454"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192394","number":192394,"mergeCommit":{"message":"[core]
get headers from fakeRequest in secondary user client (#192394)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/192004\r\n\r\nCalling
`client.asSecondaryAuthUser` from a client scoped to a fake\r\nrequest
instantiated with `getKibanaFakeRequest` returns the
following\r\nerror:\r\n`Error: asSecondaryAuthUser called from a client
scoped to a request\r\nwithout 'authorization' header.`.\r\n\r\nThis is
because we use the same branch when dealing with a real or
fake\r\nrequest and expect the headers to be cached. There are existing
tests to\r\nverify a fake request works but these requests are raw
objects not\r\ncreated through `getKibanaFakeRequest`\r\n\r\n###
Testing\r\nThis snippet does not throw\r\n```\r\nconst fakeRequest =
getFakeKibanaRequest({ id: apiKey.id, api_key: apiKey.apiKey
});\r\nconst esClient =
server.core.elasticsearch.client.asScoped(fakeRequest).asSecondaryAuthUser;\r\n```\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"0987f70112aeeef0ffa9b670d86a5b5f82d60454"}}]}]
BACKPORT-->

Co-authored-by: Kevin Lacabane <kevin.lacabane@elastic.co>
2024-09-24 01:57:44 -05:00
Kibana Machine
3cab9c24f7
[8.x] [HTTP] Set explicit access for &#x60;public&#x60; HTTP APIs (#192554) (#193735)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[HTTP] Set explicit access for &#x60;public&#x60; HTTP APIs
(#192554)](https://github.com/elastic/kibana/pull/192554)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Jean-Louis
Leysens","email":"jeanlouis.leysens@elastic.co"},"sourceCommit":{"committedDate":"2024-09-23T14:53:31Z","message":"[HTTP]
Set explicit access for `public` HTTP APIs (#192554)\n\n##
Summary\r\n\r\nWe will be enforcing restricted access to internal HTTP
APIs [from\r\n9.0](https://github.com/elastic/kibana/issues/186781).
This PR is part 1\r\nof audit checking that our public APIs have their
access tag set\r\nexplicitly to ensure they are still available to end
users after we\r\nstart enforcing HTTP API restrictions. APIs reviewed
in this
PR\r\n([docs](https://www.elastic.co/guide/en/kibana/current/dashboard-import-api.html)):\r\n\r\n<img
width=\"260\" alt=\"Screenshot 2024-09-11 at 11 25
55\"\r\nsrc=\"https://github.com/user-attachments/assets/499b1f1f-8e01-4463-9410-4500e438cd23\">\r\n\r\n##
Note to reviewers\r\n\r\nThis audit is focussed on set `access:
'public'` where needed. Per the\r\nscreenshot our public-facing
documentation is taken as the source of\r\ntruth for which APIs should
be public. This may differ per offering so\r\nplease consider whether a
given HTTP API should be public on both\r\nserverless and stateful
offerings.\r\n\r\n## Risks\r\n\r\n* If we miss an API that should be
public, end users will encounter a\r\n`400` response when they try to
use the HTTP API on 9.0\r\n* If we set an API's access to \"public\" it
will not have the same\r\nrestrictions applied to
it.","sha":"3fa5bdf8732101812a656ec954e2a8d779838938","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:http","Team:Core","release_note:skip","v9.0.0","v8.16.0","backport:version"],"title":"[HTTP]
Set explicit access for `public` HTTP
APIs","number":192554,"url":"https://github.com/elastic/kibana/pull/192554","mergeCommit":{"message":"[HTTP]
Set explicit access for `public` HTTP APIs (#192554)\n\n##
Summary\r\n\r\nWe will be enforcing restricted access to internal HTTP
APIs [from\r\n9.0](https://github.com/elastic/kibana/issues/186781).
This PR is part 1\r\nof audit checking that our public APIs have their
access tag set\r\nexplicitly to ensure they are still available to end
users after we\r\nstart enforcing HTTP API restrictions. APIs reviewed
in this
PR\r\n([docs](https://www.elastic.co/guide/en/kibana/current/dashboard-import-api.html)):\r\n\r\n<img
width=\"260\" alt=\"Screenshot 2024-09-11 at 11 25
55\"\r\nsrc=\"https://github.com/user-attachments/assets/499b1f1f-8e01-4463-9410-4500e438cd23\">\r\n\r\n##
Note to reviewers\r\n\r\nThis audit is focussed on set `access:
'public'` where needed. Per the\r\nscreenshot our public-facing
documentation is taken as the source of\r\ntruth for which APIs should
be public. This may differ per offering so\r\nplease consider whether a
given HTTP API should be public on both\r\nserverless and stateful
offerings.\r\n\r\n## Risks\r\n\r\n* If we miss an API that should be
public, end users will encounter a\r\n`400` response when they try to
use the HTTP API on 9.0\r\n* If we set an API's access to \"public\" it
will not have the same\r\nrestrictions applied to
it.","sha":"3fa5bdf8732101812a656ec954e2a8d779838938"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192554","number":192554,"mergeCommit":{"message":"[HTTP]
Set explicit access for `public` HTTP APIs (#192554)\n\n##
Summary\r\n\r\nWe will be enforcing restricted access to internal HTTP
APIs [from\r\n9.0](https://github.com/elastic/kibana/issues/186781).
This PR is part 1\r\nof audit checking that our public APIs have their
access tag set\r\nexplicitly to ensure they are still available to end
users after we\r\nstart enforcing HTTP API restrictions. APIs reviewed
in this
PR\r\n([docs](https://www.elastic.co/guide/en/kibana/current/dashboard-import-api.html)):\r\n\r\n<img
width=\"260\" alt=\"Screenshot 2024-09-11 at 11 25
55\"\r\nsrc=\"https://github.com/user-attachments/assets/499b1f1f-8e01-4463-9410-4500e438cd23\">\r\n\r\n##
Note to reviewers\r\n\r\nThis audit is focussed on set `access:
'public'` where needed. Per the\r\nscreenshot our public-facing
documentation is taken as the source of\r\ntruth for which APIs should
be public. This may differ per offering so\r\nplease consider whether a
given HTTP API should be public on both\r\nserverless and stateful
offerings.\r\n\r\n## Risks\r\n\r\n* If we miss an API that should be
public, end users will encounter a\r\n`400` response when they try to
use the HTTP API on 9.0\r\n* If we set an API's access to \"public\" it
will not have the same\r\nrestrictions applied to
it.","sha":"3fa5bdf8732101812a656ec954e2a8d779838938"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Jean-Louis Leysens <jeanlouis.leysens@elastic.co>
2024-09-23 11:49:45 -05:00
Kibana Machine
3ea6db6073
[8.x] [react@18] bump &#x60;styled-components&#x60; (#192368) (#193522)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[react@18] bump &#x60;styled-components&#x60;
(#192368)](https://github.com/elastic/kibana/pull/192368)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Anton
Dosov","email":"anton.dosov@elastic.co"},"sourceCommit":{"committedDate":"2024-09-20T09:26:47Z","message":"[react@18]
bump `styled-components` (#192368)\n\n## Summary\r\n\r\nPrep for
https://github.com/elastic/kibana/issues/138222\r\n\r\n\r\nThis PR
updates `styled-components` package to the latest v5 version. I\r\nwould
like to do it for react@18 upgrade to suppress a noisy warning\r\nthat
is coming from `styled-components` when it is used with
react@18.\r\nHere is that
PR\r\nhttps://github.com/styled-components/styled-components/pull/3564/files\r\n\r\n\r\nUpdates
the failed snapshot tests.\r\n\r\n\r\nDear reviewers, could you please
smoke-check your apps visually? This is\r\na minor upgrade, but I think
it is worth to click around
anyway.","sha":"b1434a446fecd1feae4230e0e9a4fbe0fea4d8f1","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","apm:review"],"title":"[react@18]
bump
`styled-components`","number":192368,"url":"https://github.com/elastic/kibana/pull/192368","mergeCommit":{"message":"[react@18]
bump `styled-components` (#192368)\n\n## Summary\r\n\r\nPrep for
https://github.com/elastic/kibana/issues/138222\r\n\r\n\r\nThis PR
updates `styled-components` package to the latest v5 version. I\r\nwould
like to do it for react@18 upgrade to suppress a noisy warning\r\nthat
is coming from `styled-components` when it is used with
react@18.\r\nHere is that
PR\r\nhttps://github.com/styled-components/styled-components/pull/3564/files\r\n\r\n\r\nUpdates
the failed snapshot tests.\r\n\r\n\r\nDear reviewers, could you please
smoke-check your apps visually? This is\r\na minor upgrade, but I think
it is worth to click around
anyway.","sha":"b1434a446fecd1feae4230e0e9a4fbe0fea4d8f1"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192368","number":192368,"mergeCommit":{"message":"[react@18]
bump `styled-components` (#192368)\n\n## Summary\r\n\r\nPrep for
https://github.com/elastic/kibana/issues/138222\r\n\r\n\r\nThis PR
updates `styled-components` package to the latest v5 version. I\r\nwould
like to do it for react@18 upgrade to suppress a noisy warning\r\nthat
is coming from `styled-components` when it is used with
react@18.\r\nHere is that
PR\r\nhttps://github.com/styled-components/styled-components/pull/3564/files\r\n\r\n\r\nUpdates
the failed snapshot tests.\r\n\r\n\r\nDear reviewers, could you please
smoke-check your apps visually? This is\r\na minor upgrade, but I think
it is worth to click around
anyway.","sha":"b1434a446fecd1feae4230e0e9a4fbe0fea4d8f1"}}]}]
BACKPORT-->

---------

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-09-20 10:33:33 -05:00
Kibana Machine
2f79ea6a14
[8.x] hide kibana version in help menu on serverless (#193024) (#193572)
# Backport

This will backport the following commits from `main` to `8.x`:
- [hide kibana version in help menu on serverless
(#193024)](https://github.com/elastic/kibana/pull/193024)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Eyo O.
Eyo","email":"7893459+eokoneyo@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-09-20T13:08:59Z","message":"hide
kibana version in help menu on serverless (#193024)\n\n##
Summary\r\n\r\nCloses #175909 and then some.\r\n\r\nThis PR introduces
changes that hides the kibana version number from\r\nbeing displayed to
the user in serverless, where it makes sense the\r\nversion number is
entirely hidden in other cases, where the version\r\nnumber denotes the
availability of specific feature the month of release\r\nis replaced
with the version number.\r\n\r\n**P.S.**\r\nit's worth noting there are
other usages of the kibana version number,\r\nbut they aren't displayed
rather used as values for either link params\r\nor function
invocations.\r\n\r\n\r\n### How to test;\r\n\r\n- Start up an ES
serverless project of your choice; like so ` yarn es\r\nserverless
--projectType oblt --license trial`\r\n- Start up an accomapnying kibana
project that mirrors the ES project\r\nyou started choose, for our
example we'd run; `yarn serverless-oblt`\r\n- Verify that the help menu
no longer shows the version number in a\r\nserverless project.\r\n-
Verify the version number is also still displayed in stateful
kibana\r\n\r\n<!-- ### Checklist\r\n\r\nDelete any items that are not
applicable to this PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces&mdash;unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes&mdash;Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n-->\r\n\r\n###
Visuals\r\n\r\n#### stateful\r\n<img width=\"1492\" alt=\"Screenshot
2024-09-18 at 17 52
19\"\r\nsrc=\"https://github.com/user-attachments/assets/9c2d83b3-0b3b-4a2a-a0df-246de58abfaf\">\r\n\r\n####
serverless\r\n<img width=\"1493\" alt=\"Screenshot 2024-09-18 at 18 01
31\"\r\nsrc=\"https://github.com/user-attachments/assets/83740070-e2ec-4b3c-953b-a4e5c3121375\">","sha":"fd9691183ec116ea8644640e6e81f5483cf06666","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor","v8.16.0"],"title":"hide
kibana version in help menu on
serverless","number":193024,"url":"https://github.com/elastic/kibana/pull/193024","mergeCommit":{"message":"hide
kibana version in help menu on serverless (#193024)\n\n##
Summary\r\n\r\nCloses #175909 and then some.\r\n\r\nThis PR introduces
changes that hides the kibana version number from\r\nbeing displayed to
the user in serverless, where it makes sense the\r\nversion number is
entirely hidden in other cases, where the version\r\nnumber denotes the
availability of specific feature the month of release\r\nis replaced
with the version number.\r\n\r\n**P.S.**\r\nit's worth noting there are
other usages of the kibana version number,\r\nbut they aren't displayed
rather used as values for either link params\r\nor function
invocations.\r\n\r\n\r\n### How to test;\r\n\r\n- Start up an ES
serverless project of your choice; like so ` yarn es\r\nserverless
--projectType oblt --license trial`\r\n- Start up an accomapnying kibana
project that mirrors the ES project\r\nyou started choose, for our
example we'd run; `yarn serverless-oblt`\r\n- Verify that the help menu
no longer shows the version number in a\r\nserverless project.\r\n-
Verify the version number is also still displayed in stateful
kibana\r\n\r\n<!-- ### Checklist\r\n\r\nDelete any items that are not
applicable to this PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces&mdash;unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes&mdash;Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n-->\r\n\r\n###
Visuals\r\n\r\n#### stateful\r\n<img width=\"1492\" alt=\"Screenshot
2024-09-18 at 17 52
19\"\r\nsrc=\"https://github.com/user-attachments/assets/9c2d83b3-0b3b-4a2a-a0df-246de58abfaf\">\r\n\r\n####
serverless\r\n<img width=\"1493\" alt=\"Screenshot 2024-09-18 at 18 01
31\"\r\nsrc=\"https://github.com/user-attachments/assets/83740070-e2ec-4b3c-953b-a4e5c3121375\">","sha":"fd9691183ec116ea8644640e6e81f5483cf06666"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193024","number":193024,"mergeCommit":{"message":"hide
kibana version in help menu on serverless (#193024)\n\n##
Summary\r\n\r\nCloses #175909 and then some.\r\n\r\nThis PR introduces
changes that hides the kibana version number from\r\nbeing displayed to
the user in serverless, where it makes sense the\r\nversion number is
entirely hidden in other cases, where the version\r\nnumber denotes the
availability of specific feature the month of release\r\nis replaced
with the version number.\r\n\r\n**P.S.**\r\nit's worth noting there are
other usages of the kibana version number,\r\nbut they aren't displayed
rather used as values for either link params\r\nor function
invocations.\r\n\r\n\r\n### How to test;\r\n\r\n- Start up an ES
serverless project of your choice; like so ` yarn es\r\nserverless
--projectType oblt --license trial`\r\n- Start up an accomapnying kibana
project that mirrors the ES project\r\nyou started choose, for our
example we'd run; `yarn serverless-oblt`\r\n- Verify that the help menu
no longer shows the version number in a\r\nserverless project.\r\n-
Verify the version number is also still displayed in stateful
kibana\r\n\r\n<!-- ### Checklist\r\n\r\nDelete any items that are not
applicable to this PR.\r\n\r\n- [ ] Any text added follows [EUI's
writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\r\nsentence case text and includes
[i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n-
[
]\r\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\r\nwas
added for features that require explanation or tutorials\r\n- [ ] [Unit
or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n- [ ] [Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests changed\r\n- [ ] Any UI touched in this PR is
usable by keyboard only (learn more\r\nabout [keyboard
accessibility](https://webaim.org/techniques/keyboard/))\r\n- [ ] Any UI
touched in this PR does not create any new axe failures\r\n(run axe in
browser:\r\n[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),\r\n[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))\r\n-
[ ] If a plugin configuration key changed, check if it needs to
be\r\nallowlisted in the cloud and added to the
[docker\r\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\r\n-
[ ] This renders correctly on smaller devices using a
responsive\r\nlayout. (You can test this [in
your\r\nbrowser](https://www.browserstack.com/guide/responsive-testing-on-local-server))\r\n-
[ ] This was checked for
[cross-browser\r\ncompatibility](https://www.elastic.co/support/matrix#matrix_browsers)\r\n\r\n\r\n###
Risk Matrix\r\n\r\nDelete this section if it is not applicable to this
PR.\r\n\r\nBefore closing this PR, invite QA, stakeholders, and other
developers to\r\nidentify risks that should be tested prior to the
change/feature\r\nrelease.\r\n\r\nWhen forming the risk matrix, consider
some of the following examples\r\nand how they may potentially impact
the change:\r\n\r\n| Risk | Probability | Severity | Mitigation/Notes
|\r\n\r\n|---------------------------|-------------|----------|-------------------------|\r\n|
Multiple Spaces&mdash;unexpected behavior in non-default Kibana
Space.\r\n| Low | High | Integration tests will verify that all features
are still\r\nsupported in non-default Kibana Space and when user
switches between\r\nspaces. |\r\n| Multiple nodes&mdash;Elasticsearch
polling might have race conditions\r\nwhen multiple Kibana nodes are
polling for the same tasks. | High | Low\r\n| Tasks are idempotent, so
executing them multiple times will not result\r\nin logical error, but
will degrade performance. To test for this case we\r\nadd plenty of unit
tests around this logic and document manual testing\r\nprocedure. |\r\n|
Code should gracefully handle cases when feature X or plugin Y
are\r\ndisabled. | Medium | High | Unit tests will verify that any
feature flag\r\nor plugin combination still results in our service
operational. |\r\n| [See more potential
risk\r\nexamples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
|\r\n\r\n\r\n### For maintainers\r\n\r\n- [ ] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n-->\r\n\r\n###
Visuals\r\n\r\n#### stateful\r\n<img width=\"1492\" alt=\"Screenshot
2024-09-18 at 17 52
19\"\r\nsrc=\"https://github.com/user-attachments/assets/9c2d83b3-0b3b-4a2a-a0df-246de58abfaf\">\r\n\r\n####
serverless\r\n<img width=\"1493\" alt=\"Screenshot 2024-09-18 at 18 01
31\"\r\nsrc=\"https://github.com/user-attachments/assets/83740070-e2ec-4b3c-953b-a4e5c3121375\">","sha":"fd9691183ec116ea8644640e6e81f5483cf06666"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Eyo O. Eyo <7893459+eokoneyo@users.noreply.github.com>
2024-09-20 09:49:33 -05:00
Alejandro Fernández Haro
71ad243504
[8.x] [Feature Flags Service] Hello world 👋 (#188562) (#193519)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Feature Flags Service] Hello world 👋
(#188562)](https://github.com/elastic/kibana/pull/188562)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Alejandro Fernández
Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2024-09-18T16:02:55Z","message":"[Feature
Flags Service] Hello world 👋 (#188562)\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Jean-Louis Leysens
<jloleysens@gmail.com>","sha":"02ce1b91014eb59f019854b01325bbdf983d2218","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Team:Operations","Team:Security","release_note:skip","Team:Observability","Team:Fleet","v9.0.0","Team:
SecuritySolution","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-logs"],"number":188562,"url":"https://github.com/elastic/kibana/pull/188562","mergeCommit":{"message":"[Feature
Flags Service] Hello world 👋 (#188562)\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Jean-Louis Leysens
<jloleysens@gmail.com>","sha":"02ce1b91014eb59f019854b01325bbdf983d2218"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/188562","number":188562,"mergeCommit":{"message":"[Feature
Flags Service] Hello world 👋 (#188562)\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\r\nCo-authored-by:
Jean-Louis Leysens
<jloleysens@gmail.com>","sha":"02ce1b91014eb59f019854b01325bbdf983d2218"}}]}]
BACKPORT-->
2024-09-20 12:21:41 +02:00
Kibana Machine
aea6345d14
[8.x] [Chrome service] Expose handler to toggle the sidenav (#193192) (#193324)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Chrome service] Expose handler to toggle the sidenav
(#193192)](https://github.com/elastic/kibana/pull/193192)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Sébastien
Loix","email":"sebastien.loix@elastic.co"},"sourceCommit":{"committedDate":"2024-09-18T14:54:13Z","message":"[Chrome
service] Expose handler to toggle the sidenav
(#193192)","sha":"5040e3580cb4a377257c0fe6f821a1f91908db7a","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:SharedUX","backport:prev-minor"],"title":"[Chrome
service] Expose handler to toggle the
sidenav","number":193192,"url":"https://github.com/elastic/kibana/pull/193192","mergeCommit":{"message":"[Chrome
service] Expose handler to toggle the sidenav
(#193192)","sha":"5040e3580cb4a377257c0fe6f821a1f91908db7a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193192","number":193192,"mergeCommit":{"message":"[Chrome
service] Expose handler to toggle the sidenav
(#193192)","sha":"5040e3580cb4a377257c0fe6f821a1f91908db7a"}}]}]
BACKPORT-->

Co-authored-by: Sébastien Loix <sebastien.loix@elastic.co>
2024-09-18 11:25:21 -05:00
Kibana Machine
ef0b11577c
[8.x] Adds &#x27;discontinued&#x27; to OAS meta (#192331) (#192791)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Adds &#x27;discontinued&#x27; to OAS meta
(#192331)](https://github.com/elastic/kibana/pull/192331)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Christiane (Tina)
Heiligers","email":"christiane.heiligers@elastic.co"},"sourceCommit":{"committedDate":"2024-09-13T00:06:41Z","message":"Adds
'discontinued' to OAS meta (#192331)\n\n## Summary\r\n\r\nIn this PR, we
add support for a discontinued field to our router\r\nconversion logic
at the operation level. `discontinued` indicates the\r\nversion or date
when the deprecation will be removed, as a string.\r\n\r\nCloses
https://github.com/elastic/kibana/issues/192292\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Jean-Louis
Leysens
<jloleysens@gmail.com>","sha":"303d8f27e4c8cdfd541e7e6b27548cbffaf454fd","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:http","Team:Core","release_note:skip","v9.0.0","Feature:OAS","v8.16.0"],"title":"Adds
'discontinued' to OAS
meta","number":192331,"url":"https://github.com/elastic/kibana/pull/192331","mergeCommit":{"message":"Adds
'discontinued' to OAS meta (#192331)\n\n## Summary\r\n\r\nIn this PR, we
add support for a discontinued field to our router\r\nconversion logic
at the operation level. `discontinued` indicates the\r\nversion or date
when the deprecation will be removed, as a string.\r\n\r\nCloses
https://github.com/elastic/kibana/issues/192292\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Jean-Louis
Leysens
<jloleysens@gmail.com>","sha":"303d8f27e4c8cdfd541e7e6b27548cbffaf454fd"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/192331","number":192331,"mergeCommit":{"message":"Adds
'discontinued' to OAS meta (#192331)\n\n## Summary\r\n\r\nIn this PR, we
add support for a discontinued field to our router\r\nconversion logic
at the operation level. `discontinued` indicates the\r\nversion or date
when the deprecation will be removed, as a string.\r\n\r\nCloses
https://github.com/elastic/kibana/issues/192292\r\n\r\n---------\r\n\r\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\r\nCo-authored-by: Jean-Louis
Leysens
<jloleysens@gmail.com>","sha":"303d8f27e4c8cdfd541e7e6b27548cbffaf454fd"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-09-12 21:35:46 -05:00
Christiane (Tina) Heiligers
3a68f8b3ae
[http] api_integration tests handle internal route restriction (#192407)
fix https://github.com/elastic/kibana/issues/192052
## Summary

Internal APIs will be
[restricted](https://github.com/elastic/kibana/issues/163654) from
public access as of 9.0.0. In non-serverless environments, this breaking
change will result in a 400 error if an external request is made to an
internal Kibana API (route `access` option as `"internal"` or
`"public"`).
This PR allows API owners of non-xpack plugins to run their `ftr` API
integration tests against the restriction and adds examples of how to
handle it.

### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios


Note to reviewers: The header needed to allow access to internal apis
shouldn't change your test output, with or without the restriction
enabled.

### How to test the changes work:
#### Non x-pack:
1. Set `server.restrictInternalApis: true` in `test/common/config.js`
2. Ensure your tests pass

#### x-pack:
1. Set `server.restrictInternalApis: true` in
`x-pack/test/api_integration/apis/security/config.ts`
2. Ensure the spaces tests pass

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-09-12 09:23:10 +02:00
Cee Chen
20566d0262
Upgrade EUI to v95.10.1 (#192026)
`v95.9.0``v95.10.1`

> [!note]
> **EuiDataGrid**'s header cells have received a major UX change in
order to support interactive children within header content. Column
header actions now must be hovered and then clicked directly, or opened
with the Enter key, as opposed to being able to click the entire header
cell to see the actions popover.

_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_

---

## [`v95.10.0`](https://github.com/elastic/eui/releases/v95.10.0)

- Updated `EuiDataGrid` to support interactive header cell content
([#7898](https://github.com/elastic/eui/pull/7898))
- Updated `EuiSearchBar`'s `field_value_selection` filter type with a
new `autoSortOptions` config, allowing consumers to configure whether or
not selected options are automatically sorted to the top of the filter
list ([#7958](https://github.com/elastic/eui/pull/7958))
- Updated `getDefaultEuiMarkdownPlugins` to support the following new
default plugin configurations:
([#7985](https://github.com/elastic/eui/pull/7985))
- `parsingConfig.linkValidator`, which allows configuring
`allowRelative` and `allowProtocols`
  - `parsingConfig.emoji`, which allows configuring emoticon parsing
- `processingConfig.linkProps`, which allows configuring rendered links
with any props that `EuiLink` accepts
- See our **Markdown plugins** documentation for example
`EuiMarkdownFormat` and `EuiMarkdownEditor` usage
- Updated `EuiDatePicker` to support `append` and `prepend` nodes in its
form control layout ([#7987](https://github.com/elastic/eui/pull/7987))

**Bug fixes**

- Fixed border rendering bug with inline `EuiDatePicker`s with
`shadow={false}` ([#7987](https://github.com/elastic/eui/pull/7987))
- Fixed `EuiSuperSelect`'s placeholder text color to match other form
controls ([#7995](https://github.com/elastic/eui/pull/7995))

**Accessibility**

- Improved the keyboard navigation and screen reader output for
`EuiDataGrid` header cells
([#7898](https://github.com/elastic/eui/pull/7898))

## [`v95.10.1`](https://github.com/elastic/eui/releases/v95.10.1)

**Bug fixes**

- Fixed a visual bug in compact density `EuiDataGrid`s, where the header
cell height would increase when the actions button became visible
([#7999](https://github.com/elastic/eui/pull/7999))

---------

Co-authored-by: Lene Gadewoll <lene.gadewoll@elastic.co>
2024-09-10 16:06:21 -05:00
Lisa Cawley
9833f0f598
[OAS][DOCS] Add example for import saved objects API (#192291) 2024-09-09 12:17:31 -07:00