Commit graph

82789 commits

Author SHA1 Message Date
Kurt
2067c84eb6
Adding fips docs to nav (#206935)
## Summary

I recently added FIPS Test Failure Debugging docs, but forgot to add
them to the nav bar
2025-01-17 01:38:28 +01:00
Lukas Olson
c5bacd44c1
Disable search sessions by default (#203927)
## Summary

Part of https://github.com/elastic/kibana/issues/203925.
Resolves https://github.com/elastic/kibana/issues/205812.

Changes the default for search sessions to be disabled.

### Checklist

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/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-01-16 15:18:40 -07:00
Yara Tercero
94660cf2f5
[Detection Engine][Docs] Added response and request descriptions for API docs (#205822)
# Summary

As part of the effort to add missing content for Security APIs, this PR
introduces a few missing request, response, and parameter examples for
Detection Engine Exception APIs.
2025-01-16 12:14:08 -08:00
Nathan Reese
47226c9986
[dashboard] remove unused class dshDashboardViewportWrapper--isFullscreen (#206991)
https://github.com/elastic/kibana/pull/205341 removed
`dshDashboardViewportWrapper--isFullscreen` from
"src/platform/plugins/shared/dashboard/public/dashboard_container/component/viewport/_dashboard_viewport.scss".
The PR failed to remove the class from rendered DOM.
2025-01-16 12:52:16 -07:00
Kfir Peled
6fe4e70a66
[Cloud Security] Added search bar toggle button (#206123) 2025-01-16 20:36:01 +01:00
Shahzad
bfcffa1e76
[Synthetics] Increase lightweight monitors project page size !! (#198696)
## Summary

This is to support https://github.com/elastic/synthetics/issues/978

Increase lightweight monitors project page size, size of light weight
monitors is minimal, heaving a small size is more of a burden then
advantage since we do batch operations in kibana !!

### Why
Since limit is only mostly applicable for browser monitors size, for
lightweight we can safely do bulk operation on large number of monitors
without hititng memory or size issues

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Justin Kambic <jk@elastic.co>
2025-01-16 20:31:42 +01:00
elastic-renovate-prod[bot]
c28b173886
Update moment (main) (#206181)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [moment](https://momentjs.com)
([source](https://togithub.com/moment/moment)) | peerDependencies |
minor | [`^2.24.0` ->
`^2.30.1`](https://renovatebot.com/diffs/npm/moment/2.24.0/2.30.1) |
| [moment-timezone](http://momentjs.com/timezone/)
([source](https://togithub.com/moment/moment-timezone)) | dependencies |
patch | [`^0.5.45` ->
`^0.5.46`](https://renovatebot.com/diffs/npm/moment-timezone/0.5.45/0.5.46)
|

---

### Release Notes

<details>
<summary>moment/moment (moment)</summary>

###
[`v2.30.1`](https://togithub.com/moment/moment/blob/HEAD/CHANGELOG.md#2301)

[Compare
Source](https://togithub.com/moment/moment/compare/2.30.0...2.30.1)

-   Release Dec 27, 2023
- Revert
[https://github.com/moment/moment/pull/5827](https://togithub.com/moment/moment/pull/5827),
because it's breaking
    a lot of TS code.

###
[`v2.30.0`](https://togithub.com/moment/moment/blob/HEAD/CHANGELOG.md#2300-Full-changelog)

[Compare
Source](https://togithub.com/moment/moment/compare/2.29.4...2.30.0)

-   Release Dec 26, 2023

###
[`v2.29.4`](https://togithub.com/moment/moment/blob/HEAD/CHANGELOG.md#2294)

[Compare
Source](https://togithub.com/moment/moment/compare/2.29.3...2.29.4)

-   Release Jul 6, 2022
- [#&#8203;6015](https://togithub.com/moment/moment/pull/6015) \[bugfix]
Fix ReDoS in preprocessRFC2822 regex

###
[`v2.29.3`](https://togithub.com/moment/moment/blob/HEAD/CHANGELOG.md#2293-Full-changelog)

[Compare
Source](https://togithub.com/moment/moment/compare/2.29.2...2.29.3)

-   Release Apr 17, 2022
- [#&#8203;5995](https://togithub.com/moment/moment/pull/5995) \[bugfix]
Remove const usage
- [#&#8203;5990](https://togithub.com/moment/moment/pull/5990) misc: fix
advisory link

###
[`v2.29.2`](https://togithub.com/moment/moment/blob/HEAD/CHANGELOG.md#2292-See-full-changelog)

[Compare
Source](https://togithub.com/moment/moment/compare/2.29.1...2.29.2)

-   Release Apr 3 2022

Address
https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4

###
[`v2.29.1`](https://togithub.com/moment/moment/blob/HEAD/CHANGELOG.md#2291-See-full-changelog)

[Compare
Source](https://togithub.com/moment/moment/compare/2.29.0...2.29.1)

-   Release Oct 6, 2020

Updated deprecation message, bugfix in hi locale

###
[`v2.29.0`](https://togithub.com/moment/moment/blob/HEAD/CHANGELOG.md#2290-See-full-changelog)

[Compare
Source](https://togithub.com/moment/moment/compare/2.28.0...2.29.0)

-   Release Sept 22, 2020

New locales (es-mx, bn-bd).
Minor bugfixes and locale improvements.
More tests.
Moment is in maintenance mode. Read more at this link:
https://momentjs.com/docs/#/-project-status/

###
[`v2.28.0`](https://togithub.com/moment/moment/blob/HEAD/CHANGELOG.md#2280-See-full-changelog)

[Compare
Source](https://togithub.com/moment/moment/compare/2.27.0...2.28.0)

-   Release Sept 13, 2020

Fix bug where .format() modifies original instance, and locale updates

###
[`v2.27.0`](https://togithub.com/moment/moment/blob/HEAD/CHANGELOG.md#2270-See-full-changelog)

[Compare
Source](https://togithub.com/moment/moment/compare/2.26.0...2.27.0)

-   Release June 18, 2020

Added Turkmen locale, other locale improvements, slight TypeScript fixes

###
[`v2.26.0`](https://togithub.com/moment/moment/blob/HEAD/CHANGELOG.md#2260-See-full-changelog)

[Compare
Source](https://togithub.com/moment/moment/compare/2.25.3...2.26.0)

-   Release May 19, 2020

TypeScript fixes and many locale improvements

###
[`v2.25.3`](https://togithub.com/moment/moment/blob/HEAD/CHANGELOG.md#2253)

[Compare
Source](https://togithub.com/moment/moment/compare/2.25.2...2.25.3)

-   Release May 4, 2020

Remove package.json module property. It looks like webpack behaves
differently
for modules loaded via module vs jsnext:main.

###
[`v2.25.2`](https://togithub.com/moment/moment/blob/HEAD/CHANGELOG.md#2252)

[Compare
Source](https://togithub.com/moment/moment/compare/2.25.1...2.25.2)

-   Release May 4, 2020

This release includes ES Module bundled moment, separate from it's
source code
under dist/ folder. This might alleviate issues with finding the
\`./locale
subfolder for loading locales. This might also mean now webpack will
bundle all
locales automatically, unless told otherwise.

###
[`v2.25.1`](https://togithub.com/moment/moment/blob/HEAD/CHANGELOG.md#2251)

[Compare
Source](https://togithub.com/moment/moment/compare/2.25.0...2.25.1)

-   Release May 1, 2020

This is a quick patch release to address some of the issues raised after
releasing 2.25.0.

- [2e268635](2e268635) \[misc]
Revert [#&#8203;5269](https://togithub.com/moment/moment/issues/5269)
due to webpack warning
- [226799e1](226799e1)
\[locale] fil: Fix metadata comment
- [a83a521](a83a521) \[bugfix]
Fix typeoff usages
- [e324334](e324334) \[pkg]
Add ts3.1-typings in npm package
- [28cc23e](28cc23e) \[misc]
Remove deleted generated locale en-SG

###
[`v2.25.0`](https://togithub.com/moment/moment/blob/HEAD/CHANGELOG.md#2250-See-full-changelog)

[Compare
Source](https://togithub.com/moment/moment/compare/2.24.0...2.25.0)

-   Release May 1, 2020

- [#&#8203;4611](https://togithub.com/moment/moment/issues/4611)
[022dc038](022dc038)
\[feature] Support for strict string parsing, fixes
[#&#8203;2469](https://togithub.com/moment/moment/issues/2469)

- [#&#8203;4599](https://togithub.com/moment/moment/issues/4599)
[4b615b9d](4b615b9d)
\[feature] Add support for eras in en and jp

- [#&#8203;4296](https://togithub.com/moment/moment/issues/4296)
[757d4ff8](757d4ff8)
\[feature] Accept custom relative thresholds in duration.humanize

-   18 bigfixes

-   36 locale fixes

-   5 new locales (oc-lnc, zh-mo, en-in, gom-deva, fil)

</details>

<details>
<summary>moment/moment-timezone (moment-timezone)</summary>

###
[`v0.5.46`](https://togithub.com/moment/moment-timezone/blob/HEAD/changelog.md#0546-2024-10-06)

[Compare
Source](https://togithub.com/moment/moment-timezone/compare/0.5.45...0.5.46)

- Updated data to IANA TZDB `2024b`. This only affects historical
timestamps; no future timestamps have changed.

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

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- 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: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-16 14:22:59 -04:00
Pablo Machado
f538cf56fc
[SecuritySolution] Skip asset criticality integration test on MKI (#206969)
## Summary

Skip asset criticality integration test on MKI

---------

Co-authored-by: Jared Burgett <147995946+jaredburgettelastic@users.noreply.github.com>
2025-01-16 17:54:25 +00:00
Alberto Blázquez
f48f8043d6
Add Criticality badge to Asset Inventory data grid (#206802)
## Summary

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

Reuse AssetCriticalityBadge component from Entity Analytics to render
the criticality status in the Asset Inventory data grid.

### Screenshots

| Before | After |
|--------|--------|
| <img width="168" alt="Screenshot 2025-01-16 at 17 16 21"
src="https://github.com/user-attachments/assets/45d23ce9-a8dc-4f0c-8545-39afff824708"
/> | <img width="169" alt="Screenshot 2025-01-16 at 17 16 09"
src="https://github.com/user-attachments/assets/b3b6bedf-cdb9-49b5-9c1f-6dd3d24b3389"
/> |

### Definition of done

- [x] Add a **Criticality** circle badge to the **Criticality** column
in the Asset Inventory DataGrid.
- [x] ~~Implement the badge styling:~~ Ended up reusing
`AssetCriticalityBadge` component from Entity Analytics
- Use the **Criticality Palette and mapping** defined in the [Asset
Criticality Badge
Utility](https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/public/entity_analytics/components/asset_criticality/asset_criticality_badge.tsx)]
for color coding.
- Ensure the badge's color accurately reflects the asset’s criticality
level (e.g., Low, Medium, High, Critical, Extreme).
- [x] Ensure the badge includes:
  - A circular design with a color representing the criticality level.
- [ ] Add unit tests to verify:
  - Correct color mapping based on criticality levels.
  - Proper rendering of the badge in the DataGrid.
- [x] Update mock data for the DataGrid to include criticality levels
for testing and development.

### Checklist

- [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] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

No risks.
2025-01-16 18:27:48 +01:00
Tre
8b1394986b
[FTR] Fixup Retry Logging (#205894)
## Summary

Only log out the number of attempts when the `retryCount` is truthy

Previously we were seeing the attempt counter, constantly reporting 0
for each attempt.

### To Run Locally
```
node scripts/jest --config packages/kbn-ftr-common-functional-services/jest.config.js
```

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-16 17:03:16 +00:00
Philippe Oberti
097fb03bc4
move content-management and react files left behind in the packages folder (#206874)
## Summary

While looking at the `packages` folder at the root of Kibana, I noticed
some files were left over in otherwise empty folders:
- 2 README files were left in the `content-management` folder
- 1 README file and 1 png file were left in the `react` folder

The rest of the content was moved to a new location as part of the
Sustainable Kibana Architecture effort (see [this
PR](https://github.com/elastic/kibana/pull/205593) and [that
one](https://github.com/elastic/kibana/pull/205924)) and I wonder if
those few files were left behind by mistake.

I did not making any changes to the content of the files, I just moved
them to their respective new locations.

Please let me know if these were left behind intentionally, or if they
should be deleted instead of moved!

### Notes

The `appex-sharedux` codeowner only appeared after pushing the second
commit which impacts the `react` folder. I realized that the codeowners
file was pointing to the folder within
`src/platform/packages/shared/content-management/content_insights` and
`src/platform/packages/shared/content-management/favorites` so update it
to point to the parent folder, which now contains the moved README
files. I hope that's ok!

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-16 11:01:20 -06:00
Chris Cowan
24f5153d85
[Streams] Refactoring streams routes (#206526)
## Summary

This PR consolidates the multiple `server/streams/*` route files into 4
`route.ts` files to optimize the Typescript parsing. I tried to organize
the routes into 4 logical groups:

- CRUD - edit, list, read, delete
- Management - fork, resync, status, sample
- Schema - unmapped fields, schema simulation
- Enablement - disable, enable

I left everything else "as is" since @dgieselaar is currently doing a
refactor to consolidate most of the features into a new `StreamsClient`
similar to the `AssetClient`
2025-01-16 09:53:01 -07:00
Viduni Wickramarachchi
10a221553a
[Obs AI Assistant] Fix editing prompt from contextual insights (#206673)
Closes https://github.com/elastic/kibana/issues/201642

## Summary

### Problem
1. Before a conversation is generated from contextual insights (before
`Help me understand this alert` is clicked), if the user clicks on `Edit
Prompt`, the prompt to edit is not loaded. An empty input box is loaded.
2. When a new prompt is typed in the empty input box and submitted, it
throws an error (because the way the new prompt is assigned to the
conversation errors out)
3. After clicking on "Help me understand this alert", if the user clicks
on `Edit Prompt`, a large string is loaded with contextual information,
as the prompt to edit. This is not user-friendly.

(All of the above can be seen in the screen recording before the changes
- attached below)

### Solution
1. Wait for the messages to be generated and then load the correct
initial prompt to edit.
2. When re-assigning the new prompt to the messages, make sure to parse
it and then assign correctly so that editing the prompt is user
friendly.

### 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-01-16 11:52:44 -05:00
jennypavlova
1d493c0a8d
[APM] Fix: Add tracing sample missing fields in the overview (#206932)
Closes #200474

## Summary

This PR fixes the issue with tracing sample missing URL/Status Code/User
Agent fields in the overview

## Testing
- Open the APM UI and find APM traces that contains `url.full` /
`transaction.page.url`, `http.request.method` and
`http.response.status_code`
- One should be ingested using an otel collector the other should use an
apm-server
- if using oblt cluster you can check transactions from `loadgenerator`
and `opbeans-python` for example
    - check the trace summary:
        - Otel:
        

![image](https://github.com/user-attachments/assets/871172b6-8307-4aa2-844e-73a8405da746)

        - APM server:
        

![image](https://github.com/user-attachments/assets/ef233cf4-0fbb-49c2-8f09-d4299a34ec8c)
2025-01-16 16:45:06 +00:00
Elena Stoeva
b6f6c4cefe
[Console] Copy as curl only for Kibana requests (#206631)
Closes https://github.com/elastic/kibana/issues/201781

## Summary

This PR makes the context menu in Console only display "Copy as curl" if
any of the selected requests is an internal Kibana request (i.e. starts
with the `kbn:` prefix).

Sample Kibana request: `GET kbn:/api/index_management/indices`




https://github.com/user-attachments/assets/a6c5cbc3-4dc5-44db-8ebb-2cbc9b3aea2d

---------

Co-authored-by: Ignacio Rivas <rivasign@gmail.com>
2025-01-16 16:41:25 +00:00
Alex Prozorov
22e047a1f6
[Cloud Security] changed findings group by name to group by id (#206379)
## Summary
This PR fixes group by logic in the findings table to be based on
resource.id instead of resource.name.

### Screenshots

![image](https://github.com/user-attachments/assets/5d480501-9f44-4395-82bd-e069b4a3c3f7)



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

### Definition of done
- [x] When grouping findings by Resource, the findings are grouped by
resource.id
- [x] The group title should still contain resource.name for better UX
in combination with the id
- [x] The label in the grouping properties should be Resource ID, not
just Resource

### 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-01-16 18:24:10 +02:00
Davis Plumlee
ded92cf995
[Security Solution] Test plan for prebuilt rule customization (#204888)
## Summary

Addresses https://github.com/elastic/kibana/issues/202068

Adds test plan for rule customization features related to the milestone
3 prebuilt rule customization epic
2025-01-16 10:57:17 -05:00
Kibana Machine
7d9e7dedf6 skip failing test suite (#179353) 2025-01-17 02:51:51 +11:00
Alberto Blázquez
5cc1315dd3
Implement Asset Inventory data grid (#206115)
## Summary

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

### Screenshots

<details><summary>Current state</summary>
<img width="1486" alt="Screenshot 2025-01-15 at 17 28 42"
src="https://github.com/user-attachments/assets/1a39ae67-406c-464d-849b-0fba3380e982"
/>
</details> 

<details><summary>Current state + RiskBadge + Criticality + SearchBar
(implemented in separate PRs)</summary>
<img width="1752" alt="Screenshot 2025-01-13 at 16 34 10"
src="https://github.com/user-attachments/assets/bca30c71-dba3-4505-aba6-a3787ba7f6b1"
/>
</details>

### Definition of done

> [!NOTE]
>  For now it only works with static data until backend is ready

- [x] Implement DataGrid using the `<UnifiedDataTable>` component, based
on
[[EuiDataGrid](https://eui.elastic.co/#/tabular-content/data-grid)](https://eui.elastic.co/#/tabular-content/data-grid),
ensuring consistency with Kibana standards.
- [x] Configure columns as follows:
- **Action column**: No label; includes a button in each row to expand
the `EntityFlyout`.
  - **Risk**: Numerical indicators representing the asset's risk.
  - **Name**: The name or identifier of the asset.
- **Criticality**: Displays priority or severity levels (e.g., High,
Medium, Low). Field `asset.criticality`
- **Source**: Represents the asset source (e.g., Host, Storage,
Database). `asset.source`
- **Last Seen**: Timestamp indicating the last observed data for the
asset.
- [x] Add static/mock data rows to display paginated asset data, with
each row including:
  - Buttons/icons for expanding the `EntityFlyout`.
- [x] Include the following interactive elements:
- [x] Multi-sorting: Allow users to sort by multiple columns (e.g., Risk
and Criticality). **This only works if fields are added manually to the
DataView**
- [x] Columns selector: Provide an option for users to show/hide
specific columns.
- [x] Fullscreen toggle: Allow users to expand the DataGrid to
fullscreen mode for enhanced visibility.
- [x] Pagination controls: Enable navigation across multiple pages of
data.
- [x] Rows per page dropdown: Allow users to select the number of rows
displayed per page (10, 25, 50, 100, 250, 500).
- [x] Enforce constraints:
- Limit search results to 500 at a time using `UnifiedDataTable`'s
pagination helper for loading more data once the limit is reached.

### Out of scope

- Risk score colored badges (implemented in follow-up PR)
- Group-by functionality or switching between grid and grouped views
- Field selector implementation
- Flyout rendering

### Duplicated files

> [!CAUTION]
> As of now, `<UnifiedDataTable>` is a complex component that needs to
be fed with multiple props. For that, we need several components, hooks
and utilities that currently exist within the CSP plugin and are too
coupled with it. It's currently not possible to reuse all this logic
unless we move that into a separate @kbn-package so I had to temporarily
duplicate a bunch of files. This is the list to account them for:

- `hooks/`
  - `use_asset_inventory_data_table/`
    - `index.ts`
    - `use_asset_inventory_data_table.ts`
    - `use_base_es_query.ts`
    - `use_page_size.ts`
    - `use_persisted_query.ts`
    - `use_url_query.ts`
    - `utils.ts`
  - `data_view_context.ts`
  - `use_fields_modal.ts`
  - `use_styles.ts`
- `components/`
  - `additional_controls.tsx`
  - `empty_state.tsx`
  - `fields_selector_modal.tsx`
  - `fields_selector_table.tsx`

This ticket will track progress on this task to remove duplicities and
refactor code to have a single source of truth reusable in both Asset
Inventory and CSP plugins:
- https://github.com/elastic/security-team/issues/11584

### How to test

1. Open the Index Management page in
`http://localhost:5601/kbn/app/management/data/index_management` and
click on "Create index". Then type `asset-inventory-logs` in the
dialog's input.
2. Open the DataViews page in
`http://localhost:5601/kbn/app/management/kibana/dataViews` and click on
"Create Data View".
3. Fill in the flyout form typing the following values before clicking
on the "Save data view to Kibana" button:
    - `asset-inventory-logs` in "name" and "index pattern" fields. 
    - `@timestamp` is the value set on the "Timestamp field".
- Click on "Show advanced settings", then type
`asset-inventory-logs-default` in the "Custom data view ID" field.
4. Open the Inventory page from the Security solution in
`http://localhost:5601/kbn/app/security/asset_inventory`.

<details><summary>Data View Example</summary>
<img width="894" alt="Screenshot 2025-01-10 at 11 09 00"
src="https://github.com/user-attachments/assets/9a20f504-e602-4b67-a24e-0341f447878e"
/>
</details> 

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

### Risks

No risks at all.
2025-01-16 16:35:49 +01:00
Joe Reuter
49f9724680
🌊 Streams: Fix routing UI for no-condition routing (#206752)
It is possible for a stream to end up with no routing condition. This is
useful to stop routing to a child, but keep the child stream around.
Currently, this is not handled well by the UI - the font size is wrong
and there is no way to change it:
<img width="671" alt="Screenshot 2025-01-15 at 13 25 12"
src="https://github.com/user-attachments/assets/25d45969-eff8-449b-9f75-831aa6c46a25"
/>

This PR fixes this:
<img width="684" alt="Screenshot 2025-01-15 at 13 24 38"
src="https://github.com/user-attachments/assets/dd9399e9-0841-4962-a8af-b15dc922cc6d"
/>

<img width="660" alt="Screenshot 2025-01-15 at 13 33 47"
src="https://github.com/user-attachments/assets/c0a33aec-3c94-46c4-b440-2d582522f89e"
/>
2025-01-16 15:23:18 +00:00
Joe Reuter
352dc8f1d5
🌊 Streams: Fix multi level implicit stream creation (#206766)
As discussed in
https://github.com/elastic/streams-program/issues/26#issuecomment-2592146590,
it's currently not possible to create a wired stream multiple levels
deep in the hierarchy with a single request, as its implicit parents
won't be created properly.

This PR is fixing this issue by recursively calling `upsertStream` for
the parent as long as necessary.

It also adds a validation for children specified in the routing to make
sure they don't skip levels.
2025-01-16 15:15:59 +00:00
Larry Gregory
395e49484e
Add check to fail CI if any dependencies are unowned (#206679)
## Summary
- Updates `scripts/dependency_ownership` to use the
`@kbn/dev-cli-runner` for consistency with other CI-related CLIs.
- Adds a new `failIfUnowned` flag to exit with an error code if any
dependencies are unowned.
- Adds a new dependency ownership check to `quick_checks` and `renovate`
CI steps.


From a CI run, the additional quick check executes successfully in 3
seconds:
```sh
info [quick-checks] Passed check: /opt/buildkite-agent/builds/bk-agent-prod-gcp-abc123/elastic/kibana-pull-request/kibana/.buildkite/scripts/steps/checks/dependencies_missing_owner.sh in 3s
```

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-16 09:59:04 -05:00
Maria Iriarte
2f6b9f67d8
[Lens][Heatmap] Add ability to rotate X axis label (#202143)
## Summary

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

Adds the ability to rotate the X-axis labels in the heatmap chart.

<img width="2560" alt="Screenshot 2025-01-08 at 16 50 20"
src="https://github.com/user-attachments/assets/0847dd6d-747d-4a4d-bc7e-4da6c903d394"
/>

#### Screen recording


https://github.com/user-attachments/assets/f4834722-b296-4239-a9d4-25c5fd8c738b

### 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/packages/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)

---------

Co-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com>
2025-01-16 15:36:37 +01:00
Pierre Gayvallet
c9286ec04e
[product doc] implement highlight summarizer (#206578)
## Summary

Fix https://github.com/elastic/kibana/issues/205921

- Implements a new summary strategy for the product documentation, based
on `semantic_text` highlights
- set that new strategy as the default one

### Why ?

Until now, in case of excessive token count, we were using a LLM based
summarizer. Realistically, highlights will always be worse than calling
a LLM for a "in context summary", but from my testing, highlights seem
"good enough", and the speed difference (instant for highlights vs
multiple seconds, up to a dozen, for the LLM summary) is very
significant, and seems overall worth it.

The main upside with that change, given that requesting the product doc
will be waaaay faster, is that we can then tweak the assistant's
instruction to more aggressively call the product_doc tool between each
user message without the risk of the user experience being impacted
(waiting way longer between messages). - *which will be done as a
follow-up*

### How to test ?

Install the product doc, ask questions to the assistant, check the tool
calls (sorry, don't have a better option atm...)

Note: that works with both versions of the product doc artifacts, so
don't need the dev repository
2025-01-16 14:59:15 +01:00
Ievgen Sorokopud
7e48400ade
[Rules migration] Basic integration test and folder structure (#11232) (#206822)
## 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 provides:
* a structure for the SIEM Migrations Integration Tests
* simple SIEM Migrations GET API test

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-16 14:43:05 +01:00
Andrew Macri
93d1134bfb
[Security Solution] [Attack discovery] Adds missing aria-label for the information button icon (#206886)
### [Security Solution] [Attack discovery] Adds missing aria-label for the information button icon

This PR fixes an a11y issue reported in <https://github.com/elastic/kibana/issues/206353>, where the information button icon, displayed while Attack discoveries are generated, was missing an `aria-label`.

This PR also updates an i18n translation in the same file, to add a missing word.

The _Before_ and _After_ screenshots below illustrate the fix, desk tested with Axe:

**Before**

![before](https://github.com/user-attachments/assets/a75d8b0c-2af7-44d0-9b10-fb961c5bd60e)

_Above: Before the fix, 1 Axe issue was detected while discoveries are generated_

**After**

![after](https://github.com/user-attachments/assets/5419f278-6963-47e2-bc99-35d5e6c2e64e)

_Above: After the fix, 0 Axe issues are detected while discoveries are generated_

#### Desk testing

The fix for this PR was desk tested locally via Axe.

Reproduction steps: <https://github.com/elastic/kibana/issues/206353>
2025-01-16 08:35:34 -05:00
Mykola Harmash
aaf7b9efea
Add authz definitions to Onboarding API endpoints (#206557)
Closes https://github.com/elastic/kibana/issues/206394

This adds `authz` definitions to all Onboarding routes. In all cases
authorization is either done using saved objects or ES clients, with a
couple of exceptions for endpoints that are ment to be accessed from a
terminal and using an API key with a specific privileges which do not
include access to saved objects. In that case we're using internal user
client.
2025-01-16 14:35:10 +01:00
Tre
9a439b7549
[FTR] migrate p-retry usage to Retry service (#206088)
## Summary

Use the
[tryWithRetries](37d7a5efb7/packages/kbn-ftr-common-functional-services/services/retry/retry.ts (L105))
service method instead of `pRetry` as detailed
[here](https://github.com/elastic/kibana/issues/178535)

`tryWithRetries` offers granular control of `retryCount`, `retryDelay`,
and `timeout`.
> [!IMPORTANT]
In some cases, there are helper functions that do not have access to the
FTR's provider context.
So, instead of using `retry.tryWithRetries`, we are using
`retryForSuccess` instead.
`retryForSuccess` is the function that `tryWithRetries` uses "_under the
hood_".
As long as we use the `retryCount` argument, we will get the retry
logging, as per [this related
pr](https://github.com/elastic/kibana/pull/205894)
 
Related: https://github.com/elastic/kibana/issues/178535,
https://github.com/elastic/kibana/pull/205894

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-16 13:19:14 +00:00
Nicolas Chaulet
5e8d2b5907
[Fleet] Enable read bulk agent actions (#206847) 2025-01-16 07:52:27 -05:00
Sergi Romeu
ba92d08a58
[APM] Migrate APM Cypress tests to on_merge from on_merge_unsupported_ftrs (#203991)
## Summary

Closes https://github.com/elastic/kibana/issues/203837
[Internal] Closes
https://github.com/elastic/observability-dev/issues/4126?reload=1?reload=1

This PR moves APM Cypress tests to be run on the main pipeline instead
of the unsupported one.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-16 12:57:50 +01:00
Artem Shelkovnikov
f2a7d90fd2
Make Agentless Connectors task handle connector.deleted properly (#206606)
## Summary

This PR makes it so that the Agentless Kibana task implemented in
https://github.com/elastic/kibana/pull/203973 properly handles
soft-deleted connectors.

This helps with the situation when an integration policy has been
created for an agentless connector but a connector record has not yet
been created by an agentless host.

With current Kibana task implementation it could lead to the Policy
being deleted.

With this change, only policies that refer to soft-deleted connectors
will be cleaned up.

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-16 15:54:08 +04:00
Stratoula Kalafateli
3e1391f80f
[ES|QL] Query history fixes (#206418)
## Summary

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

This PR fixes 2 bugs in the ES\QL history component

1. The sorting function was wrong (did the opposite than it was supposed
to do 🙈 )
2. The status code now it is been submitted correctly
2025-01-16 13:40:23 +02:00
Aleh Zasypkin
dd3ce0e7f5
feat(security): extend Feature definition to support explicit feature replacements (#206660)
## Summary

Today, when a developer deprecates a feature and replaces its privileges
with those of another feature, we reasonably assume that the new feature
fully replaces the old one in all possible contexts - whether in role
management UIs or in the Spaces feature toggles visibility UI. However,
when deprecated privileges are replaced by the privileges of multiple
features, such as in [this
case](https://github.com/elastic/kibana/pull/202863#discussion_r1892672114)
where the Discover/Dashboard/Maps feature privileges are replaced by the
privileges of Discover_v2/Dashboard_v2/Maps_v2, respectively, **and**
the privileges of the Saved Query Management feature, the choice is
ambiguous.

Which of these features should be treated as the replacement for the
deprecated feature in contexts that deal with entire features (like the
Spaces feature toggles visibility UI) rather than individual privileges
(like in role management UIs)? Should all referenced features be
considered replacements? Or just a subset - or even a single feature? If
so, which one? Currently, we treat all referenced features as
replacements for the deprecated feature, which creates problems, as
described in detail in [this
discussion](https://github.com/elastic/kibana/pull/202863#discussion_r1892672114).

This PR allows developers to customize this behavior by specifying which
features Kibana should treat as direct successors to deprecated features
in contexts that deal with whole features rather than individual
privileges:

```ts
deps.features.registerKibanaFeature({
  deprecated: {
    notice: 'The feature is deprecated because … well, there’s a reason.',
    --> replacedBy: ['feature_id_v2'], <--
  },
  id: 'feature_id'
  name: `Case #4 feature ${suffix} (DEPRECATED)`,
  …
});
```

## How to test

1. Run test server
```bash
node scripts/functional_tests_server.js --config x-pack/test/security_api_integration/features.config.ts
```

2. Execute the following request from the Dev Tools (`case_4_feature_a`
is a deprecated feature that is replaced by multiple features and
**doesn't use** `deprecated.replacedBy`)
```http
PUT kbn:/api/spaces/space/default?overwrite=true
{
  "id":"default",
  "name":"Default",
  "description":"This is your default space!",
  "color":"#00bfb3",
  "disabledFeatures":["case_4_feature_a"],
  "_reserved":true,
  "imageUrl":"",
  "initials":"D"
}
```

3. Observe that in response deprecated `case_4_feature_a` is replaced by
two features (you can also check
http://localhost:5620/app/management/kibana/spaces/edit/default to see
how it's reflected in UI)
```http
{
  "id": "default",
  "name": "Default",
  "description": "This is your default space!",
  "color": "#00bfb3",
  "initials": "D",
  "imageUrl": "",
  "disabledFeatures": [
    "case_4_feature_a_v2",
    "case_4_feature_c"
  ],
  "_reserved": true
}
```

4. Execute the following request from the Dev Tools (`case_4_feature_b`
is a deprecated feature that is replaced by multiple features, but
**uses** `deprecated.replacedBy` to set the conceptual
feature-successor)
```http
PUT kbn:/api/spaces/space/default?overwrite=true
{
  "id":"default",
  "name":"Default",
  "description":"This is your default space!",
  "color":"#00bfb3",
  "disabledFeatures":["case_4_feature_b"],
  "_reserved":true,
  "imageUrl":"",
  "initials":"D"
}
```

5. Observe that in response deprecated `case_4_feature_b` is replaced by
a single feature (you can also check
http://localhost:5620/app/management/kibana/spaces/edit/default to see
how it's reflected in UI)
```http
{
  "id": "default",
  "name": "Default",
  "description": "This is your default space!",
  "color": "#00bfb3",
  "initials": "D",
  "imageUrl": "",
  "disabledFeatures": [
    "case_4_feature_b_v2"
  ],
  "_reserved": true
}
```

__Required by:__
https://github.com/elastic/kibana/pull/202863#discussion_r1892672114

//cc @davismcphee
2025-01-16 11:35:32 +00:00
Anton Dosov
bdcad52cd8
[React@18] Refactor overview.tsx test to rtl (#206805)
## Summary

Extracted from https://github.com/elastic/kibana/pull/206411
[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/267344#019469ff-7fb9-4c5d-8569-2e445aab27be)
[[logs]](01946a1c-62fa-4d30-8863-1b40f8c0b924)
Jest Tests #9 / Overview renders correctly when there is no user data
view
This simplifies overview.tsx by refactoring to rtl and removing the
whole snapshot. The snapshot was not useful and the test is still making
sure that the intended component is still rendered. By removing enzyme,
the test now works properly for both react 17 and 18.
2025-01-16 10:57:55 +01:00
Nikita Indik
138d034d9f
[Security Solution] Display versions in Rule Upgrade flyout (#206636)
**Resolves: https://github.com/elastic/kibana/issues/188065**

## Summary
This PR adds current and target version info in the header of the Rule
Upgrade flyout.

## Screenshots
**Before**
<img width="975" alt="Scherm­afbeelding 2025-01-14 om 17 44 37"
src="https://github.com/user-attachments/assets/d831ffdb-a96f-40cc-8f46-1ae8d9d6e2cf"
/>

**After**
<img width="975" alt="Scherm­afbeelding 2025-01-14 om 17 43 58"
src="https://github.com/user-attachments/assets/91ebff9a-a10a-4d65-b696-42b6756bbacf"
/>

Work started on: 14-Jan-2025
2025-01-16 10:31:18 +01:00
Agustina Nahir Ruidiaz
0926703db3
[Security Solution] Adding selector list component to onboarding cards (#199311)
## Summary

This PR addresses
[#198761](https://github.com/elastic/kibana/issues/198761), which
enhance onboarding card layouts for better usability and engagement.

The following updates have been implemented:

- New Card Layouts:

Applied to `alerts`, `dashboards`, and `rules` cards.
Previously, each card displayed a description on the left and a static
asset on the right.
The updated design introduces a list of selectable items on the left
side. Selecting an item updates the right-side content to display a
corresponding video.

- New Components:

`OnboardingCardContentAssetPanel`: A reusable component designed to
render children and display an asset, supporting both image and video
types.
`CardSelectorList`: A flexible component for rendering a list of
selectable items provided to it, enabling the new card interaction
behavior.

- Persistent Selection:

The current selection for each card is now saved in localStorage using
keys specific to each card type (alerts, dashboards, and rules).
This ensures the last selection is remembered, and when the card is
expanded (on initial render or later), the component will automatically
scroll to and highlight the saved selection.


https://github.com/user-attachments/assets/ffc02c3c-625f-46ec-aff0-1bb1e9b73bb3

### Checklist

Delete any items that are not applicable to this PR.

- [ ] [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>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Sergi Massaneda <sergi.massaneda@gmail.com>
2025-01-16 10:19:52 +01:00
Pierre Gayvallet
e0092ad2fd
[inference] add support for modelName parameter (#206706)
## Summary

Related to https://github.com/elastic/kibana/issues/206710

Add a `modelName` parameter to the chatComplete inference API, and wire
it accordingly on all adapters.

That parameter can be used to override the default model specified by
the connector, at call time.
2025-01-16 10:12:14 +01:00
Irene Blanco
0dfe806aaf
[APM] Set metric trend to an empty array if undefined in MobileLocationStats (#206762)
## Summary

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

This PR addresses an issue with the `MobileLocationStats` component in
the Service Overview.

In one of our charts, we were passing data to a `Metric` component where
the `trend` property was set to `undefined`. By definition, it should be
an empty array if there's no value. Initially, this wasn’t an issue
because no error appeared visually. However, after an update to the
`@elastic/charts` library, a full-screen error was triggered.

Additionally, a conversation has been initiated with the maintainers of
`@elastic/charts` to explore making the typings stricter, as we didn’t
receive any TypeScript warnings, even though the `trend` property should
not be `undefined`.

|Before|After|
|-|-|
|![Screenshot 2025-01-15 at 13 56
56](https://github.com/user-attachments/assets/19e2ae8e-73ca-4c65-ae6f-1d4d5bce5c1e)|![Screenshot
2025-01-15 at 13 57
44](https://github.com/user-attachments/assets/89ee9eff-17d2-47f7-b38b-c95423e76d78)|
2025-01-16 09:49:13 +01:00
Jorge Sanz
2345872393
[Maps] Update @elastic/ems-client to 8.6.3 (#206814)
## Summary

Related to https://github.com/elastic/ems-client/issues/543 and
https://github.com/elastic/kibana/issues/198790

Updates `@elastic/ems-client@8.6.3` adding support for Node 22.x
2025-01-16 09:46:37 +01:00
Ignacio Rivas
983470fb85
[Console] Add a small action for copying variable names to clipboard (#206628) 2025-01-16 09:27:31 +01:00
Ignacio Rivas
c3b9466de6
[Searchprofiler] Fix CTA not being shown when screen is not tall enough (#206764) 2025-01-16 09:27:12 +01:00
Alejandro Fernández Haro
45d4f7de0b
Add local EBT shipper (#189671)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2025-01-16 09:26:43 +01:00
Julia Bardi
c272951bfb
[Fleet] Added required_versions to agent policy and API with validation (#206600)
## Summary

Part of https://github.com/elastic/ingest-dev/issues/4721

Added `required_versions` to agent policy and API with validation, added
unit tests for the validation.

UI change will come in another pr

To test:
- enable FF in `kibana.dev.yml`
  - `xpack.fleet.enableExperimental: ['enableAutomaticAgentUpgrades']`
- create/update an agent policy with `required_versions`
- add to preconfiguration
- `required_versions` is not added to the full agent policy in
`.fleet-policies`

```
POST kbn:/api/fleet/agent_policies
{
  "name": "Test versions",
  "namespace": "default",
    "required_versions": [
      {
        "version": "9.0.0",
        "percentage": 5
      }
    ]
}

POST kbn:/api/fleet/agent_policies
{
  "name": "Test versions 2",
  "namespace": "default",
    "required_versions": [
      {
        "version": "9.0.0",
        "percentage": 5
      },
      {
        "version": "9.0.0",
        "percentage": 5
      }
    ]
}

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": """Policy "Test versions 2" failed validation: duplicate versions not allowed in required_versions"""
}

PUT kbn:/api/fleet/agent_policies/fleet-first-agent-policy
{
  "name": "My first agent policy",
  "namespace": "default",
    "required_versions": [
      {
        "version": "8.18.0",
        "percentage": 10
      },
      {
        "version": "8.19.0",
        "percentage": 5
      }
    ]
}

GET kbn:/api/fleet/agent_policies/test-preconfigured

GET .fleet-policies/_search?q=policy_id:fleet-first-agent-policy
{
  "size": 1, 
  "sort": [
    {
      "revision_idx": {
        "order": "desc"
      }
    }
  ]
}


# test preconfigured policy

xpack.fleet.agentPolicies:

  - name: Test preconfigured
    id: test-preconfigured
    is_managed: true
    namespace: default
    monitoring_enabled: []
    package_policies: []
    required_versions:
      - version: "9.0.0"
        percentage: 10
      - version: "9.1.0"
        percentage: 5
```

### 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-01-16 09:18:34 +01:00
Maryam Saeidi
362f2dd9b0
[Custom threshold] Fix leading wildcard issue on the custom threshold alert details page (#206615)
Fixes #206588

## Summary

This PR fixes the `Unable to load page` error on the alert details page
when the query has a leading wildcard by passing the uiSetting config to
the buildEsQuery helper in the LogRateAnalysis component.


![image](https://github.com/user-attachments/assets/baef8a1e-9c63-4f63-9300-b85618f18f57)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-16 09:01:31 +01:00
Marco Antonio Ghiani
91fc11bfb3
[Field Icon] improve FieldIcon mappings and typing (#206614)
## 📓 Summary

We are using the FieldIcon component to display icons on a type
selector. `long` and `double` types were missing from the icon mapping,
this work just adds it and improves the typing to get suggestions on the
supported types after deriving them from the map.

| Before | After |
|--------|--------|
| ![Screenshot 2025-01-14 at 16 19
14](https://github.com/user-attachments/assets/c2e74a96-dbf4-43c6-b5a7-ed73d0fada5a)
| <img width="190" alt="Screenshot 2025-01-14 at 16 42 13"
src="https://github.com/user-attachments/assets/ff1b5d7b-a81e-4956-9ef8-d568f09ae3e4"
/> |
2025-01-16 08:19:59 +01:00
Kibana Machine
e6a4080754
[api-docs] 2025-01-16 Daily api_docs build (#206888)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/954
2025-01-16 07:17:04 +00:00
Joe McElroy
6ccc8523d0
[Onboarding] [Stack] Add Onboarding experience into Stack (#204351)
## Summary

**TODO**
- [x] FTR - solution navigation ftr - add test for index management
- [x] FTR - fix the index management index list page test to navigate
through the solution navigation to index management list page
- [x] code - playground create index action needs to check if part of es
solution navigation
- [x] Unit - add unit for index management with the change for solution
navigation
- [x] Unit - Fix any failures in index management tests
- [x] Fix FTR tests

These changes are only targeting 9.0.

### 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/packages/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)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Yan Savitski <yan.savitski@elastic.co>
2025-01-15 17:03:25 -07:00
Jared Burgett
f2c0ee8bd7
Added examples for necessary Entity Analytics OpenAPI docs (#205439)
# Summary

As part of the effort to add missing content for Security APIs, this PR
introduces a few missing request, response, and parameter examples for
Security Entity Analytics APIs.

All of the affected APIs are the Asset Criticality APIs.

# How to Test

Until the docs are deployed, this can be tested by navigating to
https://editor.swagger.io/ and pasting in the fully bundled file, which
can be found
[here](f905638686/x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_entity_analytics_api_2023_10_31.bundled.schema.yaml)
in the PR

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-15 23:17:19 +00:00
Paul Tavares
4c6abdebdf
[Security Solution][Endpoint] Display of isolation state for Microsoft Defender agents in alert details and response console (#206317)
## Summary

### Connector Changes

- Added support for sort field to the Machine Actions Microsoft Defender
API method

### Security Solution

- Add error handling to the calls made to a Connector's `.execute()` and
throws a more details error message
- Added logic to the Agent Status client for MS Defender to calculate
the agent's Isolated status by querying for Machine Actions
- Note: Due to API rate limits, which I believe may be associated with
the current Microsoft Defender test environment we are using, the agent
status in kibana (ex. Alert flyout, console) may flip to `Unenrolled`
periodically
2025-01-15 16:12:41 -05:00
Sergi Massaneda
83452239f7
[Siem migrations] Onboarding UI changes (#205734)
## Summary

Minor fixes and enhancements

### UI changes

#### Icon
Before
<img width="1166" alt="Captura de pantalla 2025-01-14 a les 19 33 25"
src="https://github.com/user-attachments/assets/e651875e-92f1-40be-93da-e5c5b1fa8cd1"
/>

After
<img width="1166" alt="Captura de pantalla 2025-01-14 a les 19 34 19"
src="https://github.com/user-attachments/assets/017d2a95-6817-4949-b678-9d89d3b0ad90"
/>

#### Connector step missing
Before 
<img width="1209" alt="Captura de pantalla 2025-01-14 a les 16 33 27"
src="https://github.com/user-attachments/assets/55546bc9-4f99-490f-910c-26ec82749f7d"
/>

After
<img width="1209" alt="Captura de pantalla 2025-01-14 a les 16 29 36"
src="https://github.com/user-attachments/assets/9f3c50db-5f53-4ac9-8e41-a0e281b8115d"
/>

#### Flyout upload buttons added
Before
<img width="956" alt="Captura de pantalla 2025-01-14 a les 16 36 44"
src="https://github.com/user-attachments/assets/b8111709-8bfe-4a03-baa7-576ca176feb3"
/>

After
<img width="950" alt="Captura de pantalla 2025-01-14 a les 19 30 01"
src="https://github.com/user-attachments/assets/afffb8b7-cf38-4f00-9142-2537bef394f3"
/>

#### Rule migration result card collapsible


https://github.com/user-attachments/assets/4518510c-e215-4015-862b-07d90e38094b

### Other changes

- Rule migration list order inverted to have more recent migrations
first (same on the dropdown of translation rules table)
- Rule migration result table fixes
- Make `retry` logic inside of the `start` API route.
- Fix results chart colors (Eui Borealis)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-15 20:38:41 +00:00