Commit graph

83800 commits

Author SHA1 Message Date
Bharat Pasupula
cf0f338d87
[Automatic Import] Fix generated name for integration title (#210916)
## Summary

A bug was introduced with #210770 and this PR fixes that. The Package
name generated is validated.
2025-02-13 17:02:03 +01:00
Pablo Machado
fe96fe2dbc
[Security Solution] Update entity store copies (#210991)
## Summary

* Update `Initializing entity store`  to `Configuring Entity Store`
* Update `Your entity store is currently empty. Add information...` to
`Add information...`

<img width="400"
src="https://github.com/user-attachments/assets/f64bf5de-bb42-4675-a816-6202dca4bb80"/>
<img width="400"
src="https://github.com/user-attachments/assets/cf1ea4c0-416d-408a-a166-b85c3e57135a"/>
2025-02-13 16:42:09 +01:00
Paul Tavares
10e2d9e7e9
[Security Solution][Endpoint] Add new "Global Artifact Management" RBAC privilege in support of spaces (#210426)
## Summary

- Adds a new kibana feature privilege to the `Security > Endpoint`
grouping for "Manage Global Artifacts"
- new privilege is behind the following feature flag:
`endpointManagementSpaceAwarenessEnabled`
- new privilege is not yet being used in this PR. Subsequent PRs that
will introduce space awareness changes for endpoint management will
leverage this new privilege
- Fixes the `All` and `Read` labels to ensure they can be localized
(`i18n`)
2025-02-13 16:08:29 +01:00
Kenneth Kreindler
e176c84449
[Security Solution] [AI Assistant] Fix flashing citations (#209629)
## Summary

Fixes a small UI bug in the citations feature. Previously, after a
message with citations finished streaming, the citations would disappear
for a fraction of a second and then reappear again. This PR makes
improves the UI by making the citations not flash off and on after the
stream finishes.

### Changes:
- Fix flashing citations
- Refactor code related to parsing content references (to make it more
maintainable).
- Update the citations prompt slightly.

### Before:


https://github.com/user-attachments/assets/1021dd53-018a-43ba-b1f4-24aab44faca9

<img width="1782" alt="image"
src="https://github.com/user-attachments/assets/723cd29a-48a2-48e7-b031-0893484746b9"
/>


### After:


https://github.com/user-attachments/assets/21f340bc-9015-42b6-a574-0439d2f8f192

### How to test
- Enable the feature flag
```yaml
# kibana.dev.yml
xpack.securitySolution.enableExperimental: ['contentReferencesEnabled']
```
- Open the security assistant
- Ask it a question about your alerts of a document in your KB. The
response should contain citations.
- Observe the response stream carefully. Ensure the citations e.g. `[1]`
do not flash off and on when the response stream finishes. The expected
behavior is that while the message is streaming, the citations are
disabled and once the stream finishes the citations get enabled (while
always being visible).

#### Edge case to test
It is possible that citations completely disappear after streaming
finishes. This happens when the LLM produces an invalid citation.
Invalid citations are hidden client side when a message finishes
streaming. You can verify this behavior by asking GPT4o this question:
```
Prepend each line with this placeholder citation "{reference(1234)}" and append the actual citation at the end of the line. How many alerts do I have? Use the open and acknowledged alerts count tool to answer and repeat the answer 50 times on new lines.
```

While the response is getting streamed it should look like this:

<img width="200" alt="image"
src="https://github.com/user-attachments/assets/03d160bf-2404-4a4e-8701-e3183c604cc4"
/>

And when the stream finishes it should look like this:

<img width="200" alt="image"
src="https://github.com/user-attachments/assets/06367379-17da-438f-a93a-9d539067ab90"
/>


### 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>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-02-13 15:07:25 +00:00
Robert Jaszczurek
26548aeaa6
[ML] Trained models: Update the start model allocation response type (#210966)
Updates the type correctly, as it is currently set to `{acknowledge:
boolean}`, which is the wrong type.
2025-02-13 14:56:36 +01:00
Devin W. Hurley
18ef744a9c
[Security Solution] [Detections] Disables sorting ip ranges in value list modal (#210922)
## Summary

Disables sorting ip range values in a value list until this bug is
fixed in elasticsearch.

related: https://github.com/elastic/elasticsearch/issues/122358
2025-02-13 08:37:37 -05:00
Drew Tate
79f1144974
[ES|QL] Separate ROW and SHOW autocomplete routines (#210934)
## Summary

Part of https://github.com/elastic/kibana/issues/195418

Gives `ROW` and `SHOW` autocomplete logic its own home 🏡

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

### Identify risks

- [ ] As with any refactor, there's a possibility this will introduce a
regression in the behavior of FROM. However, all automated tests are
passing and I have tested the behavior manually and can detect no
regression.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2025-02-13 06:35:10 -07:00
Ievgen Sorokopud
526ff0516e
[Rules migration][Integration test] Get migration rules API (#11232) (#210867)
## Summary

[Internal link](https://github.com/elastic/security-team/issues/10820)
to the feature details

Part of https://github.com/elastic/security-team/issues/11232

This PR covers SIEM Migrations GET API (route:
`/internal/siem_migrations/rules/{migration_id}`) integration test:
* Basic calls
* Filtering
* Sorting
* Pagination
2025-02-13 13:44:08 +01:00
Ignacio Rivas
baadf59aa2
[Console] Fix bug with inline autocompletion (#210187) 2025-02-13 13:15:22 +01:00
Miriam
3bf3dad7a0
[ObsUX] Fix chart colors for observability overview apm and hosts charts (#210847)
## Summary

Fixed the colors for the observability overview charts on APM and Hosts

BEFORE

<img width="1685" alt="image"
src="https://github.com/user-attachments/assets/ee68eec4-742c-44ab-bbb6-8890bee1c0bf"
/>

AFTER


![image](https://github.com/user-attachments/assets/2d8f8970-0938-4ccb-8679-533760fb3622)


> [!NOTE]  
> For some reason CPU chart on Hosts it's not showing, seems a bug, but
that's out of the scope of this issue

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-02-13 11:54:43 +00:00
Stratoula Kalafateli
f96b68dbac
[ES|QL] Creates controls for stats functions (#210170)
## Summary

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

Allows the creation of function controls. These are only available for
STATS

<img width="880" alt="image"
src="https://github.com/user-attachments/assets/fe57c3e5-f42a-4d9c-95b3-4a5a12938821"
/>


### Release notes
Allows the creation of dynamic aggregations controls for ES|QL charts.

### 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] [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] 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-02-13 12:28:18 +01:00
Shahzad
159910d06f
[Synthetics] Refactor screenshot block route to not return 404 !! (#210656)
## Summary

Refactor screenshot block route to not return 404 !!

Route will return empty list instead of 404 for missing screenshot
blocks !!

This also updates to enable _inspect on route !!

### Testing
Screenshot still works as expected 

<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/9a2b887d-9091-4bff-97e6-3c0775e6f6bd"
/>
2025-02-13 12:11:13 +01:00
Shahzad
211165524f
[SLOs] Always show inspect slo button !! (#210734)
## Summary

 Always show inspect slo button !!

It's extremely useful when doing an investigation so i think it don't
makes sense to hide it behind settings.

<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/b19fe5c8-2dd1-4817-81d2-6ce8864b3c27"
/>


<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/faa07522-5b52-4c56-961a-4ebc6d0fc759"
/>
2025-02-13 12:10:27 +01:00
Joe Reuter
25127500bb
🌊 Streams: Support classic streams without pipelines (#210223)
Unwired streams can come with or without a default ingest pipeline
defined. If there is a pipeline defined, it's clear where to plug in our
custom parsing logic.

However, so far we would bail out on streams without a configured ingest
pipeline. However, since there are good reasons to have data streams
without an ingest pipeline, we should support this case.

This PR makes sure we do:
* If the streams processing pipeline is the default pipeline itself
already, everything is fine
* If there is none yet, extend the user-managed index template to set
the default pipeline to the streams processing pipeline and roll over
the data stream to apply
2025-02-13 11:20:29 +01:00
Pablo Machado
c241772ecb
Delete 'critical services' count from Entity Analytics Dashboard header (#210827)
## Summary

This PR deletes the "Critical Services" component from the Entity
Analytics Dashboard header.
 
![Screenshot 2025-02-12 at 10 33
40](https://github.com/user-attachments/assets/07e57c40-e6c7-4c7f-9546-92274ad9ccf4)


The component was included with the service entity store, but Product
and QA consider it confusing and not very valuable to our users.


### How to test it?
* Start Kibana with security data
* Go to the security solution/entity analytics dashboard
* The component shouldn't be there
2025-02-13 07:14:55 -03:00
Tomasz Kajtoch
e5958a47f3
Upgrade EUI to v99.2.0-borealis.0 (#209690)
`99.1.0-borealis.0`  `99.2.0-borealis.0`

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

---

## [`v99.2.0`](https://github.com/elastic/eui/releases/v99.2.0)

- Changed `EuiFieldText` styles to prioritize `disabled` styling over
`readonly`. ([#8271](https://github.com/elastic/eui/pull/8271))
- Added `plugs` and `web` glyphs to `EuiIcon`
([#8285](https://github.com/elastic/eui/pull/8285))
- Update `title` on `EuiColorPalettePickerPaletteProps` to be optional
([#8289](https://github.com/elastic/eui/pull/8289))

**Bug fixes**

- Fixed an issue with EuiDataGrid with auto row height resulting in a
table of 0 height ([#8251](https://github.com/elastic/eui/pull/8251))
- Fixed `disabled` behavior of `EuiFieldText` to prevent input changes.
([#8271](https://github.com/elastic/eui/pull/8271))

**Borealis changes**

- [Visual Refresh] Provide hooks for color palette functions
([#8284](https://github.com/elastic/eui/pull/8284))
- [Visual Refresh] Make Borealis default theme in EUI
([#8288](https://github.com/elastic/eui/pull/8288))

---

As you can probably tell, there are plenty of updated tests and
snapshots this time around. They are the result of the following:

1. We've updated the default theme in `@elastic/eui` v99.2.0 to
Borealis, which led to kibana tests using `renderWithTheme`,
`mountWithTheme`, and other utility functions that wrap the tested
component in `<EuiThemeProvider>` to switch to the correct, new color
values. With this change, all tests should now use Borealis, regardless
of the testing framework or its configuration.
2. Because of the default theme change in EUI, some class name hash
fragments (e.g., `css-`**`wprskz`**`-euiButtonIcon-xs-empty-primary`)
regenerated.

Most Borealis-related changes in this PR are test env only and have no
impact on what users see when using Kibana.

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-02-13 10:20:46 +01:00
Kibana Machine
7ef3d6e140
[api-docs] 2025-02-13 Daily api_docs build (#210949)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/982
2025-02-13 08:19:05 +01:00
Quynh Nguyen (Quinn)
e710f09d0c
[Fleet] Fix unattended Transforms in integration packages not automatically restarting after reauthorizing (#210217)
## Summary

This PR partially addresses an issue with
https://github.com/elastic/integrations/issues/12486 where the transform
doesn't "restart" immediately after reauthorizing. This is because for
unattended transform, calling `_start` will come back with 409 transform
already started error. So this PR tracks if the transform has
`settings.unattended: true`, if yes, stop the transform first before
starting.

Without this step, the transform will retry again and become healthy
again anyway but it takes longer for that retry to happen, so this PR
speeds up the process of retrying.


### 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: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-02-12 23:49:58 -06:00
elastic-renovate-prod[bot]
a0f8f1ddff
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to d74b1fd (main) (#210719)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| docker.elastic.co/wolfi/chainguard-base | digest | `8df3ca6` ->
`d74b1fd` |

---

### 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-02-13 04:08:16 +01:00
Drew Tate
201dfddeaa
[ES|QL] Separate FROM autocomplete routine (#210465)
## Summary

Part of https://github.com/elastic/kibana/issues/195418

Gives `FROM` and `METADATA` autocomplete logic its own home 🏡

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

### Identify risks

- [ ] As with any refactor, there's a possibility this will introduce a
regression in the behavior of FROM. However, all automated tests are
passing and I have tested the behavior manually and can detect no
regression.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-02-13 01:03:30 +01:00
Tim Sullivan
95eea95a5f
[React Error Boundary] Integrate APM error capture (#209006)
## Summary

Addresses: https://github.com/elastic/observability-dev/issues/4222

The intent of this PR is to improve the kind of telemetry/metrics that
are captured when there is a fatal error in rendering a React component
in Kibana.

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

### 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.

- [ ] Risk of re-visiting this work if we need to add more
instrumentation (APM spans, etc)
2025-02-12 23:02:48 +01:00
Bailey Cash
4d3cf33ffd
Add location, fix name badge links for Synthetics SLOs (#210695)
## Summary

- Implements #178138 
- Fixes a bug where clicking on the existing link to the monitor via the
name badge led failed to load any data.

## Release Notes
- Fixes a bug where clicking on the name badge for a synthetics monitor
on an SLO details page would lead to a page that failed to load monitor
details.
- Adds a working link to the location badge on synthetics SLOs that will
route the user to the monitors page with a filter applied that matches
the location of the origin SLO.

![Screenshot 2025-02-11 at 3 31
15 PM](https://github.com/user-attachments/assets/1df39069-fc42-4c33-a7e5-8395b2730f43)
![Screenshot 2025-02-11 at 3 31
34 PM](https://github.com/user-attachments/assets/f1b3180f-eb9c-4f3b-9ff6-66bd4d1f8d5b)
2025-02-12 21:08:13 +01:00
Alexi Doak
ac441baa36
[ResponseOps] Document creating task-manager serverless monitoring assets - adding to kibana dev docs navigation (#210902)
## Summary

This PR adds the new docs to the Kibana dev docs nav
2025-02-12 12:02:15 -08:00
James Gowdy
36c764ebf7
[ML] AIOps Hiding saved query controls (#210556)
The AIOps pages in ML make use of the shared query bar component, but do
not support saved queries.
By having the load and save query options in the menu, it can give the
impression that these options are generally available but for some
reason cannot be used.
This PR adds a new optional flag which allows the load and save options
to be hidden from the menu.
The flag defaults to always showing the options.

Fixes https://github.com/elastic/kibana/issues/209152

**Before**

![image](https://github.com/user-attachments/assets/a26a73d0-63b4-47c1-bfa2-8579b08dfe24)

**After**

![image](https://github.com/user-attachments/assets/4fe6937e-3c7d-4d15-98da-fdf472fc21ee)
2025-02-12 19:52:30 +00:00
Marshall Main
9cad58719b
[Security Solution] Remove non-errors and user errors from console logs (#206973)
## Summary

This PR will drastically reduce the number of console logs from the
Detection Engine in the overview cluster. If your team is depending on
the `INFO`, `WARNING`, or `verification_exception` or `ml job missing`
`ERROR` logs in that cluster, please raise your concerns here.

Addresses https://github.com/elastic/kibana-team/issues/1395,
https://github.com/elastic/kibana-team/issues/1333

Historically Detection Rules have written an enormous amount of data to
the console logs. This was helpful in debugging years ago before we had
the event log, but now we generally don't use them much. The console
logs all still get scooped up and sent to the overview cluster though.
Every rule execution writes two or more status changes (first to
'running', then to the final status later on) and these go to the
console, the event log, and the rule SO. The end result is 76% of all
logs are coming from detection rules changing status, mostly successful
statuses. These provide little value on their own.

This PR restricts console logging from detection rules to only non-user
errors. User errors and execution statuses below the error level will be
logged in the console at the `debug` level. "Unexpected" errors like
search exceptions, timeouts, etc will still appear as errors in the
console logs. The general idea is that the logs from detection rules in
the console should represent some kind of unexpected system failure.

To implement this change, I updated the console logging logic in both
the security rule execution logger. User errors reported to the
framework will still create console error logs since they're logged at
the framework level.

## Testing
Create rules that run and generate warnings (e.g. missing index), user
errors (EQL verification exceptions), and non-user errors. An easy way
to create a non-user error at the moment is running a threshold rule
when at least one index searched maps `@timestamp` as a `keyword`
instead of `date`. The non user errors still show up in console logs as
errors. User errors and warnings only show up as debug logs and with
debug logging enabled in the Kibana config.
2025-02-12 13:22:31 -05:00
Brad White
eb204c0f28
skip flaky suite (#207427) 2025-02-12 11:22:27 -07:00
Alexi Doak
8bff766095
[ResponseOps] Updating TM metrics to handle when capacity estimation returns NaN (#207116)
Resolves https://github.com/elastic/kibana/issues/204467

## Summary

`assumedRequiredThroughputPerMinutePerKibana` is `NaN` when the
`capacityStats.runtime.value.load.p90` is undefined. This PR adds a
check to catch when the load.p90 is undefined, throw an error, and
ignore calculating the capacity estimation.


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

### To verify
I was not able to reproduce this locally without changing the code, so
here is how I tested the code and I am definitely open to suggestions of
how to better test this.

1. Update the code to set `capacityStats.runtime.value.load.p90:
undefined`. I set it
[here](286c9e2ddb/x-pack/platform/plugins/shared/task_manager/server/monitoring/capacity_estimation.ts (L55)),
but there are other places upstream where you could set it to
`undefined`.
2. Start Kibana
3. Verify that you see the following log message:
```
 Task manager had an issue calculating capacity estimation. averageLoadPercentage: undefined
```
2025-02-12 10:16:35 -08:00
Ania Kowalska
7ed105d715
[Search] Increase search timeout toast lifetime to 1 week (#210576) 2025-02-12 18:40:10 +01:00
Dima Arnautov
1ccb6db350
[ES|QL] Fix WHERE autocomplete with MATCH before LIMIT (#210607)
## Summary

Related PR https://github.com/elastic/kibana/pull/199032


Fixes `WHERE` autocomplete with `MATCH` before `LIMIT`.

The previous check was filtering suggestions based on all present
commands, not just the previous one.

### 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-02-12 18:38:45 +01:00
elastic-renovate-prod[bot]
a402f4e584
Update dependency polished to v4 (main) (#206220)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [polished](https://polished.js.org)
([source](https://togithub.com/styled-components/polished)) |
dependencies | major | [`^3.7.2` ->
`^4.3.1`](https://renovatebot.com/diffs/npm/polished/3.7.2/4.3.1) |

---

### Release Notes

<details>
<summary>styled-components/polished (polished)</summary>

###
[`v4.3.1`](https://togithub.com/styled-components/polished/releases/tag/v4.3.1)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.3.0...v4.3.1)

### Bug Fixes & Improvements

- Remove annotate-pure-calls plugin to address incompatibility with
later versions of rollup.
-   Update dependencies.

###
[`v4.3.0`](https://togithub.com/styled-components/polished/compare/v4.2.2...v4.3.0)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.2.2...v4.3.0)

###
[`v4.2.2`](https://togithub.com/styled-components/polished/releases/tag/v4.2.2)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.2.1...v4.2.2)

### Bug Fixes

- **Color Modules** - addresses an issue with longer floats in color
values.
([#&#8203;610](https://togithub.com/styled-components/polished/issues/610)
- Thanks to [@&#8203;levymetal](https://togithub.com/levymetal))

###
[`v4.2.1`](https://togithub.com/styled-components/polished/releases/tag/v4.2.1)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.2.0...v4.2.1)

### Bug Fixes

-   **`hls(a)`** - now properly parses percentages for opacity.
-   **`rgb(a)`** - now properly parses percentages for opacity.

###
[`v4.2.0`](https://togithub.com/styled-components/polished/releases/tag/v4.2.0)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.1.4...v4.2.0)

### Improvements

- **color Modules** - now support space-separated CSS color values for
rgb(a) and hsl(a).
([#&#8203;605](https://togithub.com/styled-components/polished/issues/605))
-   **`rgb`** - now accepts optional opacity value.
-   **`hsl`** - now accepts optional opacity value.

###
[`v4.1.4`](https://togithub.com/styled-components/polished/releases/tag/v4.1.4)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.1.3...v4.1.4)

### Bug Fixes

- **mix** - remove unnecessary division by 1
([#&#8203;59](https://togithub.com/styled-components/polished/issues/59))

###
[`v4.1.3`](https://togithub.com/styled-components/polished/releases/tag/v4.1.3)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.1.2...v4.1.3)

### Bug Fixes

-   Addressed several performance issues with regexes.

###
[`v4.1.2`](https://togithub.com/styled-components/polished/releases/tag/v4.1.2)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.1.1...v4.1.2)

### Bug Fixes

- **fluidRange** - updated return value to use an array to address
unclear object property typing error in flow.

###
[`v4.1.1`](https://togithub.com/styled-components/polished/releases/tag/v4.1.1)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.1.0...v4.1.1)

### Bug Fixes

- **scarf** - removed scarf analytics package due to yarn
incompatibilities and concerns over GDPR compliance.

###
[`v4.1.0`](https://togithub.com/styled-components/polished/releases/tag/v4.1.0)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.0.5...v4.1.0)

### Introducing polished.js v4.1.0!

We're super stoked to announce that polished.js v4.1.0 is officially
out! It is available via your package manager of choice. This will be
the final non-patch release before v5.

`npm install polished`
`yarn add polished`

#### Release Highlights

##### New Module

- **`remToPx`**: We've introduced a new module to handle converting to
`rem` values to `px` values.
([#&#8203;376](https://togithub.com/styled-components/polished/issues/376))

##### Analytics

- We are now leveraging [Scarf](https://scarf.sh) to track package
analytics. You can opt-out of this functionality by following [these
instructions](https://docs.scarf.sh/package-analytics/#as-a-user-of-a-package-using-scarf-js-how-can-i-opt-out-of-analytics)

###
[`v4.0.5`](https://togithub.com/styled-components/polished/releases/tag/v4.0.5)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.0.4...v4.0.5)

#### Documentation

- `readableColor` - Update docs and function signature to be clearer
about the use of each parameter.

###
[`v4.0.4`](https://togithub.com/styled-components/polished/releases/tag/v4.0.4)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.0.3...v4.0.4)

### Bug Fixes

- **transparentize** - addressed an issue where we weren't handling
cases where floats were greater than 2 decimals.
([#&#8203;548](https://togithub.com/styled-components/polished/issues/548))
- **npm** - addressed an issue where .yarn cache was bloating published
package size, along with some other ignore optimization.
([#&#8203;553](https://togithub.com/styled-components/polished/issues/553)
Thanks [@&#8203;scttcper](https://togithub.com/scttcper))

###
[`v4.0.3`](https://togithub.com/styled-components/polished/releases/tag/v4.0.3)

[Compare
Source](https://togithub.com/styled-components/polished/compare/v4.0.2...v4.0.3)

### Bug Fix

- Updated [@&#8203;babel/runtime](https://togithub.com/babel/runtime) to
address webpack v5 compatibility issue (Thanks
[@&#8203;koba04](https://togithub.com/koba04) -
[#&#8203;547](https://togithub.com/styled-components/polished/issues/547)
)

###
[`v4.0.2`](https://togithub.com/styled-components/polished/releases/tag/v4.0.2)

### Bug Fix

- `ellipsis`: Fixes an issue where the `webkit` prefix was not properly
applied with the multiline option. (Thanks
[@&#8203;drakang4](https://togithub.com/drakang4) -
[#&#8203;546](https://togithub.com/styled-components/polished/issues/546))

</details>

---

### 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://togithub.com/renovatebot/renovate).

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

---------

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: jennypavlova <dzheni.pavlova@elastic.co>
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2025-02-12 18:33:46 +01:00
Pablo Machado
78a596b05f
[SecuritySolution] Make entity store description more generic (#209130)
## Summary

Make entity store description more generic.
Before:
"Store host and user entities observed in events."
"Monitor user and host risk scores, and track anomalies."


After:
"Store entities data observed in events."
"Monitor entities' risk scores, and track anomalies."


![Screenshot 2025-01-31 at 16 29
12](https://github.com/user-attachments/assets/6c7f20aa-e78b-46eb-bbf8-38d863c166bb)
![Screenshot 2025-01-31 at 16 29
31](https://github.com/user-attachments/assets/baca1a83-a1a2-48f7-b5cd-68c00c59caee)
![Screenshot 2025-01-31 at 16 29
47](https://github.com/user-attachments/assets/f7c433a2-85cd-4a22-8e73-14ebf851c047)





### 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] 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)
- [ ] ...
2025-02-12 13:47:26 -03:00
Jesse Sant
62977e7069
[Security Solution] Cypress: Also cleanup proxy handler projects (#192213)
## Summary

Based on a request in [this
issue](https://github.com/elastic/security-team/issues/10341). The
Cypress cleanup task for serverless testing didn't include a command to
cleanup the project tested against when that project was created using
the proxy handler. This PR adds a second conditional method in the
cleanup task to cleanup projects with the proxy handler when it is in
use.


### Checklist
- [ ] Cypress tests run with proxy handler
- [x] Projects created during a cypress run with the proxy handler are
automatically cleaned up by the cypress cleanup task


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Maxim Palenov <maxim.palenov@elastic.co>
Co-authored-by: dkirchan <55240027+dkirchan@users.noreply.github.com>
Co-authored-by: Gloria Hornero <gloria.hornero@elastic.co>
2025-02-12 17:33:53 +01:00
Matthias Wilhelm
7a72b14fd5
[Discover Session] Fix "Untitled" export title when exporting CSV on a dashboard (#210143)
- Fixes "Untitled" CSV exports when an export of a Discover session CSV is triggered on a Dashboard
- Switches to make use of the embeddable title when exporting CSV of Discover session embeddables on a Dashboard.
2025-02-12 17:24:43 +01:00
Mykola Harmash
22144405f7
[Obs Onboarding] Add E2E (Ensemble) test for OTel Host quickstart flow (#210022)
Partially resolves https://github.com/elastic/kibana/issues/207735
Required by https://github.com/elastic/ensemble/pull/465 🔒

This adds an E2E test for the OTel Host onboarding flow. The test is
ment to be run by [the Ensemble
workflow](https://github.com/elastic/ensemble/actions/workflows/nightly.yml)
🔒

## How to test locally

See README
`x-pack/solutions/observability/plugins/observability_onboarding/e2e/playwright/README.md`
2025-02-12 17:24:24 +01:00
Jeramy Soucy
6bfd5a581a
[kbn-scout] update category of server integration tests (#210783)
## Summary

Updates the test category for the server integration test configs from
UI_TEST to UNIT_INTEGRATION_TEST.
2025-02-12 17:23:20 +01:00
Marco Liberati
ab414b4eff
[Lens][Embeddable] Make sure to not serialize searchSessionId (#210765)
## Summary

This PR fixes a regression in the `serializeState` function used to pass
the embeddable attributes to the dashboard to save the panel. In the
refactor this function started to leak the `searchSessionId` in the
serialized state and even if not used after worse it could lead to
issues and in general it's a waste of disk space.


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

## Release notes
It fixes a regression for the serialized state for the Lens embeddable
saving attributes who should not be in the serialized state.
2025-02-12 16:59:47 +01:00
Marius Iversen
c380edd848
[Rule Migration] Resolve bug around ECS mapping node (#210608)
## Summary

This PR was initially to resolve more prompt improvements, but it will
be split into multiple PR's as it also includes a bugfix for ECS mapping
node logic, where ECS mapping node was not always part of the
translation flow.

Some minor prompt improvements are also included, an updated field
mapping for RAG rules (adding the query field) and filtering out metrics
integrations from the RAG for now.

Added telemetry metadata parameters to createModel together with
`maxRetries` as well.
2025-02-12 16:22:05 +01:00
Nathan Reese
fbce75620c
[dashboard] replace lens vis alias with lens add panel action (#210478)
Remove visualizations dependency from dashboard plugin. Instead of using
lens visTypeAlias, navigating to lens is done by executing addLensPanel
action.
2025-02-12 08:18:47 -07:00
Nathan Reese
d9d0b39272
[dashboard] remove DashboardContainerInput type (#210446)
Part of https://github.com/elastic/kibana/issues/204249

Clean up work from embeddable refactor. PR removes
`DashboardContainerInput` type, which is a duplicate of `DashboardState`

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-02-12 08:16:48 -07:00
Elena Shostak
4f8d318a5c
CodeQL RAM setting (#210846)
## Summary

PR updates the GitHub Actions workflow to allocate more memory for
CodeQL.

CodeQL splits memory between TS and JVM, but TS requires most of the
memory.
By doubling the available memory, we allow TS to utilize the full
capacity, mitigating failures with OOM.

Refer to

59a77a873c/javascript/resources/tools/autobuild.sh (L7-L13)

Test run results:
1328436887/workflow


### Checklist
- [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)
2025-02-12 15:14:59 +00:00
Maria Iriarte
c4ecd0d67c
[Lens] Add functional test case for heatmap x-axis label rotation (#208751)
## Summary

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


### 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
- [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)
2025-02-12 16:13:29 +01:00
Agustina Nahir Ruidiaz
f92e50a4a1
[Security Solution] [EUI Refresh] styled component migration Dashboards (#208731)
## Summary

Addresses https://github.com/elastic/kibana/issues/206439
This PR migrates explore page from styled-components to @emotion/styled.
In the process I also convert the kbn/ui-theme json tokens to euiTheme
counterparts.


https://github.com/user-attachments/assets/6cdfbf15-9a77-488c-a0b9-42acc3fe1768

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Karen Grigoryan <karen.grigoryan@elastic.co>
2025-02-12 16:05:27 +01:00
Dmitrii Shevchenko
376754afb4
[Security Solution] Fix prebuilt rules exclusion on bulk edit (#209992)
**Resolves: https://github.com/elastic/kibana/issues/209888**

## Summary

Resolves an issue when prebuilt rules were not excluded from bulk
operations when the license tier is not sufficient to customize prebuilt
rules.

See the attached issue for reproduction steps.

**Before**


https://github.com/user-attachments/assets/0f791c4d-f98c-4b97-867d-d8da566eb3a3

**After**


https://github.com/user-attachments/assets/8ed2a1e4-d298-4173-95ca-565e0c280c21
2025-02-12 16:04:13 +01:00
Kyle Pollich
3389de3dc5
[Serverless] Exclude search connectors integration from serverless projects (#208772)
fixes https://github.com/elastic/search-team/issues/9171
## Summary

The connectors integration should be GA in ECH, but shouldn't be
available in serverless right now.

~~Prettier also triggered on these files based on our `.prettierrc`
rules, it looks like. Let me know if I should revert all the formatting
changes. There were mixed quotes in a few places, and some indentation
stuff in others.~~

I removed the prettier changes because they invited substantial
conflicts with all the whitespace changes.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

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

- [x] Changes serverless behavior, so I'm deploying a serverless search
project to smoke test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-02-12 16:03:32 +01:00
Ying Mao
5500eab90c
Fixes Failing test: Jest Integration Tests.x-pack/platform/plugins/shared/task_manager/server/integration_tests - unrecognized task types should be no workload aggregator errors when there are removed task types (#210399)
Resolves https://github.com/elastic/kibana/issues/208459

## Summary

The fix added in this
[PR](https://github.com/elastic/kibana/pull/206598) to call the
`mark_removed_tasks_as_unrecognized` tasks sometimes throws an error if
the task is in the middle of running. This PR adds a try/catch and a
retry to the `runSoon` call.

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-02-12 09:30:38 -05:00
Julia Bardi
6c257ab50c
[Fleet] add index and task for fleet-synced-integrations (#209762)
## Summary

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

Create `fleet-synced-integrations` index in Fleet setup, added async
task that populates the index with a doc that includes remote ES output
data and installed integrations data.

ES change to add `kibana_system` privileges:
https://github.com/elastic/elasticsearch/pull/121753

To test locally:
- run elasticsearch from source to apply the privilege changes, so that
`kibana_system` can create the index.
```
yarn es source -E xpack.security.authc.api_key.enabled=true -E xpack.security.authc.token.enabled=true  --source-path=/Users/juliabardi/elasticsearch  -E path.data=/tmp/es-data -E xpack.ml.enabled=false
```
- enable the feature flag in `kibana.dev.yml`:
`xpack.fleet.enableExperimental: ['enableSyncIntegrationsOnRemote']`
- add a remote ES output with sync enabled
- install some integrations
- wait until Fleet setup and the task runs
- verify that the index is created and contains a doc with the expected
data

```
GET fleet-synced-integrations/_search

 "hits": {
    "total": {
      "value": 1,
      "relation": "eq"
    },
    "max_score": 1,
    "hits": [
      {
        "_index": "fleet-synced-integrations",
        "_id": "fleet-synced-integrations",
        "_score": 1,
        "_source": {
          "remote_es_hosts": [
            {
              "hosts": [
                "http://remote1:80"
              ],
              "name": "remote1",
              "sync_integrations": true
            }
          ],
          "integrations": [
            {
              "package_version": "1.64.1",
              "updated_at": "2025-02-05T11:03:02.226Z",
              "package_name": "system"
            }
          ]
        }
      }
    ]
```



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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-02-12 15:05:58 +01:00
James Gowdy
9fa8ec42a6
[ML] Making creation of data view during file upload optional (#210208)
Adds an option override to tell the file uploader not to create a data
view once ingest has finished.
This is currently not used but should be used in the near future when
creating lookup indices from the es|ql query bar.

The PR also contains some typing clean up to remove duplication.


**Before**

![image](https://github.com/user-attachments/assets/232e8c75-c021-4b5a-ac6a-f15ebb753799)

**After**

![image](https://github.com/user-attachments/assets/de583208-410f-4fbf-94f2-a84a8ac6b690)
2025-02-12 13:22:47 +00:00
Yngrid Coello
d34ee93dcf
[Logs] rename Explorer to Discover (#210772)
Closes https://github.com/elastic/kibana/issues/209240.
2025-02-12 14:18:24 +01:00
Konrad Szwarc
bc08247b7f
[EDR Workflows] Unskip uninstall_agent_from_host.cy.ts (#210348)
It seems the reason for skipping was a temporary hiccup that is no
longer occurring. Unskipping after verifying with the flaky test runner.

closes https://github.com/elastic/kibana/issues/183638
closes https://github.com/elastic/kibana/issues/207423

Flaky test runner (x50)
 `main`
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7857
 `9.0`
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7858
 `8.18`
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7859
 `8.17`
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7860
2025-02-12 14:02:00 +01:00
Shahzad
5393a45ae7
[Synthetics] Enable synthetics e2e in flaky test runner !! (#210778)
## Summary

Enable synthetics e2e in flaky test runner !!


![image](https://github.com/user-attachments/assets/d21dd0bf-e9b7-4a18-9568-22bfe09e67fd)
2025-02-12 13:55:45 +01:00