Commit graph

84939 commits

Author SHA1 Message Date
Paulina Shakirova
6a9a1eeb8a
Change "Close project" to "Log out" in nav menu in serverless mode (#211463)
## Summary

This PR resolves [Unify user profile menu "Log
out"option](https://github.com/elastic/kibana/issues/209278) issue.
2025-03-21 13:38:44 +01:00
Konrad Szwarc
f09945bb1b
[EDR Workflows] Unskip management Jest tests (#215324)
8.17 PR - https://github.com/elastic/kibana/pull/215474
Part of https://github.com/elastic/security-team/issues/12176

Unskiped: 
### `use_list_artifact.test.tsx`
Path
`.../plugins/security_solution/public/management/hooks/artifacts/use_list_artifact.test.tsx`
Closes https://github.com/elastic/kibana/issues/196724
Commit 438553a1d1
Reason for unskipping: Couldn't recreate failure locally. Increased
timeout from 1000 to 5000 ms.


### `actions_log_users_filter.test.tsx`
Path
`.../plugins/security_solution/public/management/components/endpoint_response_actions_list/components/actions_log_users_filter.test.tsx`
Closes https://github.com/elastic/kibana/issues/193554
https://github.com/elastic/kibana/issues/193092
Commit ca7b971683
de03fd5448
fb3910e738
Reason for unskipping: wrapped expects in waitFor since they are
awaiting for state change. Increased the delay between keystrokes when
typing. Increased the timeout of tests since locally they are bordering
5s executions.

### `bad_argument.test.tsx`
Path
`.../plugins/security_solution/public/management/components/console/components/bad_argument.test.tsx`
Closes https://github.com/elastic/kibana/issues/193093
Commit 6959cd2e3f
Reason for unskipping: wrapped expects in waitFor since they are
awaiting for state change. Increased timeout to 10s.

### `use_get_endpoint_details.test.ts`
Path
`.../plugins/security_solution/public/management/hooks/endpoint/use_get_endpoint_details.test.ts`
Closes https://github.com/elastic/kibana/issues/192435
Commit 3ba10029b6
Reason for unskipping: increased timeout of waitFor for
renderReactQueryHook to 5s since locally it was bordering 3 seconds
2025-03-21 13:26:30 +01:00
Julia
8aa7d8b0a1
[ResponseOps][MW] Remove mw category selection from UI (#211793)
Fix: https://github.com/elastic/kibana/issues/197530
Fix: https://github.com/elastic/kibana/issues/212857

## Summary
I did from DOD:
- Remove the category selection from the UI when creating a MW.
- Show the section only if Filter alerts is ON.
- The terminology should change from category to Solution.
- Show a warning callout to users when editing a MW if they have
configured the categories and inform them that if upon saving the
category configuration will be removed

What'll be covered in follow up PR:
- Show only two solutions, O11y and Security. O11y will also include
Stack.


### Checklist

Check the PR satisfies following conditions. 

- [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] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
2025-03-21 13:09:32 +01:00
Kurt
f5cebe2c23
Hide the chrome popup about leaked passwords (#215414)
## Summary
Closes https://github.com/elastic/kibana/issues/214355

Testing with Chrome 135.x.x.x resulted in a pop up that was breaking the
flow of tests:

<img width="470" alt="Screenshot 2025-03-20 at 4 25 17 PM"
src="https://github.com/user-attachments/assets/df908294-1881-4b6d-b9a2-3027b37b06ad"
/>

This isn't captured by the screenshotting plugin, but is visible if you
run `headless=0`

This adds the config to disable that popup since our generic testing
passwords are very common and therefor flagged
2025-03-21 08:04:25 -04:00
Drew Tate
b7854a8759
[ES|QL] Remove command option definitions (#215425)
## Summary

This PR removes the declarative objects that were meant to describe the
behavior of "options" (see details section below if you don't know what
I'm talking about). **It does not remove "options" as a concept from our
AST.** "Option" is probably the wrong name for the subcommands in the
AST but, at the moment, it is working fine how it is.

Here is a list of what these definitions were being used for and where I
ended up.

| Use | How it worked | What I did |

|---------------------------------------------------------------------|---------------|------------|
| To generate command declarations for display in suggestions menu | It
had some complex logic to try to construct a declaration string from the
information in the `signature` property | I replaced this with
statically declared declaration strings on the command definitions. I
took most of them directly from our docs. They are a better result than
the autogenerated stuff |
| To build the `METADATA` suggestion | the definition was passed into
`buildOptionDefinition` | I declared the `METADATA` suggestion
statically in the `FROM` autocomplete code. |
| To check for field correctness in `METADATA` | This logic lived in the
option definition's `validate` method | I moved it to the `FROM`
command's validate method |
| To validate the type of the value assigned to `APPEND_SEPARATOR` in
`DISSECT` | This logic lived in the option definition's `validate`
method | I moved it to the `DISSECT` command's validate method |
| To check if the left side of the equals sign in `DISSECT` is
"APPEND_SEPARATOR | In most cases, the parser catches stuff like this,
but for some reason `DISSECT`'s grammar is very loose so we have been
stepping in with our own validation (maybe we should suggest changing
this). This was the only case that was triggering the "Unknown option"
message. | I moved it to the `DISSECT` command's validate method |
| To prevent default column validation for `METADATA` | This was the
only true use of the `skipCommonValidation` property which would prevent
the validator trying to find metadata fields in the standard field list
| I inserted an option name check directly into the validation code.
It's not a good long-term solution, but it is actually an improvement
since the former code pretended to be general but was actually just for
`METADATA`. At least now it is clear what the exception is for. |
| To filter functions and operators that are available after `BY` |
Function definitions sometimes declare that they are supported in a `by`
statement. The validator checks if the function does. | This didn't
change. The option nodes in the AST are still there and we are still
relying on the `supportedCommands` and `supportedOptions` properties in
the function definitions. |

#### Pictures

<img width="859" alt="Screenshot 2025-03-20 at 1 47 36 PM"
src="https://github.com/user-attachments/assets/3bd3c3c6-6066-466e-b33b-9444ab58670a"
/>

_New, statically-defined declarations_

<img width="783" alt="Screenshot 2025-03-20 at 2 12 28 PM"
src="https://github.com/user-attachments/assets/94550b25-5da9-4c82-9586-11b3515debd7"
/>

_In cases besides `APPEND_SEPARATOR`, incorrect keywords produce syntax
errors._

<img width="700" alt="Screenshot 2025-03-20 at 2 09 05 PM"
src="https://github.com/user-attachments/assets/de1a23f4-2509-4c6e-84ec-a807e96b65a5"
/>

_Didn't break the `APPEND_SEPARATOR` datatype validation_

<img width="791" alt="Screenshot 2025-03-20 at 2 03 28 PM"
src="https://github.com/user-attachments/assets/169aaa15-52f3-4d22-ab77-26a560cd9359"
/>

_Didn't break `METADATA` fields validation_

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

### Background/details

Till now, "options" have been a concept in our code. Their definition
isn't clear, but it essentially comes down to any capitalized keyword
after the command name. For example `STATS... >BY<`, `DISSECT...
>APPEND_SEPARATOR<`. You could think of them as roughly subcommands or
substatements.

There was a hope that commands would be uniform enough that these
"options" would deserve to be their own special first-class citizen. But
they break conceptually...

For example `APPEND_SEPARATOR` is not a keyword with an expression after
it... it is a variable `APPEND_SEPARATOR=":"`... or filtering in
stats.... `STATS AVG(bytes) >WHERE<` .... so is WHERE an option now?

`FORK` will break this even further.

So, we are moving the architecture to allow for complexity and variance
among the commands. Command-specific logic will have the final say in
how autocomplete and validation work for anything with that command.
2025-03-21 05:04:33 -06:00
Gloria Hornero
d5a0501fb8
initial @kbn/scout-security plugin (#210433)
## Summary

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

In this PR we are adding the initial structure for the
@kibana/scout-security package, note that this is not ready to be used
and any new test using this package, is not going to be executed as part
of the regular pipelines, meaning, you are not going to add coverage to
the application.


@kibana/scout-security package is a test package that extends @kbn/scout
with test helpers specifically designed to test Security Solution
functionalities in Kibana. All tests under Security plugins should only
import from @kbn/scout-security, not from @kbn/scout.



This PR is a POC to start testing development by providing custom
Playwright fixtures, page objects, and utilities tailored for
Security-related testing scenarios.

Things to follow-up:



- CustomQueryRule interface is already declared in
`x-pack/solutions/security/plugins/security_solution/common/api/detection_engine/model/rule_schema/rule_schemas.gen.ts`
as `QueryRuleCreateProps`

- DETECTION_ENGINE_RULES_URL and DETECTION_ENGINE_RULES_BULK_ACTION are
already declared in `@kbn/security-solution-plugin/common/constants`

It would be great if all of that is extracted from the plugin to a
package so it can be reused instead of having to duplicate the code.

Until the package is not ready to be used and has not been introduced to
the different teams, appex-qa and myself will be the owners of it to
make sure that best practices are followed

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
2025-03-21 12:59:30 +02:00
Julia
fdd872ada1
[ResponseOps] Snooze Scheduler UX for recurring snoozes shows incorrect summary (#214797)
Solves: https://github.com/elastic/kibana/issues/210119

## Summary

How to test:
Reproduce bug from an issue. But create a rule in Stack management.
Action is not needed. You can test it on main.
![Screenshot 2025-03-19 at 20 43
09](https://github.com/user-attachments/assets/2b311a28-c474-4883-8f75-34f9de87a493)

![Screenshot 2025-03-19 at 20 46
56](https://github.com/user-attachments/assets/894e26c6-b298-40c2-9d6a-c5fd460300d2)

When you add new schedule and save it, you should see proper date here
as well:

![Screenshot 2025-03-19 at 20 59
53](https://github.com/user-attachments/assets/28239de4-ee99-4e51-a88a-ca78e5248f5f)


### 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-03-21 11:47:28 +01:00
Elena Stoeva
18aa055a6a
[Console] Fix auto-indentation issues (#214358)
Fixes https://github.com/elastic/kibana/issues/210231
Fixes https://github.com/elastic/kibana/issues/212499

## Summary
Test request:

```
GET _ingest/pipeline/_simulate
{
    "docs": [
        {
            "_source": {
                "trace": {
                    "name": "GET /actuator/health/**"
                },
                "transaction": {
                    "outcome": "success"
                }
            }
        },
            {
      "_source": {
        "vulnerability": {
          "reference": [
            "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15778"
          ]
        }
      }
            }
    ]
}
```
2025-03-21 10:23:43 +00:00
elastic-renovate-prod[bot]
0aa226cad4
Update dependency oniguruma-to-es to v4 (main) (#215073)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[oniguruma-to-es](https://redirect.github.com/slevithan/oniguruma-to-es)
| dependencies | major | [`^3.1.1` ->
`^4.1.0`](https://renovatebot.com/diffs/npm/oniguruma-to-es/3.1.1/4.1.0)
|

---

### Release Notes

<details>
<summary>slevithan/oniguruma-to-es (oniguruma-to-es)</summary>

###
[`v4.1.0`](https://redirect.github.com/slevithan/oniguruma-to-es/releases/tag/v4.1.0)

[Compare
Source](https://redirect.github.com/slevithan/oniguruma-to-es/compare/v4.0.1...v4.1.0)

##### 🚀 Features

- Added partial support for nested, negated classes with `target`
`ES2018` (supports top-level-nested, negated classes in non-negated
classes).
- Allows supporting output from `oniguruma-parser/optimizer` in older
environments.

###
[`v4.0.1`](https://redirect.github.com/slevithan/oniguruma-to-es/releases/tag/v4.0.1)

[Compare
Source](https://redirect.github.com/slevithan/oniguruma-to-es/compare/v4.0.0...v4.0.1)

##### 🐞 Fixes

- Bumped the `oniguruma-parser` dependency to fix a bundle size
regression.

###
[`v4.0.0`](https://redirect.github.com/slevithan/oniguruma-to-es/releases/tag/v4.0.0)

[Compare
Source](https://redirect.github.com/slevithan/oniguruma-to-es/compare/v3.1.1...v4.0.0)

##### 🚨 Breaking

- Removed `toOnigurumaAst`. Its functionality has moved to the new,
dedicated library
[oniguruma-parser](https://redirect.github.com/slevithan/oniguruma-parser),
which includes many improvements, new features, and changes to the AST
structure.

##### 🚀 Features

- `toRegExp`/`toRegExpDetails`: Throw if the second argument isn't an
object or `undefined`.
-   Shorter output for POSIX classes `cntrl`, `graph`, `print`.

##### 🐞 Fixes

- Fixed a regression in support for comment groups in v3.1.1.
([#&#8203;31](https://redirect.github.com/slevithan/oniguruma-to-es/issues/31))

</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://redirect.github.com/renovatebot/renovate).

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

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Kerry Gallagher <kerry.gallagher@elastic.co>
2025-03-21 10:19:28 +00:00
Umberto Pepato
4aab9d4c48
[ResponseOps][Alerts] Create embeddable alerts table plugin (#213909)
## Summary

Creates a wrapper plugin around the alerts table, that registers a basic
alerts table embeddable panel for dashboards.

> [!NOTE]
> This PR is a preparation work for the [embeddable alerts
table](https://github.com/elastic/kibana/issues/197483). The feature is
disabled for end-users while waiting for other dependent PRs to be
integrated with this, and uses a partially hard-coded table
configuration for testing purposes. The final panel will be fully
configurable by the user.

## Verification steps

1. Uncomment this line

4d49e98b4d/x-pack/platform/plugins/shared/embeddable_alerts_table/public/plugin.ts (L34)
(I'm using a comment to avoid polluting the embeddable examples app with
this panel for a short time)
2. Create one or more ES Query rules that fire alerts
3. Visit the Dashboards page and create a dashboard, then enter edit
mode
4. Click "Add panel"
5. Under "Visualizations" choose "Alerts table"
6. Check that the table panel was created correctly
6.1. Shows any alerts fired by the ES Query rule(s)
6.2. Check that the table adapts correctly to the panel when resizing,
and all normal interactions with the alerts table work correctly
(adding/removing fields, opening alerts in flyouts, using row/bulk
actions)
6.3. Check that panels respond to the global time filter (only time
filters, not KQL search or filters)
6.4. Check that panels respond to individual time filters (⛭ icon >
Apply custom time range)
11. Create a role with access to dashboards but without any alerting
capability and a user assigned to that role
12. Repeat steps 3 and 4, and verify that the "Alerts table" option
isn't available under "Visualizations"
13. Add any alerting capability to the role, such as Management > Stack
rules
14. Repeat steps 3 and 4, and verify that the "Alerts table" is
available again

## References

Closes #203611

### Checklist

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-03-21 12:02:54 +02:00
Miguel Garzón
35588ecdbb
Updates datafeeds for supplied security anomaly detection jobs to exclude Elastic Agent and Beats processes (#213927)
As described in https://github.com/elastic/security-team/issues/11532,
we have added filters to exclude any processing related to the elastic
endpoint agents.
2025-03-21 09:32:14 +00:00
elastic-vault-github-plugin-prod[bot]
0784ba5093
[main] Sync bundled packages with Package Storage (#215376)
Automated by
https://buildkite.com/elastic/package-storage-infra-kibana-discover-release-branches/builds/2486

Co-authored-by: elasticmachine <elasticmachine@elastic.co>
Co-authored-by: Julia Bardi <90178898+juliaElastic@users.noreply.github.com>
2025-03-21 11:08:47 +02:00
Abhishek Bhatia
dbe28b9f94
[Security Solution][Risk Score] Use Risk Engine SavedObject intead of localStorage on the Risk Score web page (#215304)
## Summary

The PR updates the implementation to fetch data from the Risk Engine
Saved Object instead of storing and reusing it from LocalStorage.

This change ensures that settings are applied globally rather than being
limited to the browser’s LocalStorage. Since the Saved Object holds the
most up-to-date information, it is now used to update the "Date" and the
toggle for "including closed alerts for risk scoring" across all web
browsers.


### Normal and Incognito Mode : 



https://github.com/user-attachments/assets/7638c88b-ff9e-4d42-9944-e55b53e33518


### Default space vs custom space : 



https://github.com/user-attachments/assets/46bb35c7-3cd9-4b97-9f1c-90ec4ef1241a


## Testing Steps

### Verify Initial Values
1. Open the Entity Risk Score web page where the settings are applied.
2. Ensure that the date picker and toggle for "including closed alerts"
reflect the values stored in the Risk Engine Saved Object rather than
LocalStorage.
3. Modify and Save changes,
   - Change the date range in the date picker.
   - Toggle the "Include Closed Alerts" switch.

### Page Refresh Test
- Refresh the page and confirm that the modified values persist, fetched
correctly from the Risk Engine Saved Object.

### Cross-Browser Test
- Open the same web page in a different browser or incognito mode.
- Verify that the settings are consistent and correctly loaded from the
Risk Engine Saved
  Object.

### Expected Outcome
The settings should persist after a page refresh or across different
browsers.
The latest values should always be pulled from the Risk Engine Saved
Object.


### 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
- [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-03-21 14:19:24 +05:30
elastic-renovate-prod[bot]
933564d713
Update dependency @openfeature/launchdarkly-client-provider to ^0.3.2 (main) (#215232)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| @&#8203;openfeature/launchdarkly-client-provider | dependencies |
patch | [`^0.3.1` ->
`^0.3.2`](https://renovatebot.com/diffs/npm/@openfeature%2flaunchdarkly-client-provider/0.3.1/0.3.2)
|

---

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

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2025-03-21 07:57:46 +01:00
Stratoula Kalafateli
6cd920c8e0
[ES|QL] Fixes the accessibility issue of the run button (#215277)
## Summary

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

Separates the tooltip label with the aria label for accessibility
reasons

<img width="428" alt="image"
src="https://github.com/user-attachments/assets/7aef7e8f-dc1d-4fce-ae05-cf6e215480af"
/>
2025-03-21 07:46:02 +01:00
Stratoula Kalafateli
96ba76de2b
[ES|QL] Calculate the query for retrieving the values correctly (#214905)
## Summary

My function to calculate the query for retrieving the values wasn't
complete. This fixes it by taking under consideration the cursor
position


![meow](https://github.com/user-attachments/assets/eac8bd8e-4e09-406e-969f-eb8dd95a0e61)


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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-03-21 07:44:39 +01:00
Kibana Machine
73a41b7480
[api-docs] 2025-03-21 Daily api_docs build (#215432)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/1018
2025-03-21 08:19:44 +02:00
Ryan Keairns
fc17693bdc
Add padding around loading spinner (#215418)
## Summary

Papercut in the add panel flyout where the loading spinner sits flush
against the edge of the flyout container.

_Before_
<img width="560"
src="https://github.com/user-attachments/assets/fc56aaf5-c715-4628-b31d-8a013bc06b99"
/>

_After_
<img width="560"
src="https://github.com/user-attachments/assets/2add8305-de39-49b6-b400-4a27102b2a8e"
/>


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.
N/A

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-03-20 20:18:13 -07:00
Umberto Pepato
7d65957683
[ResponseOps][SecuritySolution][Alerts] Fix cases service missing in detection engine alerts table (#215111)
## Summary

Provides the Cases service to the detection engine alerts table. The
missing services caused the cases actions to disappear from the bulk
actions menu.

## Verification steps

1. Create Security rules that fire alerts
2. Visit the Security > Alerts page
3. Select one or more alert rows from the table
4. Open the `Selected X alerts` bulk action menu
5. Check that the cases bulk actions are available

## Release Notes

Fixes a regression that caused the cases actions to disappear from the
detections engine alerts table bulk actions menu.

### 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] 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-03-21 00:57:30 +02:00
Joe Reuter
184d0a32ad
🌊 Streams: Overview page redesign (#214196)
This PR overhauls the overview page.

Classic stream:
<img width="1004" alt="Screenshot 2025-03-12 at 21 00 39"
src="https://github.com/user-attachments/assets/a058da08-0ae2-48cc-abca-359b23288b32"
/>

Wired stream:
<img width="1019" alt="Screenshot 2025-03-12 at 21 01 56"
src="https://github.com/user-attachments/assets/bca04537-f79b-4814-8e31-9d3dae18ad90"
/>


## Doubts / things I changed from the design

* Quick links is just all dashboards, so I adjusted the wording
accordingly. Also, since we render all dashboards, there isn't really
value in "View all assets"
* The panel on top is already stating the count of docs, why should we
repeat that in the histogram panel?
* No search bar - in the beginning we said we don't want this page to
become discover, a search bar feels like we are going there. Also, what
should the user enter there? I don't think we want to buy deeper in KQL
* Should the count of docs be the total count of the count for the
currently selected time range? Not sure what makes more sense
* For wired streams I left the tabs in place to switch between child
streams and quick links. We can revisit this once we get closer to
actually releasing wired streams

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-03-20 21:48:10 +02:00
Elena Stoeva
f89e03c286
[Console] Add autocomplete for data streams (#214465)
Closes https://github.com/elastic/kibana/issues/212905

## Summary

This PR adds autocompletion for data-stream related endpoints.
Previously, it didn't work because the generated spec definitions that
were extracted from the Es specs repo were using the generic `{name}`
pattern instead of `{data_stream}`. In this PR, we override those
definition files and specify the correct pattern.

### How to test:

Test the following endpoints and make sure that data stream names are
suggested:

`GET _data_stream/{data_stream}/_stats`
`DELETE _data_stream/{data_stream}/_lifecycle`
`DELETE _data_stream/{data_stream}`
`GET _data_stream/{dataStream}/_lifecycle`
`GET _data_stream/{data_stream}`
`POST _data_stream/_migrate/{data_stream}`
`POST _data_stream/_promote/{data_stream}`
`PUT _data_stream/{data_stream}/_lifecycle`
2025-03-20 21:43:15 +02:00
Bryce Buchanan
522f83fd25
Adds 'page reload' screen reader warning (#214822)
## Summary

Resolves https://github.com/elastic/kibana/issues/195037

Adds 'page reload' screen reader warning to metadata filter button on
the infrastructure host detail fly-out.


https://private-user-images.githubusercontent.com/75274611/420462482-a32e59f8-e04d-40a7-90af-1d039d4b4e67.mov?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDIyMjk5OTQsIm5iZiI6MTc0MjIyOTY5NCwicGF0aCI6Ii83NTI3NDYxMS80MjA0NjI0ODItYTMyZTU5ZjgtZTA0ZC00MGE3LTkwYWYtMWQwMzlkNGI0ZTY3Lm1vdj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAzMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMzE3VDE2NDEzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTliMjQyMmMzOWNkNDA1Y2JiZmE2MzY2YmY4N2ZmMzEwNDcxYzA1NmM2NWMzMDFhNGU3MTQ0Y2ZjZGViZDUxMjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.GbLcX-q0dpVHSicv7T25cvyUqem6sYFYj8D_AjrvRVE

### 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)
2025-03-20 21:42:47 +02:00
Gloria Hornero
91cf7b4266
[Security Solution] API tests for AI4DSOC effort (#215318)
## Summary  
This PR establishes the foundation for executing API tests in the new
`search_ai_lake` tier, following the existing API integration test
structure and guidelines.

## Adding a New Test  
To add a new test, follow these guidelines:  

- Inside the `AI4DSOC` folder, create subfolders representing different
AI4DSOC functionalities.
- Each subfolder should be owned by an area team or the developers
actively working on it.
- The functionality folder must include a `search_ai_lake_tier`
subfolder.
- The `search_ai_lake_tier` subfolder should contain a `configs`
directory with a `serverless.config.ts` file that imports
`createTestConfig` from `config.base.ai4dsoc`.
- Add the test inside the `search_ai_lake_tier` subfolder.  
- Ensure the test has the `@serverless` label and uses
`supertestWithoutAuth` instead of `supertest`, as `supertest` provides
basic authentication, whereas serverless environments require API key
authentication. See the `dummy_test.ts` for reference.
- The `search_ai_lake_tier` folder should have an `index.ts` file
referencing the tests to be executed, as demonstrated in this PR.
- Update the
`x-pack/test/security_solution_api_integration/package.json` file with
the necessary scripts to enable test execution locally.
- When adding a new `serverless.config.ts` file, ensure it is included
in `.buildkite/ftr_security_serverless_configs.yml`. Otherwise, the new
test(s) will not be executed as part of the PR process.

## Running Tests Locally  
Execute the tests using the following Yarn scripts from
`x-pack/test/security_solution_api_integration`:

1. Start the server with the required configuration:  
   ```sh
   yarn ai4dsoc_cases:server:serverless
   ```
2. Run the tests using the started server:
  ```sh
  yarn ai4dsoc_cases🏃serverless
  ```
  
## Key Considerations
- `Supertest` should not be used, as it provides basic authentication.
Instead, use supertestWithoutAuth for API key authentication.
- All tests must include the `@serverless` label.
- MKI is not yet supported for test execution.
- Temporary Ownership: The Security Engineering Productivity team will
initially own the AI4DSOC testing folder to ensure proper structure and
best practices. Once teams are familiar with the workflow, this
ownership will be removed.
   
## Security Engineering Productivity Code Ownership Responsibilities
The Security Engineering Productivity team should ensure:

- All tests are placed inside a functionality-specific subfolder.
- Each functionality subfolder has designated code owners.
- Tests include the `@serverless` label.
- `Supertest` is not used.
- The correct configuration is applied.
- Scripts are added to enable local execution.
- New configurations are added to
`.buildkite/ftr_security_serverless_configs.yml`.

## Follow-Up tasks
- Remove the existing dummy test.
- Integrate tests into the periodic pipeline.
- Add tests to the Kibana QA quality gate.
2025-03-20 21:11:04 +02:00
Paulina Shakirova
b39b8c4591
[fleet] fix overlay in integrations on mobile (#215312)
## Summary

This PR resolves [Integrations overlay
mobile-view](https://github.com/elastic/kibana/issues/214146) issue.
2025-03-20 19:50:12 +01:00
Philippe Oberti
3605a331b9
[AI4DSOC] Alert summary page routing and initialization (#214889)
## Summary

This PR is the setting the foundations for the AI for SOC Alert summary
page. It has very little UI, instead it focuses on the following:
- add routing for the `alert_summary` page
- fetches the integrations, filters them to only keep the ones related
to AI for SOC, then decides what to render depending on if some AI for
SOC packages have been installed or not

The PR also makes a small change to the `SecurityRoutePageWrapper`
component, to allow us to redirect to the Security Solution HomePage
instead of the NoPrivilegesPage. While this might not be a long term
solution, it is the easiest path forward. In the future, AI for SOC will
most likely be its own plugin (leaving outside of Security Solution)
hence this will not be needed anymore.

Here's the basic behavior of the Alert summary page:
- The `Landing page` will be shown if none of the hardcoded AI for SOC
packages are installed (these values are hardcoded as we currently do
not have a way to filter integrations for the AI for SOC ones only):
  - splunk // doesnt yet exist
  - google_secops
  - microsoft_sentinel
  - sentinel_one
  - crowdstrike
- The `Wrapper` component will only be shown if you have at least one of
the above AI for SOC packages installed.

### Very limited UI added in this PR

| Loading integrations | No installed packages | Some installed packages
|
| ------------- | ------------- | ------------- |
| ![Screenshot 2025-03-17 at 6 58
45 PM](https://github.com/user-attachments/assets/68089c33-fa40-4201-8b51-3e7236d50d5a)
| ![Screenshot 2025-03-17 at 6 59
15 PM](https://github.com/user-attachments/assets/e7e5af2d-bdab-4bef-881e-bb5e512c3545)
| ![Screenshot 2025-03-17 at 6 59
40 PM](https://github.com/user-attachments/assets/61b346bb-799f-4a0b-95cb-e3092ea58d37)
|

### Notes

We need to remove the section at the top of the page that currently
shows the `Add integrations` button. A follow PR will take care of that.
[This](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/public/app/home/index.tsx#L54)
is where that bar is being added. We will have to find a way to not show
that for the AI for SOC tier.

## How to test

This needs to be ran in Serverless:
- `yarn es serverless --projectType security`
- `yarn serverless-security --no-base-path`

You also need to enable the AI for SOC tier, by adding the following to
your `serverless.security.dev.yaml` file:
```
xpack.securitySolutionServerless.productTypes:
  [
    { product_line: 'ai_soc', product_tier: 'search_ai_lake' },
  ]
```

The Alert summary navigation will NOT be shown for the following
Serverless users: `viewer`, `t1_analyst`.
and `t2_analyst`. For those, the navigation entry is not present, and
navigating to the url directly will automatically re-route to the
Security home page.

Currently, retrieving the integrations (via the `fleet/epm/packages`
endpoint) is also unauthorized for the following users: `editor`,
`t3_analyst`, `threat_intelligence_analyst`, `rule_author`,
`soc_manager` and `detections_admin`.

This means that the only users that can be currently used to test this
PR are:
- `platform_engineer`
- `endpoint_operations_analyst`
- `endpoint_policy_manager`
- `admin`
- `system_indices_superuser`

### Checklist

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

Will help close https://github.com/elastic/security-team/issues/11954 as
well as https://github.com/elastic/security-team/issues/11979.
2025-03-20 13:42:36 -05:00
Sergi Massaneda
108716dce8
[Security Solution] Siem migration copy changes (#215220)
## Summary

Last-minute copy changes

<img width="788" alt="task"
src="https://github.com/user-attachments/assets/839b4d9c-67f6-43b9-a62e-4f1f974215ca"
/>
2025-03-20 20:02:57 +02:00
Justin Kambic
21cafda9e9
[Synthetics] Remove all notions of uptime from the Synthetics README file (#215183)
## Summary

Some of the text in the Synthetics README is 6+ years old, which is
older than Synthetics itself. We need to try to keep these instructions
up to date a bit more as they are intended to be useful to inexperienced
contributors.
2025-03-20 13:23:16 -04:00
Vadim Kibana
a94ff02ba0
[ES|QL] AST/parser support for double param ?? (#215337)
## Summary

- Adds support for double param: (1) `??` unnamed; (2) `??name` named;
and (3) `??123` positional.
- In the `@kbn/esql-ast` package.
- Adds types, parsing, builder and pretty-printing support.


### 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-03-20 10:43:50 -06:00
Vadim Kibana
c8abafc6e7
[ES|QL] Match expression support in the ES|QL AST package (#215336)
## Summary

Partially addresses https://github.com/elastic/kibana/issues/214359

- Adds support for *MatchExpression* in `WHERE` command.
  - `WHERE column :: cast : condition`
  - Support for cast and condition parsing
  - Support for pretty-printing



### 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-03-20 10:19:45 -06:00
Georgiana-Andreea Onoleață
2b96a82d4f
[ResponseOps][Connectors] Add connector filter in flyout (#211874)
Closes https://github.com/elastic/kibana/issues/208001

## Summary

- Added filtering option in the `create connector` flyout: 

-  Search field: 
    - search connectors by name (or description)
    - cards dynamically update based on the input
    - includes a clear button to reset the search 


Demo: 


https://github.com/user-attachments/assets/6d38a916-ad05-41dd-867e-c37260913067

---------

Co-authored-by: Christos Nasikas <xristosnasikas@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-03-20 18:06:00 +02:00
Brad White
da055061ef
Disable Renovate patch PRs for chromedriver (#215258)
## Summary

`chromedriver` is updated often, but we have been closing patch PRs
anyways. So this should limit notifications a bit.

[Renovate
docs](https://docs.renovatebot.com/configuration-options/#matchupdatetypes)
2025-03-20 08:43:59 -07:00
Maria Iriarte
971c2056ad
[Graph/SCSS] Migrate source_modal.scss file to css in js (#215168)
## Summary

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

Replaces `source_modal.scss` files file to css-in-js.

### 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-03-20 17:33:46 +02:00
Stratoula Kalafateli
c63f2980fb
[ES|QL] Make sure that the variables in the editor are always up to date (#214833)
## Summary

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

The registry has the updated values.


![meow](https://github.com/user-attachments/assets/134d0382-f198-4460-a66d-cce45d1208c5)
2025-03-20 16:33:22 +01:00
Stratoula Kalafateli
92a2efacd2
[ES|QL] Merges the controls props (#214699)
## Summary

Small change to the editor api. Groups the controls related props
together
2025-03-20 16:33:11 +01:00
Sergi Romeu
8193e56970
[APM] remove unnecessary field service.environment from top dependency spans endpoint (#215321)
## Summary

Fixes #215106

This PR removes `service.environment` as a required field for
`getTopDependencySpans` endpoint.
It was not used at all, so it can be safely removed without adapting the
UI.
2025-03-20 16:31:36 +01:00
Alberto Blázquez
19f057beae
Fix warning in @kbn/grouping's GroupSelector component (#215225)
## Summary

When a user clicks on the grouping's menu trigger to show all available
grouping options, React throws this warning:

```
React does not recognize the `euiTheme` prop on a DOM element.
```

Reason is the `<StyledContextMenu>` component is a mere `<div>` element
wrapped by `@emotion` to inject some styling. The rendered `<div>` that
results from it can only receive HTML-compliant attributes as props.
However, the `euiTheme` is an object that contains many fields, and some
of them are not valid. And so, React throws a warning to address it.

Solution was to propagate just the border styling instead of the whole
`euiTheme` object.

### Screenshot

<img width="312" alt="Screenshot 2025-03-19 at 18 37 18"
src="https://github.com/user-attachments/assets/bf4c25d3-ed95-41de-8204-0341662aa470"
/>

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

Very minor risk of not applying the correct border styling to the
grouping's menu trigger.
2025-03-20 16:02:27 +01:00
Ryland Herrick
07acd2480a
[Detection Engine] Rule Data View select uses Data View name for display (#214495)
## Summary

Supersedes #190936, and also addresses
https://github.com/elastic/kibana/issues/137823. This mainly just
rebases the changes introduced there to the latest `main`. I also
noticed that it originally had some unit tests, so I resurrected those
as well. ~~I modified the copy as well, so nota bene @ARWNightingale~~
After some discussion, we determined that an explicit UI note about this
behavior was unnecessary.


## Screenshots

<kbd>
<img width="979" alt="Screenshot 2025-03-13 at 5 24 42 PM"
src="https://github.com/user-attachments/assets/69da29bf-5504-461e-b797-d016adcd4b59"
/></kbd>

<kbd><img width="1052" alt="Screenshot 2025-03-18 at 4 37 58 PM"
src="https://github.com/user-attachments/assets/8ee5e55e-2413-4936-aa87-7dadb3d7cbb1"
/></kbd>




### Checklist


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

---------

Co-authored-by: Yara Tercero <yara.tercero@elastic.co>
2025-03-20 10:01:26 -05:00
Robert Jaszczurek
14c6204dca
[ML] Anomaly Explorer: Migrate Explorer from SCSS to Emotion (#215196)
Migrate remaining Anomaly Explorer styles from SCSS to Emotion:

| Before  | After |
| ------------- | ------------- |
| Anomaly Swimlane | Anomaly Swimlane | 
| <img width="983" alt="image"
src="https://github.com/user-attachments/assets/d654bf74-f04a-4f57-8891-af0c0a0d3b85"
/> | <img width="824" alt="Pasted Graphic 1"
src="https://github.com/user-attachments/assets/38e00adf-dba1-43be-a6da-6141221dc82b"
/> |
| Swimlane embeddable | Swimlane embeddable |
| <img width="573" alt="image"
src="https://github.com/user-attachments/assets/304d0073-a194-41cd-a379-5fc1fbb734a6"
/> | <img width="580" alt="Create visualization"
src="https://github.com/user-attachments/assets/28982191-16c1-437d-9955-77ca73fbe4f0"
/> |
| Anomalies charts tooltip and label | Anomalies charts tooltip and
label |
| <img width="970" alt="image"
src="https://github.com/user-attachments/assets/f6cb53f3-b79e-4eac-84c2-18d1d0a53cc0"
/> | <img width="974" alt="Pasted Graphic 3"
src="https://github.com/user-attachments/assets/2f553118-8c4f-4678-809d-f7f25816fb1c"
/> |
2025-03-20 15:50:45 +01:00
Pablo Machado
42183d6039
[SecuritySolution] Fix Data view refresh does not support the indexPattern parameter (#215151)
## Summary

When the data view refresh API or task was executed, it was overwriting
the engine's additional `indexPattern`.

This PR updates the code to support `indexPattern` and ensures the user
has privileges for all indices.

I extracted the merge function to add deduplicate logic.

### How to reproduce it?
* Create an entity store using the indexPatterns param
* Call refresh dataview API (`POST
kbn:api/entity_store/engines/apply_dataview_indices`)
* It will apply the dataview and ignore the indexPatterns param

After the fix, we should be able to update the indexPatterns param, and
the task that refreshes the index pattern should pick up the change
properly.


### 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-03-20 15:41:54 +01:00
Nicolas Chaulet
28a27a71d4
[Fleet] Install kibana assets when creating package policy in a space where they are not installed (#215023) 2025-03-20 10:06:14 -04:00
Sander Philipse
9b6d1aa35d
[Search] Fix code examples (#215286)
## Summary

This fixes a couple small bugs in some of our Curl examples.


### 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)
- [ ] ...
2025-03-20 14:46:10 +01:00
Gergő Ábrahám
c90716092b
[EDR Workflows] Enable endpoint data reduction banner feature flag for serverless (#215131)
## Summary

enables feature flag `eventCollectionDataReductionBannerEnabled` for
serverless, to be synced with 8.18/9.0 release


<img width="1170" alt="image"
src="https://github.com/user-attachments/assets/b1b88a66-dbfe-463e-a36a-e9328658a3bb"
/>
2025-03-20 14:41:16 +01:00
Drew Tate
9073b19407
[ES|QL] Restructure validation code, remove command settings (#215056)
## Summary

Follow on to several recent efforts including
https://github.com/elastic/kibana/issues/195418 and
https://github.com/elastic/kibana/pull/213325

This PR
- reorganizes validation code to make dependencies clearer and make it
less overwhelming... it's not perfect but it's better
- removes the deprecated notion of a command "setting" which only ever
applied to `ENRICH`.

No regression in `ENRICH` mode validation:
<img width="874" alt="Screenshot 2025-03-18 at 1 04 46 PM"
src="https://github.com/user-attachments/assets/e6639d8a-d129-440f-ac30-64a2ef6ab65c"
/>

Or hover
<img width="419" alt="Screenshot 2025-03-18 at 7 43 04 PM"
src="https://github.com/user-attachments/assets/8f9c020c-dcfd-42dc-8e14-4b1c4311457b"
/>





### 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: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-03-20 07:16:34 -06:00
Marco Antonio Ghiani
8f65dceefc
[Streams 🌊] Enrichment - Add support for date processor (#213559)
## 📓 Summary

Part of https://github.com/elastic/streams-program/issues/38

This work adds the `date` processor along with the dissect and grok ones
in the enrichment section.
It scales well following the current folder structure, but we should
definitely polish it a bit more once more processors get added, such as
getting the right form component, improve form state derivation, etc.


https://github.com/user-attachments/assets/824d15c8-ce9d-455a-ae0b-97aeec8cf025

---------

Co-authored-by: Kerry Gallagher <kerry.gallagher@elastic.co>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kerry Gallagher <471693+Kerry350@users.noreply.github.com>
2025-03-20 12:57:47 +00:00
Julia Bardi
592dffa3f7
[Fleet] Update serverless readme (#215271)
Document setup to start local stack in serverless mode and enroll an
agent from a multipass VM.
2025-03-20 13:21:59 +01:00
Nick Clark
9b9a12e9ae
Update SLO custom metric bundle (#215082) 2025-03-20 08:12:05 -04:00
Ania Kowalska
748d54ba91
[Discover Session][Tabs] Tab preview (#214090)
- Closes https://github.com/elastic/kibana/issues/214554

## Summary

This PR:
- adds TabPreview component, which is visible when you hover over a
particular tab
- adds tests for TabPreview component

About TabPreview component
- EUI doesn't have a component, which would suit for our needs, hence a
custom component activated on hover
- TabPreview should activate (with 500ms of delay) after hovering over a
whole tab
- It should hide when we click action button in the tab or we open
editing name mode
- It shouldn't appear on hover when we have tab context menu open or
we're editing a title
- For now the data inside is mocked (besides of title), so you can see
random queries and statuses each time you hover over the tab
- Preview should not overflow the screen if there are a lot of tabs and
they're "touching" right side of the screen


https://github.com/user-attachments/assets/da0a47dd-b594-4c20-b76c-49e6889f3814



## Testing

Two options are possible:

1. start Storybook with `yarn storybook unified_tabs` and navigate to
`http://localhost:9001`.
2. start Kibana with `yarn start --run-examples`. Then navigate to the
Unified Tabs example plugin
`http://localhost:5601/app/unifiedTabsExamples`.

### 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: Julia Rechkunova <julia.rechkunova@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-03-20 14:10:56 +02:00
Aleh Zasypkin
38de01504b
chore(security,codeql): exclude more dev/test folders from CodeQL scans (#215303)
## Summary

Exclude more dev/test folders from CodeQL scans
2025-03-20 11:05:16 +00:00
Shahzad
0dad68dce7
[Synthetics] Retries journeys on failures !! (#215264)
## Summary

Retries journeys on failures !!
2025-03-20 11:53:55 +01:00
Abdul Wahab Zahid
e6e78ac6d8
[Performance] Refactor TTFMP query from, to fields (#213911)
Currently Kibana forwards `query_range_secs` and `query_offset_secs` to
mark the selected time range when reporting TTFMP event. This format
caused some challenges to identify `from`, `to` date offsets in
visualizations.

To simplify, the PR renames and sends the three fields explicitly:
- `query_from_offset_secs` offset to `0` (now), with -ve for past and
+ve for future dates
- `query_to_offset_secs` offset to `0` (now), with -ve for past and +ve
for future dates
- `query_range_secs`                      same as previously sent

_This approach is followed after a discussion, and based on the
[gist](https://gist.github.com/andrewvc/1f04a57a336d768e4ec5ff2eff06ba54)
excerpt:_

```
Earliest date -> QueryFrom
Newest date -> QueryTo
Duration -> QueryRange
```

### Indexing
These fields then should be mapped in the EBT indexer to ingest in the
top level of the document, eventually removing the need to create
runtime fields in data views for visualizations.

Also, runtime fields in data views should be updated to reflect this
change. For backward compatibility, the runtime fields can cater both
the old and new field names conditionally.

### Testing
- Ensure that the TTFMP events are correctly reporting the date ranges.

### Example

![image](https://github.com/user-attachments/assets/529507fc-66f7-440a-8bbb-b34176e8d093)
2025-03-20 11:40:24 +01:00