Commit graph

83135 commits

Author SHA1 Message Date
Shahzad
e51b2bda27
[Synthetics] Space aware private locations !! (#202634)
## Summary

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

User can choose which space the location will be visible in while
creating a location !!


### Testing

- [ ] Create location in all spaces and make sure it's visible
everywhere.
- [ ] Creation location in a specific space and make sure it's only
visible in specified space


<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/6aa5cac9-500a-447a-8ef5-bf53e91a16dd"
/>
2025-01-27 19:37:22 +01:00
Bryce Buchanan
a108c632a4
Added versioning to inventory_view_saved_object (#207007)
## Summary

Fixes #187254  
Strict checks on the attribute `legend.steps` was added to the inventory
view API in v8.10 (#160852), but they were not defined in the
saved object type for that data, resulting in older versions migrating
bad data, and being unable to use the API. This PR adds versioning to
the Inventory view saved object type that constrains legend.steps to
between 2 and 18, per the strict typing added in #160852

#### Open questions
Should we add notes to all versions of kibana between v8.10 and oldest
version available for backport describing this bug?

### 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] 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-27 11:09:32 -07:00
Ersin Erdal
773df93d5f
Run "mark_removed_tasks_as_unrecognized" task after creating test tasks (#206598)
Fixes: #194208

The test fails because the the task marks the removed task as
unrecognized has run before the test tasks are created.
This PR adds a runSoon request that runs the above task after creating
the test tasks.
2025-01-27 19:04:15 +01:00
Davis McPhee
665cfe06a6
[Discover] Clean up leftover "saved search" references (#208295)
## Summary

I noticed a few remaining user facing references to "saved search" after
the renaming in #202217. This PR cleans up all of them that I could
find.

### Checklist

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [x]
[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
- [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-27 14:01:22 -04:00
elastic-renovate-prod[bot]
9f5656c13d
Update @elastic/kibana-cloud-security-posture dependencies (main) (#201291)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@mswjs/http-middleware](https://mswjs.io)
([source](https://togithub.com/mswjs/http-middleware)) | devDependencies
| patch | [`^0.10.1` ->
`^0.10.2`](https://renovatebot.com/diffs/npm/@mswjs%2fhttp-middleware/0.10.1/0.10.2)
|
|
[@types/byte-size](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/byte-size)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/byte-size))
| devDependencies | patch | [`^8.1.0` ->
`^8.1.2`](https://renovatebot.com/diffs/npm/@types%2fbyte-size/8.1.0/8.1.2)
|
| [byte-size](https://togithub.com/75lb/byte-size) | dependencies |
major | [`^8.1.0` ->
`^9.0.1`](https://renovatebot.com/diffs/npm/byte-size/8.1.0/9.0.1) |
| [msw](https://mswjs.io) ([source](https://togithub.com/mswjs/msw)) |
devDependencies | minor | [`^2.4.12` ->
`^2.7.0`](https://renovatebot.com/diffs/npm/msw/2.5.2/2.7.0) |
| [xterm](https://togithub.com/xtermjs/xterm.js) | dependencies | minor
| [`^5.1.0` ->
`^5.3.0`](https://renovatebot.com/diffs/npm/xterm/5.1.0/5.3.0) |

---

### Release Notes

<details>
<summary>mswjs/http-middleware (@&#8203;mswjs/http-middleware)</summary>

###
[`v0.10.2`](https://togithub.com/mswjs/http-middleware/releases/tag/v0.10.2)

[Compare
Source](https://togithub.com/mswjs/http-middleware/compare/v0.10.1...v0.10.2)

#### v0.10.2 (2024-10-25)

##### Bug Fixes

- consume undisturbed request stream as-is
([#&#8203;39](https://togithub.com/mswjs/http-middleware/issues/39))
([`13cee76`](13cee76e5a))
[@&#8203;c0per](https://togithub.com/c0per)
[@&#8203;LeBenLeBen](https://togithub.com/LeBenLeBen)
[@&#8203;kettanaito](https://togithub.com/kettanaito)

</details>

<details>
<summary>75lb/byte-size (byte-size)</summary>

###
[`v9.0.1`](https://togithub.com/75lb/byte-size/compare/v9.0.0...v9.0.1)

[Compare
Source](https://togithub.com/75lb/byte-size/compare/v9.0.0...v9.0.1)

### [`v9.0.0`](https://togithub.com/75lb/byte-size/releases/tag/v9.0.0)

[Compare
Source](https://togithub.com/75lb/byte-size/compare/v8.2.1...v9.0.0)

Whether this is a breaking change or not is debatable so it has been
released as a major version just in case.

#### Non-breaking change since v8.2.1

These changes affect the output only, there are no changes to the API or
minimum supported Node version (still v12.17).

- Fixed an issue where precision and Intl formatting was not applied to
small numbers.
[#&#8203;15](https://togithub.com/75lb/byte-size/issues/15)
- Removed
[minimumFractionDigits](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumfractiondigits)
from unit number formatting. This removes superfluous precision, some
examples:
- `byteSize(1000).toString()` now returns `1 kB` instead of `1.0 kB`,
removing the superfluous one decimal place of precision.
- `byteSize(1500000, { precision: 5 }).toString()` now returns `1.5 MB`
instead of `1.50000 MB`, again removing superfluous precision.
- However, `byteSize(1500010, { precision: 5 }).toString()` will return
`1.50001 MB` as there is meaningful, non-zero precision to display.

###
[`v8.2.1`](https://togithub.com/75lb/byte-size/compare/v8.2.0...v8.2.1)

[Compare
Source](https://togithub.com/75lb/byte-size/compare/v8.2.0...v8.2.1)

###
[`v8.2.0`](https://togithub.com/75lb/byte-size/compare/v8.1.1...v8.2.0)

[Compare
Source](https://togithub.com/75lb/byte-size/compare/v8.1.1...v8.2.0)

###
[`v8.1.1`](https://togithub.com/75lb/byte-size/compare/v8.1.0...v8.1.1)

[Compare
Source](https://togithub.com/75lb/byte-size/compare/v8.1.0...v8.1.1)

</details>

<details>
<summary>mswjs/msw (msw)</summary>

### [`v2.7.0`](https://togithub.com/mswjs/msw/releases/tag/v2.7.0)

[Compare Source](https://togithub.com/mswjs/msw/compare/v2.6.9...v2.7.0)

#### v2.7.0 (2024-12-17)

##### Features

- use `picocolors` instead of `chalk`
([#&#8203;2377](https://togithub.com/mswjs/msw/issues/2377))
([`85bdd82`](85bdd82dfe))
[@&#8203;Namchee](https://togithub.com/Namchee)
[@&#8203;kettanaito](https://togithub.com/kettanaito)

### [`v2.6.9`](https://togithub.com/mswjs/msw/releases/tag/v2.6.9)

[Compare Source](https://togithub.com/mswjs/msw/compare/v2.6.8...v2.6.9)

#### v2.6.9 (2024-12-16)

##### Bug Fixes

- support `SharedArrayBuffer` in `HttpResponse.arrayBuffer`
([#&#8203;2389](https://togithub.com/mswjs/msw/issues/2389))
([`41f00e1`](41f00e1a67))
[@&#8203;danilofuchs](https://togithub.com/danilofuchs)
[@&#8203;kettanaito](https://togithub.com/kettanaito)

### [`v2.6.8`](https://togithub.com/mswjs/msw/releases/tag/v2.6.8)

[Compare Source](https://togithub.com/mswjs/msw/compare/v2.6.7...v2.6.8)

#### v2.6.8 (2024-12-07)

##### Bug Fixes

- **setupServer:** reapply interception after calling `server.listen()`
after `server.close()`
([#&#8203;2383](https://togithub.com/mswjs/msw/issues/2383))
([`00da9ca`](00da9cad42))
[@&#8203;kettanaito](https://togithub.com/kettanaito)

### [`v2.6.7`](https://togithub.com/mswjs/msw/releases/tag/v2.6.7)

[Compare Source](https://togithub.com/mswjs/msw/compare/v2.6.6...v2.6.7)

#### v2.6.7 (2024-12-06)

##### Bug Fixes

- **setupWorker:** correctly delete internal `accept` header on
passthrough ([#&#8203;2375](https://togithub.com/mswjs/msw/issues/2375))
([`3f40055`](3f40055b1d))
[@&#8203;smouillour](https://togithub.com/smouillour)
[@&#8203;kettanaito](https://togithub.com/kettanaito)

### [`v2.6.6`](https://togithub.com/mswjs/msw/releases/tag/v2.6.6)

[Compare Source](https://togithub.com/mswjs/msw/compare/v2.6.5...v2.6.6)

#### v2.6.6 (2024-11-22)

##### Bug Fixes

- **types:** support optional path parameters
([#&#8203;2368](https://togithub.com/mswjs/msw/issues/2368))
([`3b7b776`](3b7b776e8c))
[@&#8203;kettanaito](https://togithub.com/kettanaito)

### [`v2.6.5`](https://togithub.com/mswjs/msw/releases/tag/v2.6.5)

[Compare Source](https://togithub.com/mswjs/msw/compare/v2.6.4...v2.6.5)

#### v2.6.5 (2024-11-16)

##### Bug Fixes

- support non-configurable responses
([#&#8203;2360](https://togithub.com/mswjs/msw/issues/2360))
([`5bf3e3b`](5bf3e3bf5f))
[@&#8203;kettanaito](https://togithub.com/kettanaito)

### [`v2.6.4`](https://togithub.com/mswjs/msw/releases/tag/v2.6.4)

[Compare Source](https://togithub.com/mswjs/msw/compare/v2.6.3...v2.6.4)

#### v2.6.4 (2024-11-10)

##### Bug Fixes

- prevent infinite loop when bypassing `sendBeacon()` requests
([#&#8203;2353](https://togithub.com/mswjs/msw/issues/2353))
([`2fa98c3`](2fa98c327a))
[@&#8203;kettanaito](https://togithub.com/kettanaito)
- remove the internal bypass request header before performing the
request as-is in Node.js
([#&#8203;2353](https://togithub.com/mswjs/msw/issues/2353))
([`2fa98c3`](2fa98c327a))
[@&#8203;kettanaito](https://togithub.com/kettanaito)

### [`v2.6.3`](https://togithub.com/mswjs/msw/releases/tag/v2.6.3)

[Compare Source](https://togithub.com/mswjs/msw/compare/v2.6.2...v2.6.3)

#### v2.6.3 (2024-11-10)

##### Bug Fixes

- **handleRequest:** remove `transformResponse` option
([#&#8203;2351](https://togithub.com/mswjs/msw/issues/2351))
([`74c4a3a`](74c4a3a899))
[@&#8203;kettanaito](https://togithub.com/kettanaito)

### [`v2.6.2`](https://togithub.com/mswjs/msw/releases/tag/v2.6.2)

[Compare Source](https://togithub.com/mswjs/msw/compare/v2.6.1...v2.6.2)

#### v2.6.2 (2024-11-07)

##### Bug Fixes

- update `@bundled-es-modules/cookie` to 2.0.1
([#&#8203;2312](https://togithub.com/mswjs/msw/issues/2312))
([`c134352`](c134352e82))
[@&#8203;kettanaito](https://togithub.com/kettanaito)

### [`v2.6.1`](https://togithub.com/mswjs/msw/releases/tag/v2.6.1)

[Compare Source](https://togithub.com/mswjs/msw/compare/v2.6.0...v2.6.1)

#### v2.6.1 (2024-11-06)

##### Bug Fixes

- prevent `instanceof` handler check failures between different MSW
versions ([#&#8203;2349](https://togithub.com/mswjs/msw/issues/2349))
([`28d26bd`](28d26bd7fa))
[@&#8203;kettanaito](https://togithub.com/kettanaito)

### [`v2.6.0`](https://togithub.com/mswjs/msw/releases/tag/v2.6.0)

[Compare Source](https://togithub.com/mswjs/msw/compare/v2.5.2...v2.6.0)

#### v2.6.0 (2024-10-29)

##### Features

- support mocking WebSocket APIs
([#&#8203;2011](https://togithub.com/mswjs/msw/issues/2011))
([`ae786f5`](ae786f59eb))
[@&#8203;kettanaito](https://togithub.com/kettanaito)
[@&#8203;DanielleHuisman](https://togithub.com/DanielleHuisman)

</details>

<details>
<summary>xtermjs/xterm.js (xterm)</summary>

### [`v5.3.0`](https://togithub.com/xtermjs/xterm.js/releases/tag/5.3.0)

[Compare
Source](https://togithub.com/xtermjs/xterm.js/compare/5.2.1...5.3.0)

#### 🚀 Features

- The default DOM-based renderer is significantly faster now
([#&#8203;4605](https://togithub.com/xtermjs/xterm.js/issues/4605),
[#&#8203;4631](https://togithub.com/xtermjs/xterm.js/issues/4631),
[#&#8203;4651](https://togithub.com/xtermjs/xterm.js/issues/4651),
[#&#8203;4662](https://togithub.com/xtermjs/xterm.js/issues/4662),
[#&#8203;4681](https://togithub.com/xtermjs/xterm.js/issues/4681),
[#&#8203;4754](https://togithub.com/xtermjs/xterm.js/issues/4754)) via
[@&#8203;jerch](https://togithub.com/jerch),
[@&#8203;Tyriar](https://togithub.com/Tyriar),
[@&#8203;PerBothner](https://togithub.com/PerBothner),
[@&#8203;tisilent](https://togithub.com/tisilent)
- The smooth scroll feature now affects `scrollLines`,
`scrollPages`,`scrollToLine`, `scrollToTop` and `scrollToBottom`
([#&#8203;4482](https://togithub.com/xtermjs/xterm.js/issues/4482),
[#&#8203;4714](https://togithub.com/xtermjs/xterm.js/issues/4714)) via
[@&#8203;tisilent](https://togithub.com/tisilent),
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- `minimumContrastRatio` now applies 50% of the contrast ratio to dimmed
text ([#&#8203;4672](https://togithub.com/xtermjs/xterm.js/issues/4672))
via [@&#8203;Tyrira](https://togithub.com/Tyrira)

##### 📦 API

- There's a new `trace` log level
([#&#8203;4687](https://togithub.com/xtermjs/xterm.js/issues/4687),
4709) via [@&#8203;Tyriar](https://togithub.com/Tyriar)
    ```ts
    const term = new Terminal({
        logLevel: 'trace'
    });
    ```
- New `logger` delegate option
([#&#8203;4563](https://togithub.com/xtermjs/xterm.js/issues/4563),
[#&#8203;4564](https://togithub.com/xtermjs/xterm.js/issues/4564)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar). This new API allows the
embedder to define the logging behavior, instead of always using to
`console`
    ```ts
    const term = new Terminal({
        logger: {
            trace: (e, args) => console.log('trace: ', e, args),
            debug: (e, args) => console.log('debug: ', e, args),
            info: (e, args) => console.log('info: ', e, args),
            warn: (e, args) => console.log('warn: ', e, args),
            error: (e, args) => console.log('error: ', e, args)
        }
    });
    ```
- New `ignoreBracketedPasteMode` option that allows explicitly disabling
bracketed paste mode, regardless of whether the shell enables it or not
([#&#8203;4636](https://togithub.com/xtermjs/xterm.js/issues/4636)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
    ```ts
    const term = new Terminal({
        ignoreBracketedPasteMode: true
    });
    ```
- New `cursorInactiveStyle` option
([#&#8203;4657](https://togithub.com/xtermjs/xterm.js/issues/4657)) via
[@&#8203;tisilent](https://togithub.com/tisilent)
    ```ts
    const term = new Terminal({
        cursorInactiveStyle: 'none'
    });
    ```

#### 🐞 Bug fixes

- Fix character size being affected by CSS transformations
([#&#8203;4366](https://togithub.com/xtermjs/xterm.js/issues/4366)) via
[@&#8203;arekouzounian](https://togithub.com/arekouzounian)
- Fix mouse tracking behavior
([#&#8203;4583](https://togithub.com/xtermjs/xterm.js/issues/4583)) via
[@&#8203;jerch](https://togithub.com/jerch)
- Improve rendering of the DOM renderer's underline cursor
([#&#8203;4584](https://togithub.com/xtermjs/xterm.js/issues/4584)) via
[@&#8203;dlech](https://togithub.com/dlech)
- Fix issues in the accessibility tree
([#&#8203;4637](https://togithub.com/xtermjs/xterm.js/issues/4637)) via
[@&#8203;meganrogge](https://togithub.com/meganrogge)
- Fix reset and clear leaving viewport in a bad state
([#&#8203;4638](https://togithub.com/xtermjs/xterm.js/issues/4638)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Fix API facade memory leaks
([#&#8203;4655](https://togithub.com/xtermjs/xterm.js/issues/4655)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Fix memory leak in cursor blink state manager
([#&#8203;4659](https://togithub.com/xtermjs/xterm.js/issues/4659)) via
[@&#8203;SvanT](https://togithub.com/SvanT)
- Fix inverse rendering when a transparent foreground is used
([#&#8203;4667](https://togithub.com/xtermjs/xterm.js/issues/4667)) via
[@&#8203;Dennnnny](https://togithub.com/Dennnnny)
- Fix disposing of decorations
([#&#8203;4671](https://togithub.com/xtermjs/xterm.js/issues/4671)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Render selection background consistently in the DOM renderer
([#&#8203;4673](https://togithub.com/xtermjs/xterm.js/issues/4673)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Improve rendering of powerline circle line custom glyph
([#&#8203;4729](https://togithub.com/xtermjs/xterm.js/issues/4729)) via
[@&#8203;tisilent](https://togithub.com/tisilent)
- Improve texture atlas utilization and fix glyph corruption when
merging
([#&#8203;4732](https://togithub.com/xtermjs/xterm.js/issues/4732)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)

#### 📝 Documentation and internal improvements

- Improve safety of log service
([#&#8203;4565](https://togithub.com/xtermjs/xterm.js/issues/4565)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Exploring use of `CSSStyleSheet` web API
([#&#8203;4611](https://togithub.com/xtermjs/xterm.js/issues/4611),
#[#&#8203;4619](https://togithub.com/xtermjs/xterm.js/issues/4619),
[#&#8203;4678](https://togithub.com/xtermjs/xterm.js/issues/4678),
[#&#8203;4680](https://togithub.com/xtermjs/xterm.js/issues/4680)) via
[@&#8203;SimonSiefke](https://togithub.com/SimonSiefke),
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Update TypeScript to 5.1.6
([#&#8203;4612](https://togithub.com/xtermjs/xterm.js/issues/4612)) via
[@&#8203;SimonSiefke](https://togithub.com/SimonSiefke)
- Mention discussions in CONTRIBUTING.md
([#&#8203;4617](https://togithub.com/xtermjs/xterm.js/issues/4617)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Improve type safety of ColorIndex
([#&#8203;4618](https://togithub.com/xtermjs/xterm.js/issues/4618)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Fix demo light theme cursor colors
([#&#8203;4626](https://togithub.com/xtermjs/xterm.js/issues/4626)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Add nvmrc using node 16
([#&#8203;4666](https://togithub.com/xtermjs/xterm.js/issues/4666)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Restrict comments to 100 characters
([#&#8203;4668](https://togithub.com/xtermjs/xterm.js/issues/4668)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Lint API xterm.d.ts file
([#&#8203;4669](https://togithub.com/xtermjs/xterm.js/issues/4669),
[#&#8203;4677](https://togithub.com/xtermjs/xterm.js/issues/4677)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- General clean up
([#&#8203;4676](https://togithub.com/xtermjs/xterm.js/issues/4676),
[#&#8203;4683](https://togithub.com/xtermjs/xterm.js/issues/4683),
[#&#8203;4688](https://togithub.com/xtermjs/xterm.js/issues/4688),
[#&#8203;4689](https://togithub.com/xtermjs/xterm.js/issues/4689),
[#&#8203;4733](https://togithub.com/xtermjs/xterm.js/issues/4733)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Reduce repetition with internal terminal types and inherit docs from
API ([#&#8203;4679](https://togithub.com/xtermjs/xterm.js/issues/4679))
via [@&#8203;Tyriar](https://togithub.com/Tyriar)
- Improve lifecycle of WebLinksAddon.api, test all country tlds
([#&#8203;4691](https://togithub.com/xtermjs/xterm.js/issues/4691)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Stub out all CSI api tests
([#&#8203;4692](https://togithub.com/xtermjs/xterm.js/issues/4692)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Migrate to GitHub Actions and speed up CI
([#&#8203;4693](https://togithub.com/xtermjs/xterm.js/issues/4693),
[#&#8203;4697](https://togithub.com/xtermjs/xterm.js/issues/4697),
[#&#8203;4698](https://togithub.com/xtermjs/xterm.js/issues/4698),
[#&#8203;4699](https://togithub.com/xtermjs/xterm.js/issues/4699),
[#&#8203;4700](https://togithub.com/xtermjs/xterm.js/issues/4700),
[#&#8203;4710](https://togithub.com/xtermjs/xterm.js/issues/4710),
[#&#8203;4712](https://togithub.com/xtermjs/xterm.js/issues/4712),
[#&#8203;4715](https://togithub.com/xtermjs/xterm.js/issues/4715),
[#&#8203;4716](https://togithub.com/xtermjs/xterm.js/issues/4716),
[#&#8203;4734](https://togithub.com/xtermjs/xterm.js/issues/4734)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Fix spaces in bce demo
([#&#8203;4694](https://togithub.com/xtermjs/xterm.js/issues/4694)) via
[@&#8203;jerch](https://togithub.com/jerch)
- Add automatic resize to demo
([#&#8203;4695](https://togithub.com/xtermjs/xterm.js/issues/4695)) via
[@&#8203;PerBothner](https://togithub.com/PerBothner)
- Add no unused variables lint warning
([#&#8203;4718](https://togithub.com/xtermjs/xterm.js/issues/4718)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Fix demo warnings
([#&#8203;4721](https://togithub.com/xtermjs/xterm.js/issues/4721),
[#&#8203;4722](https://togithub.com/xtermjs/xterm.js/issues/4722)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Adopt `@ts-check` in JS files
([#&#8203;4723](https://togithub.com/xtermjs/xterm.js/issues/4723),
[#&#8203;4724](https://togithub.com/xtermjs/xterm.js/issues/4724)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Warn on eslint rule `@typescript-eslint/no-useless-constructor`
([#&#8203;4725](https://togithub.com/xtermjs/xterm.js/issues/4725)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Warn on eslint rule `@typescript-eslint/no-confusing-void-expression`
([#&#8203;4726](https://togithub.com/xtermjs/xterm.js/issues/4726)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Start migration to `@playwright/test` as the integration test runner
([#&#8203;4735](https://togithub.com/xtermjs/xterm.js/issues/4735)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)

#### 🎉 New real-world use cases

- cloudtutor.io
([#&#8203;4570](https://togithub.com/xtermjs/xterm.js/issues/4570)) via
[@&#8203;naufalafif](https://togithub.com/naufalafif)
- Helix Editor Playground
([#&#8203;4585](https://togithub.com/xtermjs/xterm.js/issues/4585)) via
[@&#8203;tomgroenwoldt](https://togithub.com/tomgroenwoldt)
- Coder
([#&#8203;4595](https://togithub.com/xtermjs/xterm.js/issues/4595)) via
[@&#8203;matifali](https://togithub.com/matifali)

***

#### 📥 Addons

##### xterm-addon-canvas

- Add getRasterizedGlyph null and undefined check
([#&#8203;4596](https://togithub.com/xtermjs/xterm.js/issues/4596)) via
[@&#8203;lewis-sanchez](https://togithub.com/lewis-sanchez)
- Fix various underlines by rendering them upwards
([#&#8203;4648](https://togithub.com/xtermjs/xterm.js/issues/4648),
[#&#8203;4664](https://togithub.com/xtermjs/xterm.js/issues/4664)) via
[@&#8203;tisilent](https://togithub.com/tisilent)

##### xterm-addon-image

- The images addon has been merged into the main repository
([#&#8203;4577](https://togithub.com/xtermjs/xterm.js/issues/4577),
[#&#8203;4727](https://togithub.com/xtermjs/xterm.js/issues/4727)) via
[@&#8203;jerch](https://togithub.com/jerch)

##### xterm-addon-ligatures

- Enable the ligatures addon on Electron
([#&#8203;4387](https://togithub.com/xtermjs/xterm.js/issues/4387)) via
[@&#8203;LabhanshAgrawal](https://togithub.com/LabhanshAgrawal)

##### xterm-addon-serialize

- Fallback to default ANSIcolors when running xterm-headless
([#&#8203;4348](https://togithub.com/xtermjs/xterm.js/issues/4348)) via
[@&#8203;silamon](https://togithub.com/silamon)

##### xterm-addon-webgl

- Render the cursor in the WebGL canvas
([#&#8203;4568](https://togithub.com/xtermjs/xterm.js/issues/4568)) via
[@&#8203;xzfc](https://togithub.com/xzfc)

#### 🤝 Compatible addon versions

| Addon | Version
| --- | ---
| `xterm-addon-attach` | `0.9.0`
| `xterm-addon-canvas` | `0.5.0`
| `xterm-addon-fit` | `0.8.0`
| `xterm-addon-image` | `0.5.0`
| `xterm-addon-ligatures` | `0.7.0`
| `xterm-addon-search` | `0.13.0`
| `xterm-addon-serialize` | `0.11.0`
| `xterm-addon-unicode11` | `0.6.0`
| `xterm-addon-web-links` | `0.9.0`
| `xterm-addon-webgl` | `0.16.0`

***

#### 🌐 Website

Pull from
https://github.com/xtermjs/xtermjs.org/pulls?q=is%3Apr+sort%3Aupdated-desc+is%3Aclosed

### [`v5.2.1`](https://togithub.com/xtermjs/xterm.js/releases/tag/5.2.1)

[Compare
Source](https://togithub.com/xtermjs/xterm.js/compare/5.2.0...5.2.1)

#### 🐞 Bug fixes

- Fix NPEs on buffer line and windowsPty option
([#&#8203;4551](https://togithub.com/xtermjs/xterm.js/issues/4551)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)

### [`v5.2.0`](https://togithub.com/xtermjs/xterm.js/releases/tag/5.2.0)

[Compare
Source](https://togithub.com/xtermjs/xterm.js/compare/5.1.0...5.2.0)

#### 🚀 Features

- Support for the overline attribute SGR 53/55
([#&#8203;4526](https://togithub.com/xtermjs/xterm.js/issues/4526),
[#&#8203;4532](https://togithub.com/xtermjs/xterm.js/issues/4532)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)

##### 📦 API

- Improved Windows workarounds with the new windowsPty option
([#&#8203;4539](https://togithub.com/xtermjs/xterm.js/issues/4539)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)

    ```ts
    const term = new Terminal({
      windowsPty: {
        backend: 'conpty',
        buildNumber: 19000
      }
    });
    ```

#### 🐞 Bug fixes

- Fix performance issue related to hovering links
([#&#8203;4341](https://togithub.com/xtermjs/xterm.js/issues/4341)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Fix exception by validating rows are correct when rendering
([#&#8203;4346](https://togithub.com/xtermjs/xterm.js/issues/4346)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Improve rendering of dotted underline
([#&#8203;4350](https://togithub.com/xtermjs/xterm.js/issues/4350)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Invalidate links after resizing
([#&#8203;4358](https://togithub.com/xtermjs/xterm.js/issues/4358)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Fix texture atlas exception thrown when changing options
([#&#8203;4390](https://togithub.com/xtermjs/xterm.js/issues/4390)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Show hollow cursor when unfocused, regardless of cursor type
([#&#8203;4443](https://togithub.com/xtermjs/xterm.js/issues/4443)) via
[@&#8203;tisilent](https://togithub.com/tisilent)
- Fix out of sync link underlines after resizing on Windows
([#&#8203;4458](https://togithub.com/xtermjs/xterm.js/issues/4458)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Fix a lifecycle issue with decorations
([#&#8203;4465](https://togithub.com/xtermjs/xterm.js/issues/4465)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Rerender in the DOM renderer after options change
([#&#8203;4475](https://togithub.com/xtermjs/xterm.js/issues/4475)) via
[@&#8203;kelvinhammond](https://togithub.com/kelvinhammond)
- Fix DECRQM reports and add DECBKM
([#&#8203;4478](https://togithub.com/xtermjs/xterm.js/issues/4478)) via
[@&#8203;jerch](https://togithub.com/jerch)
- Fix links not working when using a screen reader
([#&#8203;4491](https://togithub.com/xtermjs/xterm.js/issues/4491)) via
[@&#8203;jerch](https://togithub.com/jerch)
- Ensure decorations in the top layer render on top of decorations in
the bottom layer
([#&#8203;4516](https://togithub.com/xtermjs/xterm.js/issues/4516)) via
[@&#8203;jeanp413](https://togithub.com/jeanp413)
- Avoid triggering a reflow while rendering search decorations
([#&#8203;4521](https://togithub.com/xtermjs/xterm.js/issues/4521)) via
[@&#8203;jeanp413](https://togithub.com/jeanp413)
- Don't apply dim to background color
([#&#8203;4525](https://togithub.com/xtermjs/xterm.js/issues/4525)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Fix exception and performance issue when rendering link underlines
([#&#8203;4546](https://togithub.com/xtermjs/xterm.js/issues/4546)) via
[@&#8203;jerch](https://togithub.com/jerch)

#### 📝 Documentation and internal improvements

- Remove unused buffer code
([#&#8203;4335](https://togithub.com/xtermjs/xterm.js/issues/4335)) via
[@&#8203;jerch](https://togithub.com/jerch)
- Explore a different accessibility view
([#&#8203;4340](https://togithub.com/xtermjs/xterm.js/issues/4340),
[#&#8203;4375](https://togithub.com/xtermjs/xterm.js/issues/4375),
[#&#8203;4376](https://togithub.com/xtermjs/xterm.js/issues/4376),
[#&#8203;4377](https://togithub.com/xtermjs/xterm.js/issues/4377),
[#&#8203;4381](https://togithub.com/xtermjs/xterm.js/issues/4381),
[#&#8203;4382](https://togithub.com/xtermjs/xterm.js/issues/4382),
[#&#8203;4383](https://togithub.com/xtermjs/xterm.js/issues/4383),
[#&#8203;4389](https://togithub.com/xtermjs/xterm.js/issues/4389),
[#&#8203;4395](https://togithub.com/xtermjs/xterm.js/issues/4395),
[#&#8203;4398](https://togithub.com/xtermjs/xterm.js/issues/4398),
[#&#8203;4400](https://togithub.com/xtermjs/xterm.js/issues/4400),
[#&#8203;4402](https://togithub.com/xtermjs/xterm.js/issues/4402),
[#&#8203;4406](https://togithub.com/xtermjs/xterm.js/issues/4406),
[#&#8203;4413](https://togithub.com/xtermjs/xterm.js/issues/4413),
[#&#8203;4427](https://togithub.com/xtermjs/xterm.js/issues/4427),
[#&#8203;4536](https://togithub.com/xtermjs/xterm.js/issues/4536)) via
[@&#8203;meganrogge](https://togithub.com/meganrogge),
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Update CI containers to Ubuntu 20.04
([#&#8203;4347](https://togithub.com/xtermjs/xterm.js/issues/4347)) via
[@&#8203;silamon](https://togithub.com/silamon)
- Update CI containers to use Node 18
([#&#8203;4542](https://togithub.com/xtermjs/xterm.js/issues/4542)) via
[@&#8203;silamon](https://togithub.com/silamon)
    4542
- Remove unused imports
([#&#8203;4361](https://togithub.com/xtermjs/xterm.js/issues/4361)) via
[@&#8203;Eugeny](https://togithub.com/Eugeny)
- Replace dom helper with HTMLElement.remove()
([#&#8203;4364](https://togithub.com/xtermjs/xterm.js/issues/4364)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Show proper parameter hints when calling createInstance
([#&#8203;4393](https://togithub.com/xtermjs/xterm.js/issues/4393)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Correct registerMarker API docs
([#&#8203;4464](https://togithub.com/xtermjs/xterm.js/issues/4464)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Add FAQ to new issue report
([#&#8203;4512](https://togithub.com/xtermjs/xterm.js/issues/4512)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Fix buffer corruption for utf8 transport in demo
([#&#8203;4527](https://togithub.com/xtermjs/xterm.js/issues/4527)) via
[@&#8203;jerch](https://togithub.com/jerch)

#### ⚠️ Deprecations

-   `windowsMode` has been deprecated in favor of `windowsPty`
    ```ts
    // Before 5.2
    term = new Terminal({ windowsMode: true });
    // After 5.2
    term = new Terminal({
      windowsPty: {
        backend: 'conpty',
        buildNumber: 19000
      }
    });
    ```

#### 🎉 New real-world use cases

- graSSHopper
([#&#8203;4356](https://togithub.com/xtermjs/xterm.js/issues/4356)) via
[@&#8203;Coding-Kiwi](https://togithub.com/Coding-Kiwi)
- DomTerm
([#&#8203;4456](https://togithub.com/xtermjs/xterm.js/issues/4456)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)

***

#### 📥 Addons

##### xterm-addon-canvas

- Fix rendering of underline on wide characters
([#&#8203;4352](https://togithub.com/xtermjs/xterm.js/issues/4352)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Update selection properly after changing themes
([#&#8203;4353](https://togithub.com/xtermjs/xterm.js/issues/4353)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Update selection properly after a resize
([#&#8203;4355](https://togithub.com/xtermjs/xterm.js/issues/4355)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Correct cell background color after clearing formatting
([#&#8203;4438](https://togithub.com/xtermjs/xterm.js/issues/4438)) via
[@&#8203;jerch](https://togithub.com/jerch)
- Fix rendering of 0xE0BB and 0xE0BF powerline symbols
([#&#8203;4451](https://togithub.com/xtermjs/xterm.js/issues/4451)) via
[@&#8203;Starwort](https://togithub.com/Starwort)
- Fix rendering of cursor leaving artifacts on Firefox
([#&#8203;4500](https://togithub.com/xtermjs/xterm.js/issues/4500)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Disallow glyphs to exceed texture atlas size
([#&#8203;4508](https://togithub.com/xtermjs/xterm.js/issues/4508)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Don't apply dim to background color
([#&#8203;4525](https://togithub.com/xtermjs/xterm.js/issues/4525)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Fix blacked out content
([#&#8203;4533](https://togithub.com/xtermjs/xterm.js/issues/4533)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)

##### xterm-addon-search

- Improve search behavior when there are > 1000 results
([#&#8203;4504](https://togithub.com/xtermjs/xterm.js/issues/4504)) via
[@&#8203;jeanp413](https://togithub.com/jeanp413)

##### xterm-addon-webgl

- Fix rendering of underline on wide characters
([#&#8203;4352](https://togithub.com/xtermjs/xterm.js/issues/4352)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Fix loadCell exception
([#&#8203;4403](https://togithub.com/xtermjs/xterm.js/issues/4403)) via
[@&#8203;meganrogge](https://togithub.com/meganrogge)
- Fix rendering of 0xE0BB and 0xE0BF powerline symbols
([#&#8203;4451](https://togithub.com/xtermjs/xterm.js/issues/4451)) via
[@&#8203;Starwort](https://togithub.com/Starwort)
- Fix rendering of cursor leaving artifacts on Firefox
([#&#8203;4500](https://togithub.com/xtermjs/xterm.js/issues/4500)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Disallow glyphs to exceed texture atlas size
([#&#8203;4508](https://togithub.com/xtermjs/xterm.js/issues/4508)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Don't apply dim to background color
([#&#8203;4525](https://togithub.com/xtermjs/xterm.js/issues/4525)) via
[@&#8203;Tyriar](https://togithub.com/Tyriar)
- Fix blacked out content
([#&#8203;4530](https://togithub.com/xtermjs/xterm.js/issues/4530)) via
[@&#8203;jerch](https://togithub.com/jerch)

#### 🤝 Compatible addon versions

-   `xterm-addon-attach@...`
-   `xterm-addon-fit@...`
-   `xterm-addon-ligatures@...`
-   `xterm-addon-search@...`
-   `xterm-addon-serialize@...`
-   `xterm-addon-unicode11@&#8203;...`
-   `xterm-addon-web-links@...`
-   `xterm-addon-webgl@...`

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOkNsb3VkIFNlY3VyaXR5IiwiYmFja3BvcnQ6YWxsLW9wZW4iLCJyZWxlYXNlX25vdGU6c2tpcCJdfQ==-->

---------

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Maxim Kholod <maxim.kholod@elastic.co>
Co-authored-by: Paulo Silva <paulo.henrique@elastic.co>
2025-01-27 09:58:22 -08:00
Ash
ba8d83a14c
[SecuritySolution][Endpoint] Update serverless roles to include stack connector sub-privilege (#208155)
## Summary

Adds EDR stack connectors sub-privilege to serverless roles.

### Checklist

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-01-27 17:40:28 +00:00
Anton Dosov
9e8ab663b7
[React@18] Fix index management unit tests that are failing with React@18 (#208387)
## Summary

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

Fixes when run with React@18
https://github.com/elastic/kibana/pull/208339#issuecomment-2615621371:


[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)
[[logs]](0194a7ae-4701-478b-93ef-9013f7210234)
Jest Integration Tests / request flyout renders _meta field

[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)
[[logs]](0194a7ae-4702-4357-a67e-d59c6bb5f12b)
Jest Integration Tests / request flyout renders a json with default
policy name when only policy name is missing

[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)
[[logs]](0194a7ae-4701-4d18-8c34-1f4965486aa1)
Jest Integration Tests / request flyout renders an error callout if
policy form is invalid

[[job]](https://buildkite.com/elastic/kibana-pull-request/builds/270417#0194a78a-2649-4cd6-bac8-5f186c246055)
[[logs]](0194a7ae-4701-4533-9e12-e7056e8277aa)
Jest Integration Tests / request flyout renders the correct json and
name for a new policy



To run with React@18 use: 

```
REACT_18=true yarn test:jest_integration x-pack/platform/plugins/private/index_lifecycle_management/integration_tests/edit_policy/features/request_flyout.test.ts
```

I tested that the component works in the browser, so the issue is in the
test. I think that because of some internal React@18 changes the order
in which the validation timeout inside our form lib is called conflcts
with fake timers (the timeout just stucks). So instead of trying to add
additional `jest.advanceTimersByTime(0);` in some places I decided to
simplify and just use the real timeouts that works well for both
react@17 an react@18
2025-01-27 17:21:44 +00:00
Rodney Norris
67458e629c
[search] remove logstream component, no longer used (#206804)
## Summary

Removing LogStream component from `enterprise_search` plugin and it is
no longer used with the removal of App Search & Workplace Search.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-27 11:20:25 -06:00
Bailey Cash
a133dc57a7
separate SLO route functions into different files (#208261)
Resolves [#207879](https://github.com/elastic/kibana/issues/207879)

This PR separates the different SLO route functions into separate files,
each with a single responsibility. The functions are still exported via
a single function, `getSloRouteRepository`.

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-27 17:19:01 +00:00
Hannah Mudge
e49be2d42b
[Dashboard] Fix panel reset (#208288)
## Summary

This PR fixes a bug that was introduced in
https://github.com/elastic/kibana/pull/206941 (by my recommendation,
oops) where panels can no longer be reset on Dashboard.

**Before**


https://github.com/user-attachments/assets/90bfce89-e188-45c6-937d-9ad48982d387

**After**


https://github.com/user-attachments/assets/25c9b9c8-7ad5-4808-89a1-0dcf7921b52e


### 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-27 17:10:44 +00:00
Jan Monschke
1449a205c4
[SecuritySolution][Timelines] Update privilege (#208383)
## Summary

We forgot to update this privilege in
https://github.com/elastic/kibana/pull/201780 . The endpoint only uses
the scoped SO client, so this missing privilege declaration does not
lead to privilege escalation on the endpoint. There are automated tests
that check for the correct privilege access for this and other
endpoints.
2025-01-27 16:46:28 +00:00
Jorge Sanz
052ec56d5c
[Maps][Vega] Update default basemaps to adapt to the Borealis theme refresh (#208114)
Fixes #201269

## Summary

* Extracts the usage of the EMS styles identifiers to always refer to
the constants at `ems_defaults.ts`
* Adds logic in the Vega and Maps plugins to resolve different styles
depending on the theme, bringing the new `road_map_desaturated_v9` and
`dar_kmap_v9` styles when Borealis theme is enabled.


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
  - Screenshots will be updated as a larger effort afterwards. 
- [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
  - Changes were small enough for this to not require new tests. 
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

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

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

## Release note

Elastic Maps Service basemaps shown in the Custom Visualization
component (Vega) and in the Maps application and components alighn with
the new dark and light theme.

---------

Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
2025-01-27 17:44:00 +01:00
Nick Partridge
a4089b1dbd
[Dashboard/Lens] Fix scroll jumping when editing from flyout (#207429)
## Summary

Fixes an issue that caused the body scroll to jump when clicking options
in the Lens inline editor flyout.

Fixes #201544

This issue was created when we added the `autoFocus` option to the
`EuiSelectable` for the dataview picker and the chart type picker.

This appears to be an issue with how eui is handling the `autoFocus`,
see https://github.com/elastic/eui/issues/8287.

In the meantime this is a workaround to prevent this scroll jumping
while also keeping the auto focus behavior.


https://github.com/user-attachments/assets/94256fa7-f6bd-4943-91f6-42201ce4ab74

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

## Release note

Fixes and issue in Dashboards with the Lens inline editor where the
dashboard would scroll to the top when interacting with the Lens editor
flyout.

---------

Co-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com>
2025-01-27 16:30:02 +00:00
Janki Salvi
bbc3944d31
[ResponseOps][Cases] Delete get status deprecated API (#208208)
## Summary

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

### Checklist

Check the PR satisfies following conditions. 

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

### Release note
Removed deprecated get case status API

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-27 16:21:19 +00:00
Mykola Harmash
ef96cd5d0b
[Onboarding] Additional auto-detect flow telemetry (#207726)
Closes https://github.com/elastic/observability-dev/issues/4236 🔒

This change:
* Moves flow progress update telemetry events to the backend (this will
prevent situations when multiple progress updates happened in a short
time interval, but frontend could only see the latest update because it
checks for progress once in a few seconds which might not be enough in
some situations)
* Leaves the data_ingested final event on the FE because it's not
explicitly triggered on the BE
* Deletes a separate event type for auto detect flow in favor of the
generic even used by other flows
* Adds progress updates to the auto-detect script when when it's being
run on unsupported OS or lsof binary is not present
* Adds logging of the OS and architecture used by the host

Events coming from your local Kibana can viewed on the [🔒 Staging
Telemetry cluster](https://telemetry-v2-staging.elastic.dev). Though
keep in mind, there is a ~1 hour delay for events indexing 😔

Example event:
![CleanShot 2025-01-22 at 12 26
14@2x](https://github.com/user-attachments/assets/077e4f15-5283-4198-a543-30f2507fa0f5)
2025-01-27 17:19:01 +01:00
Brandon Morelli
4f3a1c94f8
Remove complex tables (#207911)
### Summary

For migration purposes, we need to remove complex tables in the docs. If
we ultimately decide that we need complex tables to support certain
documentation use-cases, we can add that functionality to docs-builder
later.

For
https://github.com/elastic/docs-builder/issues/112#issuecomment-2599284112.

Co-authored-by: florent-leborgne <florent.leborgne@elastic.co>
2025-01-27 16:09:05 +00:00
Alex Szabo
da9caea9a2 skip failing suite (#205141) 2025-01-27 17:08:21 +01:00
Stratoula Kalafateli
e426bf0c8b
[ES|QL] Use emotion instead of scss in the editor (#208003)
## Summary

Part of https://github.com/elastic/kibana-team/issues/1417

Replaces scss with emotion in the ES|QL editor

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-27 16:51:38 +01:00
Maryam Saeidi
91e8490003
[StdPerf] Add onPageLoad event to alerts and alert details pages (#207089)
## Summary

This PR adds StdPerf to the alerts page and alert details page only for
the overview tab.

|Page|Screenshot|
|---|---|
|Alerts
page|![image](https://github.com/user-attachments/assets/4fe7aa75-b986-4b3c-90a9-4f55e2a21129)|
|Alert details
page|![image](https://github.com/user-attachments/assets/5662b171-2699-4a49-86e0-c89bb98800d2)|

---

Resolves https://github.com/elastic/observability-dev/issues/3559

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-27 16:21:20 +01:00
Gergő Ábrahám
1f3d4cb040
[EDR Workflows] Rerelease data collection reduction advanced options and banner (#205785)
## Summary

> [!warning]
> Planned to be merged before feature freeze, to cause the smallest
reasonable diverge between serverless and ess.

- adds advanced option `aggregate_network`
- adds advanced option `allow_cloud_features`
- re-adds backfill for existing data collection reduction advanced
options
- and updates their default value in their descriptions
- reenables banner for informing users, but it's kept behind a feature
flag:
`xpack.securitySolution.enableExperimental.eventCollectionDataReductionBannerEnabled`
- bumps revision number to trigger re-deployment of policies

> [!note]
> To enable the banner, set the feature flag
`xpack.securitySolution.enableExperimental.eventCollectionDataReductionBannerEnabled`

### Stack upgrade test
#### Before upgrade
<img width="191" alt="Screenshot 2025-01-07 at 17 41 31"
src="https://github.com/user-attachments/assets/41fdf96b-e105-4d6a-bd58-2cd916ba4267"
/>
<img width="675" alt="Screenshot 2025-01-07 at 17 42 01"
src="https://github.com/user-attachments/assets/a0af8d6c-dc6a-486b-a588-0a59f73460fd"
/>

#### After upgrade
<img width="198" alt="Screenshot 2025-01-07 at 17 43 52"
src="https://github.com/user-attachments/assets/98806068-3a3f-4cf1-855c-01b5953bca9c"
/>
<img width="699" alt="Screenshot 2025-01-07 at 17 44 45"
src="https://github.com/user-attachments/assets/12934b78-7679-427b-903d-208773c8086f"
/>

/* this is only for one OS, but the values are backfilled for all 3 OSes


### Banner
<img width="1384" alt="image"
src="https://github.com/user-attachments/assets/9505f5d0-5cd6-4ea1-b70c-3d5f4888d4f2"
/>


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Daniel Ferullo <56368752+ferullo@users.noreply.github.com>
2025-01-27 16:14:50 +01:00
Elena Shostak
c495ac1ace
[Spaces] Skipped api integration tests with FIPS for get_all with basic license (#208359)
## Summary
`get_all` suite
`x-pack/test/spaces_api_integration/security_and_spaces/apis/get_all.ts`
is intented to be run only with `basic` license, since FIPS overrides it
we need to skip that test for FIPS.


### 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-01-27 15:00:00 +00:00
Pablo Machado
15c622bb82
[SecuritySolution] Add "Install" and "Reinstall" button on Entity Store status page (#208149)
## Summary

Add "Install" and "Reinstall" buttons on Entity Store status page 
* It also adds an extra loading state for the 'enable' switch in the
header

![Screenshot 2025-01-24 at 11 14
33](https://github.com/user-attachments/assets/b12ceae5-77c1-41bd-ad4c-58bdad3d6891)



### How to test it?
**1)**
* Start a Kibana repository with entity data
* Install the entity store
* Delete one engine using Dev Tools `DELETE
kbn:/api/entity_store/engines/user`
* Go to the manage entity store status tab 
* Verify that it displays an install button for the uninstalled engine
* Install the engine

**2)**
* Start a Kibana repository with entity data
* Install the entity store
* Go to the manage entity store status tab 
* Delete one component of an installed engine (transform)
* Go to the manage entity store status tab 
* Verify it displays a reinstall button for the engine you uninstalled
the component
* Reinstall the engine
* Everything should look ok
* Extra step: Verify if there was any data lost after reinstalling the
engine



### Checklist

Reviewers should verify this PR satisfies this list as well.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2025-01-27 15:42:48 +01:00
Gerard Soldevila
009b377164
Insert 100k sample docs in 10k batches (#208348)
## Summary

Attempt at fixing the following failing serverless test suite:

`src/core/server/integration_tests/saved_objects/serverless/migrations/actions.test.ts`
Resulting in `write EPIPE`

See incident 1077
2025-01-27 14:22:03 +00:00
Konrad Szwarc
27811a4905
[EDR Workflows] Workflow Insights - Replace Tech Preview label (#208347)
As requested, changed 
![Screenshot 2025-01-27 at 13 02
26](https://github.com/user-attachments/assets/4d4cfd48-78cc-408c-9963-aa1b261d3927)
to
![Screenshot 2025-01-27 at 12 56
35](https://github.com/user-attachments/assets/65ca37b0-7b2a-4186-b5a6-785281234553)
2025-01-27 14:19:23 +00:00
Julia Bardi
26e10f7058
[Fleet] fix View agents for failed upgrade action (#208214)
## Summary

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

When querying agent ids for actions, some agent ids might not be in
`.fleet-actions`, but only in `.fleet-actions-results`. This happens
when during the bulk upgrade action, some agents are not upgradeable,
the agents only appear in `.fleet-actions-results` as errors. So as a
fix, querying agent ids from there too.

To verify:
- enroll a few agents with docker
- select 2 or more agents
- click bulk upgrade action
- open agent activity, find the failed action
- click on `View agents`
- verify that the agents are filtered correctly

<img width="1161" alt="image"
src="https://github.com/user-attachments/assets/344b6b1f-0f4c-48ec-98c5-15df46b6b227"
/>
<img width="727" alt="image"
src="https://github.com/user-attachments/assets/fb4a9fdb-5e62-448c-a4f4-6ba127bdfdd6"
/>
<img width="1165" alt="image"
src="https://github.com/user-attachments/assets/ee29469b-4b67-4ed7-9716-a5d8ac25d37a"
/>


### 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-01-27 15:04:21 +01:00
Ignacio Rivas
458704f475
[Console] Fix flaky autocomplete functional tests (#208322) 2025-01-27 15:01:19 +01:00
José Luis González
ad84cce62c
[Search] New Connectors and Web Crawlers temp icons (#208341)
## Summary

The new Connectors and Web Crawler icons were redesigned and will be
provided by EUI with [this
PR](https://github.com/elastic/eui/pull/8285). While those are not
available waiting for next EUI release, [we agreed with EUI
team](https://elastic.slack.com/archives/C7QC1JV6F/p1737712560812099) to
update any reference with custom EUI icons in the meantime to later get
them from EUI and remove this custom implementation.

![CleanShot 2025-01-27 at 12 00
09@2x](https://github.com/user-attachments/assets/f243204e-468b-4193-9f5e-17bce22c56d2)

![CleanShot 2025-01-27 at 11 59
34@2x](https://github.com/user-attachments/assets/a19dff22-6a49-43a5-adef-bcf08209e514)

![CleanShot 2025-01-27 at 11 59
22@2x](https://github.com/user-attachments/assets/d0c153ae-f0c5-483b-bcd8-f4677e0749f0)


### 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-01-27 14:48:53 +01:00
Sonia Sanz Vivas
5824279531
[Snapshot and restore]Remove SLM banner for duplicated schedules (#207748)
Closes https://github.com/elastic/kibana/issues/101007

## Summary

**Double-checked with ES that can be removed** 

In the policies tab, when two policies had the same schedule, we were
displaying a banner warning that only one snapshot could be taken at a
time, although this is no longer true. This PR removes that banner.

<img width="1068" alt="Screenshot 2025-01-22 at 13 15 55"
src="https://github.com/user-attachments/assets/cdb7d468-5ef1-4acd-8ea6-4ce961453695"
/>

## How to test
Run Elasticsearch adding the file system path you want to use for the
repo:

```
yarn es snapshot --license=trial -E path.repo=/tmp/es-backups
```

From the console, you can add a repository pointing the location you
previously specified:

```
PUT /_snapshot/my_backup
{
  "type": "fs",
  "settings": {
    "location": "/tmp/es-backups",
    "chunk_size": "10mb"
  }
}
```
Now, create at least two policies with the same schedule:

```
PUT _slm/policy/policy-1
{
  "schedule": "0 20 11 * * ?",
  "name": "<policy-1-{now/d}>",
  "repository": "my_backup",
  "config": {
    "indices": ["*"],
    "ignore_unavailable": false,
    "include_global_state": true
  }
}

PUT _slm/policy/policy-2
{
  "schedule": "0 20 11 * * ?",
  "name": "<policy-2-{now/d}>",
  "repository": "my_backup",
  "config": {
    "indices": ["*"],
    "ignore_unavailable": false,
    "include_global_state": true
  }
}
```
Navigate to Snapshot and Restore > Policies > And verify the banner is
not longer displayed despite the policies have the same schedule.

You can also schedule the policies a couple of minutes after their
creation and verify that the snapshots are taken at the same time
without any problem.
2025-01-27 13:32:18 +00:00
elastic-renovate-prod[bot]
5d1e16849e
Update dependency @xyflow/react to ^12.4.1 (main) (#208049)
This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
| [@xyflow/react](https://reactflow.dev)
([source](https://togithub.com/xyflow/xyflow/tree/HEAD/packages/react))
| dependencies | patch | [`^12.4.0` ->
`^12.4.1`](https://renovatebot.com/diffs/npm/@xyflow%2freact/12.4.2/12.4.1)
| `12.4.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://togithub.com/renovatebot/renovate).

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

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Maxim Kholod <maxim.kholod@elastic.co>
2025-01-27 14:08:01 +01:00
Rickyanto Ang
a2d36067e9
[Cloud Security] Deleting K8S Dashboard (#207127)
## Summary

As K8S Dashboard is currently hidden on main , the code serves no
purpose other than potentially causing Tech debts whenever a refactor or
a migration happens. As such its better to remove it completely. In case
we want to bring it back later we will just pull it from git history

> [!CAUTION]
> **This should only affect Serverless and Main, 8.x.x should still be
able to see and access K8S Dashboard**

## Related Tickets
- https://github.com/elastic/security-team/issues/11418
- https://github.com/elastic/security-team/issues/10735

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Paulo Silva <paulo.henrique@elastic.co>
Co-authored-by: Maxim Kholod <maxim.kholod@elastic.co>
2025-01-27 14:06:29 +01:00
Giorgos Bamparopoulos
5e47da357d
[Observability Onboarding] Add landing page to global search (#206662)
Adds the observability onboarding landing page to global search.

Keywords used:
- `Add data`

<img width="651" alt="image"
src="https://github.com/user-attachments/assets/9a88b24d-ee85-495e-99be-812428e829c1"
/>

<img width="661" alt="image"
src="https://github.com/user-attachments/assets/72fe9848-3b4b-4975-a824-4c8a4e89665d"
/>

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

---------

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-27 15:01:00 +02:00
Janki Salvi
9291165413
[ResponseOps][Cases] Delete get all user actions API (#208086)
## Summary

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

### Checklist

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

### Release note
Removed deprecated get user actions API

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-27 12:57:22 +00:00
Sander Philipse
0056a403d4
[ES3] Fix telemetry ID for indices (#208233)
## Summary

Quick fix changing a telemetry ID.
2025-01-27 12:45:19 +00:00
Julia
a065d3b160
[ResponseOps] Copy dataViewSpecSchema to rules params package (#207850)
Fixed: https://github.com/elastic/kibana/issues/207832
2025-01-27 13:32:47 +01:00
Charlotte Alexandra Wilson
4ecf32b83d
Eui Refresh (#204007)
## Summary

This PR covers required updates for EUI refresh:
[#11228](https://github.com/elastic/security-team/issues/11228)
The updates should only cover Entity Owned components. 

### Severity Colors Blocked
Severity colors are on hold until the security severity color palette is
finalised. Once agreed, a shared hook will be updated across all of
security, replacing the current RISK_SEVERITY_COLOUR mapping. The
previous severity colors hook was reverted in preparation for this
change. Updates for EA will be tracked accordingly.

See https://elastic.slack.com/archives/C0851RDCWPP/p1736954935896329 for
more details

https://github.com/elastic/security-team/issues/11516 
https://github.com/elastic/kibana/pull/206276

---

### Testing 

Running Kibana with the Borealis theme
In order to run Kibana with Borealis, you'll need to do the following:

1. Set the following in kibana.dev.yml:
u`iSettings.experimental.themeSwitcherEnabled: true`

2. Run Kibana with the following environment variable set:
`KBN_OPTIMIZER_THEMES="borealislight,borealisdark,v8light,v8dark" yarn
start`

3. This will expose a toggle under **Stack Management > Advanced
Settings > Theme version**, which you can use to toggle
between Amsterdam and Borealis.

---

More details about each section
https://github.com/elastic/kibana/issues/199715

#### Borealis Updates Light & Dark Theme 

### Screenshots 
Google Docs for easy read - same screenshots below

https://docs.google.com/document/d/1tKPoqCPbccX94cqgPyHKBdr9_K3kmqveQGkcGo_Q8k4/edit?usp=sharing

---
## Light Theme

### Entity Store 


![entityStore](https://github.com/user-attachments/assets/94c03a9a-f6d2-4cf7-836b-ae3b3c310cdb)


![EntityStoreStatus](https://github.com/user-attachments/assets/46d45ad4-73aa-4fb7-b2ab-0b6525016ef5)

### Risk Score


![RiskScore](https://github.com/user-attachments/assets/63f1eca3-46f5-4f21-9cef-7b3b6c0724fd)

### Dashboard and Flyout


![Dashboard2](https://github.com/user-attachments/assets/5901db26-81b9-46bc-a3f4-4de7770babbc)


![RiskLevels](https://github.com/user-attachments/assets/5273c891-232f-4c6f-892f-c1979c2f8c23)


![FlyoutRiskScore](https://github.com/user-attachments/assets/1f0ebd6d-82d5-4356-907a-89bc1a04f483)


![FlyoutAssetCriticalityColors](https://github.com/user-attachments/assets/cca34be8-f3f8-4a5b-8698-1227d80edcc0)

## Dark Theme

### Entity Store


![DarkEntityStore](https://github.com/user-attachments/assets/48a12285-e57c-4da1-9376-489b4d9d2853)


![DarkEntityStoreStatus](https://github.com/user-attachments/assets/9a48e492-c28a-4dd0-876d-e34dcfefe49d)

### Risk Score


![DarkRiskScore](https://github.com/user-attachments/assets/becab00e-996d-4485-94fa-bf9bee337aaa)

### Dashboard and Flyout


![DarkDashboard](https://github.com/user-attachments/assets/72522716-0c29-4935-ba0c-f9fcea8ff94a)


![DarkRiskScore](https://github.com/user-attachments/assets/83ae74c8-3e16-49c5-9c05-9b666e146b1b)


![DarkFlyoutRiskScore](https://github.com/user-attachments/assets/2d97c992-ca08-4f97-9338-e59805084a36)


![DarkFlyoutAssetCriticalityColors](https://github.com/user-attachments/assets/197a8990-282f-4b01-bab5-e0b2b1518217)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
2025-01-27 11:43:30 +00:00
Jan Monschke
91268e835c
[SecuritySolution][Timelines/Notes] Updating API tests (#208218)
## Summary

In this PR we're updating some API tests to use the OpenAPI-generated
types and we're unksipping a bunch of tests on ESS.

### 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-01-27 12:04:39 +01:00
Stratoula Kalafateli
b84c65c095
[ES|QL] Dashboard variables (#202875)
## Summary

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

Supports dashboard variables in ES|QL charts.

This PR introduces the first phase of ES|QL controls. In this phase:
- the flow starts from Lens ES|QL editor (and no vice-versa, this will
happen on a later phase after we discuss some technical details with ES)
- it is only available for dashboards (we want to include them in other
apps as Discover but this is the next phase driven by the presentation
team)
- it supports variables for intervals, fields and values. I haven't
added support for functions. I am going to do it after this PR being
merged (there are some business questions I want to answer first)

For more info check this
[deck](https://docs.google.com/presentation/d/1qSbWLSoC5SseXuLix763vpp8sa7ikp3pQTbHImEHBoc)


![meow](https://github.com/user-attachments/assets/c101a257-fbe4-44e6-9686-18012f39e8c1)

### Implementation details

- There is a new service, the ESQLVariables service that is responsible
for ES|QL variables. I isolated this to a new plugin owned by the ES|QL
team for cleaner code and for avoiding circular dependencies
- A new ESQL_CONTROL type got created. It follows the exact same logic
as the rest controls. No changes in the architecture here.
- The creation of the controls (the control forms) have been added in
the esql plugin.
- Lens has small changes:
   -  The support of variables in the textBased datasource
- Two callbacks needed to be called after the creation / cancellation of
an ES|QL control


### Types of ES|QL variables 

We have 2 types:

- Static Values (the user gives a list of values with his own
responsibility). As the flow starts from the editor we can identify what
they most possibly want to do and we give the user some options but they
have the freedom to do as they want. A basic validation has been added
too.
- Values from an ES|QL query (the user gives an ES|QL query that
generates the values). As the flow starts from the editor we can suggest
a query for the users but they can always change it as they wish.

<img width="1168" alt="image"
src="https://github.com/user-attachments/assets/cc28beb8-111c-43ad-9f26-865bc62ae512"
/>

### Example of a control creation from the editor

![meow](https://github.com/user-attachments/assets/09fa0e21-98cd-4160-b271-4f8ed0a91bf7)


### Release note
ES|QL charts now allow the creation of controls in dashboards. You can
control a part of the query such as a field, an interval or a value.

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
Co-authored-by: Devon Thomson <devon.thomson@elastic.co>
2025-01-27 11:35:54 +01:00
Khristinin Nikita
bfddf6c133
Update message for manual rule run Modal window (#208072)
## Summary


Update message, that currently not support only 1 action type
<img width="670" alt="Screenshot 2025-01-23 at 15 51 10"
src="https://github.com/user-attachments/assets/758a5052-303d-4155-8320-e4c3e620c496"
/>
2025-01-27 10:22:11 +00:00
Dima Arnautov
44aa347102
[Inference] Add Jina AI icon (#208227)
## Summary

Add a provider icon for the Jina AI integration
https://github.com/elastic/elasticsearch/pull/118652

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-27 11:10:56 +01:00
Georgiana-Andreea Onoleață
4434e87e4d
[ResponseOps] - Fix failing test in index_threshold_max_alerts (#208038)
## Summary

- un-skipped test and ran the flaky test runner

Fixes: https://github.com/elastic/kibana/issues/193876.
2025-01-27 12:07:36 +02:00
Ievgen Sorokopud
ef58b46c12
[Rules migration] Implement workflow tour - Rule Translation (#11384) (#207425)
## Summary

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

This PR adds the SIEM Migration tour guide on the Translated Rules page.
[Figma
link](https://www.figma.com/design/BD9GZZz6y8pfSbubAt5H2W/%5B8.18%5D-GenAI-Powered-SIEM-Migration%3A-Rule-translation?node-id=2652-255044&t=hpdjyIzzG4XcwLSU-4)

The tour will be on when there are at least one translated rule in the
opened migration (rules table is not empty).


https://github.com/user-attachments/assets/8b29d8d5-43ce-4f4e-9821-595899ba3d25

Delete `securitySolution.siemMigrations.ruleTranslationGuide.v8.18` in
the local storage to reset the tour.

> [!NOTE]  
> This feature needs `siemMigrationsEnabled` experimental flag enabled
to work.
2025-01-27 10:52:53 +01:00
Ievgen Sorokopud
68beb8f684
[Rules migration] UI updates (#208291)
## Summary

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

This PR includes next improvements and fixes

### Improvements

1. Add tooltip describing rule query
2. Show "[language] query" title for translated rules
3. Show placeholder for the empty query
4. Show placeholder if splunk rule was mapped into elastic ML rule

### Screenshots

<img width="1290" alt="Screenshot 2025-01-25 at 01 29 38"
src="https://github.com/user-attachments/assets/f67c362d-a5ad-4962-8ba4-d7ec597c9238"
/>

<img width="1291" alt="Screenshot 2025-01-25 at 01 29 17"
src="https://github.com/user-attachments/assets/1376a833-bb43-4a95-89f4-e35d3346a476"
/>

<img width="1288" alt="Screenshot 2025-01-25 at 01 30 00"
src="https://github.com/user-attachments/assets/be0c073a-eaf9-4e9b-8bf3-c547b3fc9e88"
/>

> [!NOTE]  
> This feature needs `siemMigrationsEnabled` experimental flag enabled
to work.
2025-01-27 10:50:31 +01:00
Khristinin Nikita
41aa8f949a
Store gaps info in event log (#192347)
## Store gaps in event log

Setting new fields hidden behind feature flag
(`storeGapsInEventLogEnabled`). It should be possible to do intermediate
release, just to update mappings.

In this PR:

- store gaps in event log
- update event log mappings
- add gap range and unfilled_gap_ms mappings into rule `last_run`
metrics for rule schema


### How it works

In this stage we use our current mechanism for gap detection in security
rules. Instead of just report duration in ms, we will also report date
range of the gap. To set this value we use `RuleMonitoringService` from
the security rule execution.

Later in task runner we check if last run from `RuleMonitoringService`
has gap range information. If it there, we use `AlertingEventLogger` to
create Gap document in event log.



New field in event log in `kibana.alert.rule.gap` fields:
`status`: keyword.  Gap status 
`range`: date_range. Full gap range
`filled_intervals`: date_range. Filled intervals
`unfilled_intervals`: date_range. Unfilled intervals
`in_progress_intervals`: date_range Intervals which currently have
potential rule executions planned (from manual rule run)
`total_gap_duration_ms`: long
`filled_gap_duration_ms`: long
`unfilled_gap_duration_ms`: long
`in_progress_gap_duration_ms`: long

**kibana.alert.rule.execution**: extend execution info with gap_range
`kibana.alert.rule.execution.gap_range`


## Rule schema

Added `unfilled_gap_ms` into rule response schema. We will calculate
total gap duration after each rule execution, and write in to rule
object for 1d,3d,7d. It's allow us to use it in Rule monitoring table,
and be able sort by that field

I plan add integrations tests, in next PR's when we will have API to get
gaps info


### How this schema will be used:
More details
[here](https://docs.google.com/document/d/1pDJZon-OzUwmk1ENNZJo0QUoSD-MCwy_tn9GCCBX_1Y/edit?tab=t.0)

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-27 09:46:06 +00:00
Kibana Machine
80ddc98ed5
[ES|QL] Update function metadata (#208317)
This PR updates the function definitions and inline docs based on the
latest metadata from Elasticsearch.

---------

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2025-01-27 10:37:39 +01:00
Pierre Gayvallet
dc54c11419
security assistant: use functionCalling: "auto" for inference-based APIs (#208198)
## Summary

Follow-up of https://github.com/elastic/kibana/pull/208144

The inference APIs can now detect if the underlying model / connector
supports native function calling using the `functionCalling: "auto"`
parameter. This PR adapts the calls done from the security assistant to
use that new value

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-27 09:10:16 +00:00
Kibana Machine
276e651b32
[api-docs] 2025-01-27 Daily api_docs build (#208318)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/965
2025-01-27 07:01:55 +00:00
Kibana Machine
62399e7d30
[api-docs] 2025-01-26 Daily api_docs build (#208311)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/964
2025-01-26 07:51:21 +00:00
Marta Bondyra
ed5728302a
[Lens] add an accessible label to range slider (#205308)
## Summary

Fixes https://github.com/elastic/kibana/issues/182765 (with the solution
suggested by @1Copenut)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-25 22:11:46 +00:00
Angela Chuang
235d5ebe53
[SecuritySolution] Update severity colors for Borealis theme (#206276)
## Summary

Apply severity colors for Borealis theme.
https://github.com/elastic/kibana/pull/204007#discussion_r1908519126

Update: ⚠️ As the final decision for severity color is still pending,
the temporary colors are the hard coded color hex:
https://github.com/elastic/kibana/issues/203387
`TODO` Borealis migration - move from hardcoded values to severity
palette https://github.com/elastic/security-team/issues/11606

| Color token | Amsterdam|Borealis|
|-------------|------------|------------|
| Critical | euiThemeVars.euiColorDanger |```#E7664C```|
| High | euiThemeVars.euiColorVis9_behindText |```#DA8B45``` |
| Meduiml |euiThemeVars.euiColorVis5_behindText|```#D6BF57``` |
| Low | euiThemeVars.euiColorVis0| ```#54B399``` |

### Running Kibana with the Borealis theme
In order to run Kibana with Borealis, you'll need to do the following:

Set the following in kibana.dev.yml:
uiSettings.experimental.themeSwitcherEnabled: true

Run Kibana with the following environment variable set:
KBN_OPTIMIZER_THEMES="borealislight,borealisdark,v8light,v8dark" yarn
start

This will expose a toggle under Stack Management > Advanced Settings >
Theme version, which you can use to toggle between Amsterdam and
Borealis.



![Image](https://github.com/user-attachments/assets/78d64946-43fc-4400-bbb1-229d900b7f05)


### 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-25 17:44:21 +08:00
Kibana Machine
de1b9833a2
[api-docs] 2025-01-25 Daily api_docs build (#208296)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/963
2025-01-25 07:18:39 +00:00