Commit graph

86706 commits

Author SHA1 Message Date
Sonia Sanz Vivas
23680ab053
[Index Management] Persist existing data_stream_options in component and index templates (#220199)
Closes https://github.com/elastic/kibana/issues/217115

## Summary
Elasticsearch has introduced a new field to component and index
templates called data_stream_options that enables failure stores on a
data stream. This field is not available for legacy templates. This PR
ensure that `data_stream_options` values are persisted in the
component/index template creation wizards, if previously set via the
API.

We will not surface the ability to change the configuration via the UI
until we have time to discuss the proper user experience.
2025-05-27 10:11:16 +02:00
Kibana Machine
9df4a9b283
[api-docs] 2025-05-27 Daily api_docs build (#221569)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/1085
2025-05-27 08:25:42 +02:00
Viduni Wickramarachchi
df8e79b945
[Obs AI Assistant] Update evaluation framework KB set up (#221565) 2025-05-26 20:27:47 -04:00
Tiago Costa
24301d7338
skip flaky suite (#221541) 2025-05-26 22:55:33 +01:00
Alberto Blázquez
a4ae08f005
Prevent URL query params reset in Asset Inventory (#221159)
## Summary

Closes 
- https://github.com/elastic/security-team/issues/12544

Applying either the search-bar filters or dropdown filters updates the
`cspq` query param and also resets other query params present in the
URL. This issue affects functionality such as the flyout panel: If the
flyout is open and the user reloads, the flyout will go hidden. Thus,
the fix updates the correct query param while preserving the rest of the
URL data.

### Videos

<details><summary>Before</summary>

https://github.com/user-attachments/assets/8c5eabc4-b8bf-4774-8aa6-1db242fa2ad4
</details> 

<details><summary>After</summary>

https://github.com/user-attachments/assets/dc458d1c-f3f9-428f-8d93-3316a5484a02
</details> 

### Checklist

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [x] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

No risks yet since feature is gated with ui setting
2025-05-26 14:48:00 -07:00
Paulina Shakirova
cc81c969fa
[a11y][SharedUX] Fix statistic flyout announcement (#219742)
## Summary

This PR resolves [[Platform:StackManagement:Kibana:Files] Statistics
panel on the files page announced
incorrectly](https://github.com/elastic/kibana/issues/217699) issue.
2025-05-26 10:47:16 -07:00
Paulina Shakirova
f517280d92
[A11y] Fix Files Flyout incorrect label announcement using VoiceOver (#219615)
## Summary

This PR fixes [[Platform:StackManagement:Kibana:Files] File panel flyout
not announced
correctly](https://github.com/elastic/kibana/issues/217695) issue.



https://github.com/user-attachments/assets/694b475b-0418-427d-bd19-07e218a9cd64
2025-05-26 10:47:00 -07:00
Paulina Shakirova
624b4173e0
[A11y][ML] Fix Wizard step 1 and 2 anomaly detection create job (#219296)
## Summary
This PR fixes [[ML] Anomaly Detection: Advanced job wizard fields in
step 1, 2 missing title from
announcement](https://github.com/elastic/kibana/issues/216638) and fixes
[[ML] Anomaly Detection: Advanced job wizard fields on Create detector
dialog modal missing title from
announcement](https://github.com/elastic/kibana/issues/216643)
issues.
2025-05-26 10:44:39 -07:00
Nicolas Chaulet
e4fda314de
[Fleet] UI to enable space awareness (#221307) 2025-05-26 19:29:23 +02:00
Alex Prozorov
c7ae240139
[Cloud Security] fix vulnerabilities table filtering that causes app to crush (#221461)
## Summary

This PR fixes a the following
[bug](https://github.com/elastic/kibana/issues/221460).

Co-authored-by: Maxim Kholod <maxim.kholod@elastic.co>
2025-05-26 18:55:24 +02:00
Jaime Soriano Pastor
4337d10c21
[Fleet] Allow to override data stream type in policies for input packages (#214216)
Allow to select the data stream type when creating policies for input
packages.
It is only possible to select the data stream type when creating policies
and not when editing them.
The selector is added as an advanced option.
2025-05-26 18:44:19 +02:00
Maria Iriarte
ca1d622ed0
[LensEmbeddable] Add "Open in lens" in the same tab (#217528)
## Summary

Closes https://github.com/elastic/kibana/issues/204155

Adds support for the following behaviors:

1. Clicking "Open in Lens" opens the Lens editor in the same tab.
2. Using Command (or Ctrl if is not an apple device) + Click opens the
Lens editor in a new tab.

> [!NOTE]
> This is a temporary workaround until a more comprehensive solution,
which requires additional effort, is implemented.

### Details

The goal is that by clicking on the "Open in Lens" button, the Lens
editor is opened in the current tab, and by Command + Clicking, the Lens
editor is opened in a separate tab. Currently, the approach uses the
`navigateToPrefilledEditor` method, exposed by the Lens plugin, which is
called upon execution of the action.

Initially, the idea was to use the shortUrl service to generate a share
URL. This service generates an Elasticsearch object, which can be
excessive since the requirement doesn’t imply generating a URL that can
be shared.

With the current approach, the data is persisted because it is in the
session storage. That is why when we click on the button and it opens in
a new tab, you can see the data. However, if you copy the same URL to
another tab, nothing appears because there’s no data.

If we want to add an href by specifying the `getHref` method to the
action (as suggested
[here](https://github.com/elastic/kibana/issues/204155#issuecomment-2578218129),
it won’t work as you cannot persist the data when you click on a link.

To maintain the requested behavior, we update the openInNewTab parameter
that is passed to the Lens `navigateToPrefilledEditor` method to be true
when it is a modified event or false when it is not.

## Checklist

- [ ] [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
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2025-05-26 18:25:56 +02:00
Kevin Delemme
3447f6268d
fix(data-forge): deprecated userName faker usage (#221522) 2025-05-26 18:09:22 +02:00
Stratoula Kalafateli
543a7b6981
[ES|QL] Adds shortcuts in the editor (#221331)
## Summary

Closes https://github.com/elastic/kibana/issues/214540

Removes the shortcuts from the Unified search component (I did some
additional cleaning too) and adds it as a button in the editor.

<img width="952" alt="image"
src="https://github.com/user-attachments/assets/c1038c89-09fe-4d27-8884-267aa2abadea"
/>

<img width="426" alt="image"
src="https://github.com/user-attachments/assets/0ef1aed6-bdc6-4564-9892-02addbcbc114"
/>

<img width="439" alt="image"
src="https://github.com/user-attachments/assets/69276b58-2651-4130-9136-ed9246e5787f"
/>


Removed the shortcut from the tooltip and button

<img width="669" alt="image"
src="https://github.com/user-attachments/assets/2d28c82c-9f0f-43d2-a2fc-a13a77bdfafc"
/>


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
2025-05-26 17:37:05 +02:00
jennypavlova
4dc21811a4
[Infra] Improve hosts view info icons a11y (#220656)
Part of #212947

## Summary

This PR adds aria labels to the info buttons to provide more information
to the user about the button as mentioned in the issue:


## Testing ( Mac OS VoiceOver utility )


<img width="1147" alt="mem_host_table_a11y"
src="https://github.com/user-attachments/assets/686ef6e0-8b9c-43f2-9af6-c2562436a0d4"
/>
<img width="873" alt="service_name_a11y"
src="https://github.com/user-attachments/assets/c78591c4-d0ec-4900-a0d5-f5a4664e1692"
/>
<img width="1646" alt="host_limit_a11y"
src="https://github.com/user-attachments/assets/fba6da7d-fa6d-4a9f-a73d-3b12c3361216"
/>

Co-authored-by: Miriam <31922082+MiriamAparicio@users.noreply.github.com>
2025-05-26 17:31:46 +02:00
Kevin Delemme
1a020b65c2
feat(streams): create esql rule for significant events (#218173) 2025-05-26 17:22:58 +02:00
Miriam
970f009750
[ObsUX] Remove background for dropdown button, visual refresh bug (#221366)
## Summary
Related to
[elastic/kibana#220620](https://github.com/elastic/kibana/issues/220620)

Following a review of the upcoming button visual refresh planned by the
EUI team for early June, we identified an issue with the background
styling on dropdown buttons within the Infrastructure Inventory view.

<img width="496" alt="image"
src="https://github.com/user-attachments/assets/5e293034-fd44-4d0e-824b-a66863c0ae8a"
/>

### Changes Implemented

- Removed the background from the dropdown button label.
- Added a right border to improve visual clarity.

These changes are safe to merge into `main` ahead of the EUI release, as
they do not impact the current UI behavior.
2025-05-26 16:07:56 +01:00
Tim
e6d0eed2eb
Remove some index settings from console auto correct (#221333)
## Summary

In Kibana dev tools console auto suggest when creating an index with
index settings it suggests some settings that are not in Elasticsearch
anymore. I removed four of these settings in this PR. It solves to issue
#221238

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [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
- [x] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [x] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

Co-authored-by: Sonia Sanz Vivas <sonia.sanzvivas@elastic.co>
2025-05-26 16:51:01 +02:00
Marco Vettorello
eb4ba962ec
[ES|QL] Use correct timeFieldName for time brush filter (#221322)
## Summary

fix #221241

## Bug and fix descriptions

The logic that applies a time filter by updating the time picker vs
adding it as a filter pill in the filter bar is described here:

e877bafa3e/src/platform/plugins/shared/unified_search/public/actions/apply_filter_action/apply_filter_action.tsx (L107-L114)

The `extractTimeFilter` function extracts the `timeRangeFilter` only if
the `timeFieldName === keys(filter.query.range)[0]` . The problem was
that the first key of `query.range` was different than the
`timeFieldName`. That `timeFieldName` in the ESQL world was wrongly
applied via the ` table.columns[xAxisColumnIndex].name` that doesn't
reflect the actual column name for ES|QL, in fact that name reflect the
visualization label name for the time dimension. In particular, before
the fix, that timeFieldName was set as the axis name (e.g.`@timestamp
every 5 minute` ) and cause the time range filter to fail to be
extracted from the filters list.

A combination of two PRs caused this to be now anymore the correct
behaviour:
- this PR https://github.com/elastic/kibana/pull/196049 introduced the
use of the `souceField` as field name for the creation of filter from a
range
- this PR https://github.com/elastic/kibana/pull/217719 instead
introduced the use of `sourceField` also for ESQL datasources. This
field points to the actual column name described in the ESQL query.

Both PR causes the `extractTimeFilter` to fail to extract the
timeFilter, pushing the filter up to the filter pills.

### Side notes

This could be probably fixed in other ways, like by avoiding using the
`sourceField` in ESQL, or by using only the column.name in the filter
creation, or by avoiding checking the `timeFieldName` against the
`query.range` key (not really sure why this is required). In general the
problem here is that there is a low confidence on what these
fields/params are supposed to be and which is supposted to be the
identifiers to use everywhere. For example the column ids reflects only
a link between the rows and the column descriptions, the name is the
associated label, but can we rely on that label for filtering? i believe
we need a stronger connection with the data and the actual original
source field or column identifier is a better choice.
I believe a valid subsequent task is
https://github.com/elastic/kibana/issues/189044
2025-05-26 16:41:06 +02:00
jennypavlova
cfe4dfa335
[APM] Fix filter button tooltip visibility (keyboard navigation) (#220698)
Closes #212342 

## Summary

This PR fixes the filter button tooltip visibility when navigating using
keyboard (it worked on hover, the issue is only when navigating using
the keyboard).

| Before | After |
|-------|-------|
|
![image](https://github.com/user-attachments/assets/c0d27b73-7083-40fd-bb4b-9b7f0154acce)|
![image](https://github.com/user-attachments/assets/7f043ce8-c9b4-4c53-b188-0fe983a5d240)
|
2025-05-26 16:37:18 +02:00
Joe Reuter
4cb42d4ae9
🌊 Streams: Remove unused code (#221502)
In the refactoring of the streams API state management, a bit of unused
code wasn't deleted. This PR removes the stuff we don't actually need
anymore.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-26 15:30:57 +02:00
Matthias Wilhelm
e13aa51e6e
[Dataview] Fix flaky Dataviews field edit tests by using a single document (#221088)
Updates functional tests to ingest only one document, avoiding flaky failures caused by inconsistent ordering. With only one document, ordering issues are no longer possible.
2025-05-26 15:30:29 +02:00
Maxim Kholod
684c87750c
Search for CVE id in all search params instead of only name (#221099)
## Summary

While reviewing Tenable mapping for CDR
https://github.com/elastic/integrations/pull/13636 noticed that CVE link
is not rendered for the following case

```
vulnerability.reference: [
      'http://www.nessus.org/u?5b3cb0db',
      'https://www.cve.org/CVERecord?id=CVE-2022-2068',
      'https://www.openssl.org/news/secadv/20220621.txt',
    ];
vulnerability.id: ['CVE-2022-2068']
```

due to the find utility looking only into `name` search param. Fixing
that by iterating over all params

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-26 14:51:50 +02:00
Maria Iriarte
75681dff3b
[Lens] [Data Table] Add settings for data grid density (#220252)
## Summary

Closes https://github.com/elastic/kibana/issues/216095?reload=1?reload=1

Introduces a new `Density` setting for the Lens Data Table, ensuring
consistency with the density options available in Discover. This
enhancement allows users to customize the table's appearance by
selecting from `Compact`, `Normal`, and `Expanded` density modes.

<img width="444" alt="Screenshot 2025-05-08 at 11 13 26"
src="https://github.com/user-attachments/assets/c5a3bfb6-d2c7-4e14-ae58-c197165ddddc"
/>

### Details

There is an existing DensityControl component in EUI that cannot be
accessed directly, only by the use of the
[toolbarVisibility](https://eui.elastic.co/docs/components/tabular-content/data-grid/toolbar/#toolbar-visibility)
prop in the `EuiDataGrid` component. Since we aren't using this prop for
the settings display because we are using a separate `Toolbar`
component, we have copied and adapted the component found
[here](1e78b3f8b4/packages/eui/src/components/datagrid/controls/display_selector.tsx (L77)).

## Screen recording


https://github.com/user-attachments/assets/4e281b58-7bd4-4cd3-bf8f-d4c2fd553ae8



## Checklist

- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [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
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

<!--
- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
-->

<!--
### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...
-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-26 14:13:37 +02:00
Sander Philipse
dc5f2ec3df
[Search] Playground sends telemetry headers with completion requests (#221292)
## Summary

Playground now sends the X-Elastic-Product-Use-Case header with a
`search_playground` for telemetry purposes.


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [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
- [x] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [x] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-26 13:30:21 +02:00
Kibana Machine
a7b69f6778
[ES|QL] Update function metadata (#221471)
This PR updates the function definitions and inline docs based on the
latest metadata from Elasticsearch.
2025-05-26 09:54:22 +02:00
Alejandro García Parrondo
135d5e28d4
[Discover] Make pin button focusable with keyboard (#214343) (#219230)
## Summary

The pin button wasn't accesible with just the keyboard, the user needed
to hover over the position and click on it.

| Before | After |
|--------|------|
| ![chrome-capture-2025-4-25
(1)](https://github.com/user-attachments/assets/1684f0e9-f3e4-4142-acec-6f3938bebf1a)
|
![chrome-capture-2025-4-25](https://github.com/user-attachments/assets/bf6d533e-febf-4c2a-9c5c-a82f405a76ed)
|

Fixes the original problem from
https://github.com/elastic/kibana/issues/214343

#### Keyboard interactions

| Scenario | Gif |
|----------|----|
| Pinning something in view |
![chrome-capture-2025-5-20](https://github.com/user-attachments/assets/7a32fec7-90bb-4dd4-96dc-10d402a2a00c)
|
| Pinning something from really far | ![chrome-capture-2025-5-20
(1)](https://github.com/user-attachments/assets/4164bac5-f2dc-4d1d-b342-7d3996488838)
|
| Unpinning something in view | ![chrome-capture-2025-5-20
(2)](https://github.com/user-attachments/assets/46c71134-3904-4966-bbb1-15a4d920a9dd)
|
| Unpinning something that goes really far (table not expanded) |
![chrome-capture-2025-5-20
(3)](https://github.com/user-attachments/assets/8827f0ce-1188-44d5-aa25-9448d3298ef0)
|
| Unpinning something that goes really far (table expanded) |
![chrome-capture-2025-5-20
(4)](https://github.com/user-attachments/assets/37525fbf-8b55-4c4c-9197-add5758156f1)
|


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: Davis McPhee <davismcphee@hotmail.com>
2025-05-26 09:47:49 +02:00
Sebastian Delle Donne
e8fc261c36
[Docs] Add new ES|QL command guide (#221236)
## Summary

Closes [#220928](https://github.com/elastic/kibana/issues/220928)
Adds documentation about adding new ES|QL commands support.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials

---------

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2025-05-26 09:04:22 +02:00
Kibana Machine
7c320ec868
[api-docs] 2025-05-26 Daily api_docs build (#221472)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/1084
2025-05-26 08:20:14 +02:00
Kibana Machine
3aee3fb3e7
[api-docs] 2025-05-25 Daily api_docs build (#221466)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/1083
2025-05-25 08:06:35 +02:00
Maryam Saeidi
1ec32967f8
[Custom threshold] Save group by information with dynamic mapping (#219826)
Relaetd to https://github.com/elastic/kibana/issues/183248 
Auto-increasing mapping limit PR:
https://github.com/elastic/kibana/pull/216719

## Summary

In this PR, we are saving dynamically mapped group by information for
the custom threshold rule. This consists of two parts:

1. Adding a dynamic field
```
// kibana.alert.grouping
[ALERT_GROUPING]: {
    type: 'object',
    dynamic: true,
    array: false,
    required: false,
  },
```
2. Adding a dynamic template
```
dynamicTemplates: [
      {
        strings_as_keywords: {
          path_match: 'kibana.alert.grouping.*',
          match_mapping_type: 'string',
          mapping: {
            type: 'keyword',
            ignore_above: 1024,
          },
        },
      },
    ],
```

The result of adding these mappings can be seen below:
|Alert|Mapping|
|---|---|

|![image](00389406-109a-4302-8966-5f249e4c1512)|

If the number of mapping limit is exceeded, the fields that are not
mapped are going to be added to the `_ignored` field, but the value is
available in the doc.

<img
src="https://github.com/user-attachments/assets/b84bcf03-b757-4f37-a93f-2559aefa5bcf"
width=500 />
2025-05-24 15:17:43 +02:00
Tomasz Ciecierski
22ecbc4e07
[AI SOC] Grant fleet (v1) access to see integrations in Search AI Lake tier (#221189) 2025-05-24 13:48:44 +02:00
Ola Pawlus
5f85a5dee5
MapScaleControlStyles in emotion (#221156)
Part of #207852

Before:


https://github.com/user-attachments/assets/5e69db7f-2437-4166-b52e-72c16fd950d8

After:


https://github.com/user-attachments/assets/86a7b6d8-b8fd-4d0b-9283-fe77fa0d8f98

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-24 10:47:47 +02:00
Kibana Machine
43431d55e4
[api-docs] 2025-05-24 Daily api_docs build (#221459)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/1082
2025-05-24 08:12:48 +02:00
Kurt
1b990c9705
Upgrading all undicis (#221445)
## Summary

Upgrade `undici`:

1. `v5.28.5` to `v5.29.0`
2. `v6.21.1` to `v6.21.3`
3. `v7.3.0` to `v7.5.0`
2025-05-23 20:27:45 -04:00
elastic-renovate-prod[bot]
cd91d71301
Update docker.elastic.co/wolfi/chainguard-base-fips:latest Docker digest to 68e0781 (main) (#221430)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| docker.elastic.co/wolfi/chainguard-base-fips | digest | `a9e07d9` ->
`68e0781` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOk9wZXJhdGlvbnMiLCJiYWNrcG9ydDpza2lwIiwiY2k6YnVpbGQtZG9ja2VyLWZpcHMiLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2025-05-24 00:25:17 +02:00
Ying Mao
c38e08bbe7
[Response Ops][Task Manager] Updating task manager README for user-scoped tasks (#221405)
Resolves https://github.com/elastic/kibana/issues/217379

## Summary

Updating task manager README docs to provide guidance on how to schedule
user-scoped tasks. Also made some other miscellaneous edits to try to
reflect the current status of the plugin.
2025-05-23 16:51:02 -04:00
elastic-renovate-prod[bot]
a6f902a201
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to 3d19648 (main) (#221410)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| docker.elastic.co/wolfi/chainguard-base | digest | `55ee1dc` ->
`3d19648` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOk9wZXJhdGlvbnMiLCJiYWNrcG9ydDpza2lwIiwicmVsZWFzZV9ub3RlOnNraXAiXX0=-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2025-05-23 22:42:33 +02:00
Nicolas Chaulet
93b3606bc2
[Fleet] Fix type error for input package policy (#221413) 2025-05-23 22:36:53 +02:00
Ryland Herrick
1f6777c401
[Detection Engine] Prevent test data from rolling outside of Cypress rules' query (#220923)
## Summary

Our tests rely on static test data, and our cypress suite was running
rules with a large lookback (50000h) against them. Recently, tests have
begun failing because we've exceeded 50000h since the data's
`@timestamp`. This PR updates the cypress rules to use a fixed `from`
field wherever possible, in order to "fix" that query window's starting
point, ensuring that this issue does not recur. This is already how our
integration tests are creating similar rules, so as an added bonus we're
now more consistent across test suites, as well.

This unskips and thus resolves the following issues:

* https://github.com/elastic/kibana/issues/201334
* https://github.com/elastic/kibana/issues/220822
* https://github.com/elastic/kibana/issues/207913
* https://github.com/elastic/kibana/issues/199905

Note that there may be more instances of skipped tests that were failing
due to this issue (with e.g. data with an earlier date than the
`2019-09-02` here); the above tests were just the most obvious and most
recent (within the last week).

### Flaky Runner
* Detection Engine Cypress (x150):
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8291

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [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
2025-05-23 15:16:26 -05:00
Joe Reuter
2a17a348cf
🌊 Streams: Disable failure store (#221398)
So far failure store was enabled for wired streams on stateful (which is
not released yet). Until we know how the experience should look like,
this PR disables failure store. Once we have a decision, we can enable
it in a unified way for stateful and stateless, since both of these
support failure store now.
2025-05-23 21:19:59 +02:00
Philippe Oberti
7a4bd24968
[Security Solution] renaming dataView to dataViewSpec and adding types for clarity (#220718)
## Summary

This PR performs a very small renaming of variables, just to make sure
that `DataView` and `DataViewSpec` are not confused with each other.

We had a team discussion as we could extract some of the logic to
retrieve the old and experimental `DataViewSpec` done in a separate
hook, but we decided to go against that for now.
2025-05-23 14:08:05 -05:00
elastic-renovate-prod[bot]
d2325cee96
Update docker.elastic.co/wolfi/chainguard-base-fips:latest Docker digest to a9e07d9 (main) (#220434)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| docker.elastic.co/wolfi/chainguard-base-fips | digest | `6e347a2` ->
`a9e07d9` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOk9wZXJhdGlvbnMiLCJiYWNrcG9ydDpza2lwIiwiY2k6YnVpbGQtZG9ja2VyLWZpcHMiLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Brad White <Ikuni17@users.noreply.github.com>
2025-05-23 12:41:28 -06:00
elastic-renovate-prod[bot]
f02c4bc052
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to 55ee1dc (main) (#220435)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| docker.elastic.co/wolfi/chainguard-base | digest | `67d82bc` ->
`55ee1dc` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://redirect.github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDcuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNy4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOk9wZXJhdGlvbnMiLCJiYWNrcG9ydDpza2lwIiwicmVsZWFzZV9ub3RlOnNraXAiXX0=-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Brad White <Ikuni17@users.noreply.github.com>
2025-05-23 12:37:34 -06:00
Nathan Reese
e937e91697
[canvas] fix embeddables not refreshing on manual refresh or auto-refresh (#221326)
Fixes https://github.com/elastic/kibana/issues/221321

### test instructions
1) install sample web logs
2) import canvas saved object
https://github.com/nreese/notes/blob/master/empty-canvas-workpad-saved-object-export.ndjson
3) refresh kibana
4) open canvas and add map embeddable
5) open browser network tab
6) click "Refresh data" button. Verify map requests new data
7) open "View" menu. Click "Refresh data". Verify map requests new data
8) set auto internal to "5s". Verify map requests new data on each
interval

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-05-23 12:35:26 -06:00
Elena Shostak
c87ff286fc
[CodeQL] Set CODEQL_THREADS env variable (#221396)
## Summary

Set `CODEQL_THREADS` env variable that landed in `3.28.18` release.
2025-05-23 17:36:00 +00:00
Tiago Costa
31e231245b
skip flaky suite (#221290) 2025-05-23 18:30:48 +01:00
Philippe Oberti
8ca90573d6
[Security Solution] extract dataView from GroupedAlertsTable (#220681)
## Summary

Similar to the following previous PRs([this
one](https://github.com/elastic/kibana/pull/216572) and [that
one](https://github.com/elastic/kibana/pull/219878)), this PR aims at
removing some logic built-in to the `GroupedAlertsTable` and pass the
information via props. It makes this reusable component a lot easier to
use in different scenarios.

In this current case, we're removing the retrieval of the dataView
within the `GroupedAlertsTable`. We now rely on the `DataViewSpec`
object passed via prop instead. This allows us to get rid of the
following props:
- `signalIndexName`, which we now retrieve from the DataViewSpec object
directly
- `runtimeMappings`, which we also now retrieve from the DataViewSpec
object directly

This solves one issue, which was related to the fact that the
`GroupedAlertsTable` was retrieving the `detections` dataView
internally, so there was a high chance that the `signalIndexName` and
`runtimeMappins` passed via props would not match the hardcoded
`detections` dataView retrieved internally... which is very confusing!
We are having this problem in the AI4DSOC Alert summary page, which
creates a adhoc dataView just for alerts...

**_No UI or behavior change are introduced in this PR!_**

Alerts page


https://github.com/user-attachments/assets/a4e0c1a6-fa91-4b1e-881c-56d95667e84b

Rule details page


https://github.com/user-attachments/assets/6d93e7d0-0446-4ecb-aa37-4ab266b62686

AI4DSOC Alert summary page


https://github.com/user-attachments/assets/7354bad2-64d1-4722-94c3-ae2d9b72fcab

### 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
2025-05-23 12:03:49 -05:00
Philippe Oberti
91106944ed
[Security Solution][Alert details] remove enableVisualizationsInFlyout advanced setting (#220590)
## Summary

This PR removes the `securitySolution:enableVisualizationsInFlyout`
advanced settings that allowed users to switch between Analyzer and
Session View components displayed in an overlay on top of tables, or
within the flyout expanded panel.
The setting was already defaulted to true, so this PR just removes the
ability to go back to the analyzer and session view components displayed
as table overlay.

This PR is the first of 4 that perform the clean up:
- this first PR that removes the advanced setting
- a follow up PR that will remove the code related to rendering session
view as overlay
- a follow up PR that will remove the code related to rendering analyzer
as overlay
- a final clean up that removes a lot of dead code related to timeline
full screen and such

The work is divided in multiple PRs because when I got everything
working locally it ended up touching nearly 120 files, making the review
difficult...

---------------------------

No more advanced settings
![Screenshot 2025-05-08 at 4 55
24 PM](https://github.com/user-attachments/assets/64f2b80f-afcc-4c76-a6b3-343dbf248a2b)

The alerts table goes to the flyout


https://github.com/user-attachments/assets/b8b934ba-ea9f-4bb2-aaf4-0f73f359eb3a

The table still works from the Cases page


https://github.com/user-attachments/assets/65ffe289-3a3c-4766-aa52-4f68a2f2dd87

And from timeline (the tabs are not showing up either)


https://github.com/user-attachments/assets/0bb17b2f-b6b7-4417-9212-2302b778cc23

### 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
2025-05-23 12:02:50 -05:00
Devin W. Hurley
5bc61bff26
[Security Solution] [Detections] adds user errors to all rule types (#220526)
## Summary

Tags user errors in all rule types. My hope is by placing the user error
function in the rule wrapper we can cover all the rule type errors
without having to put custom logic into each executor's catch block, and
other nested functions.

I added some unit tests but for manual testing the two new errors I
added to `checkErrorDetails` you can do the following:

1. install the prebuilt rule `Rapid7 Threat Command CVEs Correlation`
and start it. This is a threat match rule that will throw an
index_not_found exception because the threat index does not exist.
2. Install the ml rule `Unusual Process Spawned by a User` and enable
it. The rule will fail because the job is missing.
3. Add a console log statement within
`x-pack/solutions/security/plugins/security_solution/server/lib/detection_engine/rule_types/utils/check_error_details.ts`
to ensure `isUserError` is true for each given rule failure, or check
the event log in dev tools.
2025-05-23 12:18:24 -04:00