Commit graph

86706 commits

Author SHA1 Message Date
Khristinin Nikita
dcac7aaf20
Revert "Remove FF for gaps" (#221347)
Reverts elastic/kibana#219737

As we found 2 high impact bugs, we want to fix it before it will be Gaps
will be available on serverless
2025-05-23 10:52:58 -05:00
Cauê Marcondes
e3101dd026
Discover highlighting filters (#220412)
closes https://github.com/elastic/kibana/issues/216864

Transaction:
<img width="1247" alt="Screenshot 2025-05-07 at 10 47 32"
src="https://github.com/user-attachments/assets/953259db-52fd-4310-833b-8f7e3cac2072"
/>

Span:
<img width="1245" alt="Screenshot 2025-05-07 at 13 00 43"
src="https://github.com/user-attachments/assets/3248d262-30fd-4958-b285-93e19aab2e46"
/>
2025-05-23 12:42:48 -03:00
Jesus Wahrman
a5e8a0ad37
Delete final reference of REMOVED_TYPES, in V2 migration (#220685)
## Summary

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

This PR removes the final reference of `REMOVED_TYPES` that was in V2
migration algorithm. Now removed types is retrieved from the
typeRegistry as it should since
https://github.com/elastic/kibana/pull/218139. Thanks to this we can now
move `REMOVED_TYPES` to `core-saved-objects-server-internal` because the
circular dependency is not there anymore.

The ticket also mentioned:

```
We can also take advantage of this task and remove excludeOnUpgradeQuery ... We can remove it and create it when needed using the type registry legacy types, this way we don't need to carry that query string in all states.
```

But when doing this I noticed that this value is actually being updated
inside the migration so decided not to change it for now.

7220f7a3ef/src/core/packages/saved-objects/migration-server-internal/src/model/model.ts (L737-L754)


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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-23 17:34:57 +02:00
mohamedhamed-ahmed
a2bd0a73c6
[Dataset Quality] Wrap discover test checks in retries (#221365)
## Summary

This PR wraps test checks in retries to avoid checking before loading is
completed.

closes https://github.com/elastic/kibana/issues/221348
2025-05-23 16:50:23 +02:00
Bailey Cash
7e3bb0b6a1
[SLO] Bulk purge UI (#220123)
Implements #219835

<img width="700" alt="Screenshot 2025-05-22 at 5 08 17 PM"
src="https://github.com/user-attachments/assets/46691652-e290-461f-8ff9-a2f91bb72f11"
/>

---------

Co-authored-by: Kevin Delemme <kevin.delemme@elastic.co>
2025-05-23 09:33:47 -04:00
Zachary Parikh
58e61a083e
[Workchat] Hide disabled integrations when creating a new tool (#221306)
## Summary

![Screenshot 2025-05-22 at 1 33
11 PM](https://github.com/user-attachments/assets/f6e4c373-353c-4faa-b13a-004668fb2218)


### 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-05-23 09:33:33 -04:00
Kurt
7ee553e593
Upgrade openpgp to 5.11.3 (#221198)
## Summary

Upgrade `openpgp` from `5.10.1` to `5.11.3`

## Changelog
https://github.com/openpgpjs/openpgpjs/compare/v5.10.1..v5.11.3

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-23 09:22:40 -04:00
Kevin Delemme
9650da839f
chore(streams): add scout test for wired and classic stream (#220295) 2025-05-23 08:37:51 -04:00
Vadim Kibana
a4940f5a78
[ES|QL] Refactor parser factory module (#221245)
## Summary

- Cleans up the `parser.ts` module, where ES|QL ANTLR parser is
constructed.
- Create a distinct `Parser` class, which will hold all parsing related
logic.
- Removes some unnecessary imports and deprecates more imports.
- ANTLR parser and ANTLR lexer are now internal
- This sets up for removal of the `ESQLAstBuilderListener` class, which
seems to be completely unnecessary and actually counterproductive in our
parser. ANTLR has two CST traversal methods (listener and manual), this
listener class is used only to traverse the top level (commands), but
most of our parsing is then done using manual traversal. It is
inconsistent and actually bad, because this way we cannot support nested
sub-queries.

## New API

Create a parser:

```ts
const parser = Parser.create(src);
```

Parse ES|QL AST from src:

```ts
const { root } = Parser.parse(src);
```

Get parsing errors only:

```ts
const errors = Parser.parseErrors(src);
```
2025-05-23 13:31:53 +02:00
Sergi Massaneda
e1bbcc5c6b
[Security Solution][Navigation] Distinguish between unavailable and unauthorized (#220552)
## Summary

Implements different behaviour for unavailable vs unauthorised links.

### Challenge

In serverless, the application links implementation did not discriminate
between these 2 scenarios:

- **unavailable**: The link can not be accessed because it's not
available in the current payment plan (aka PLI scenario)
- **unauthorized**: The link can not be accessed because the user does
not have sufficient privileges (aka RBAC scenario)

This happened because, in serverless, both scenarios are checked via
`capabilities`, the behaviour for when the capabilities check did not
pass was delegated to the components, so we were always doing the same
fallback (show no privilege page or redirect to landing) for both
scenarios.

This is a problem for links that need to do different things in each
scenario.

### Proposal

The capability check is split to discriminate between both scenarios,
and a new computed property is introduced: `unavailable`.

Example with `securitySolutionAttackDiscovery` feature:

- When all conditions are met, PLI is enabled, and the user has the
right privileges, the capabilities are `true`:

![true](https://github.com/user-attachments/assets/5fc37b34-07e3-456c-a503-987d838d89ce)

- When we are in the RBAC scenario, where the user role does not have
the required privileges, the relevant capabilities are `false`:

![false](https://github.com/user-attachments/assets/f2352335-0105-4b3e-a79f-e1898b727a6d)

- In the disabled PLI scenario, the capabilities do not even exist,
because they were not registered in the Kibana feature privileges:

![missing](https://github.com/user-attachments/assets/e804e007-a7bf-4247-a254-58b378cc5409)


We can distinguish between these scenarios and act accordingly,
consistently across the app, without relying on each route component
decision (`redirectOnMissing` prop).

### Scenarios

- **Available and authorized**: 
  - left nav: shown
  - global search: shown
  - content: the page

Serverless

![ok_serverless](https://github.com/user-attachments/assets/2e5e8fe8-62cd-4512-807b-28f9743b4ac4)

Classic

![ok_classic](https://github.com/user-attachments/assets/824918bc-99d6-4851-8f5d-37da32b2c290)

- **Unauthorized**:
  - left nav: hidden
  - global search: hidden
- content: the generic _NoPrivilege_ page. Before this PR, we were
sometimes redirecting to the landing page (when using the
`redirectOnMissing` flag).

Serverless

![NoPrivilege_serverless](https://github.com/user-attachments/assets/3a0866d5-cee9-4ab5-b9be-7c299eaab06b)

Classic

![NoPrivilege_ess](https://github.com/user-attachments/assets/3e32bbec-7a9d-41b0-a376-d7c08be64a51)

- **Unavailable**: When the links needs a higher the payment plan
  - **With Upselling**: (same behaviour)
    - left nav: shown
    - global search: hidden
    - content: the registered upselling component

Serverless

![upselling_serverless](https://github.com/user-attachments/assets/db98ca03-0e2b-464b-9dac-750eaeee4981)

Classic

![upselling_ess](https://github.com/user-attachments/assets/3c9518da-9eaf-4e35-a9bc-439dc39953da)

  - **Without Upselling**:     
    - left nav: hidden
    - global search: hidden
- content: redirects to the landing page. Before this PR, we were
sometimes showing the _NoPrivilege_ page (when the `redirectOnMissing`
flag was missing).

Serverless

![no_upselling_serverless](https://github.com/user-attachments/assets/b73853ba-8a9c-4b5e-90a2-d76ca9ee5e6d)

Classic

![no_upselling_ess](https://github.com/user-attachments/assets/587b7562-9a5a-4903-992d-ad634ba8f83e)

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-23 12:10:33 +01:00
Elena Shostak
800340b0dc
[CodeQl] Added debug flag (#221345)
## Summary

Added debug flag for CodeQl action.
2025-05-23 10:02:45 +00:00
Rodney Norris
7caa0aff6c
[Search] Index Details - Search Example code (#219321)
## Summary

- Abstracted the search query generation code from `search_playground`
to `@kbn/search-queries` package.
- Updated the index details page to display a search code example for
indices that have data

### Screenshots
<img width="957" alt="image"
src="https://github.com/user-attachments/assets/e1be8c07-868b-44e8-9685-42564bb6ba44"
/>

### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[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
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-05-23 10:33:52 +02:00
Stratoula Kalafateli
94d188cfd9
[ES|QL] Suggests full text search in our recommendations (#221239)
## Summary

Suggests the full text search in our recommendations.

![image
(95)](https://github.com/user-attachments/assets/c8d3e2b7-93dc-417d-b49e-3be9a2d9f6f0)
<img alt="image"
src="https://github.com/user-attachments/assets/56eedc09-607e-4fda-aae1-1ce908a2426a"
/>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-23 10:04:41 +02:00
Panagiota Mitsopoulou
9533a15ff3
Linked dashboards in Rule and Alert pages (#219019)
Fixes https://github.com/elastic/kibana/issues/214522
Fixes https://github.com/elastic/kibana/issues/214523 


## 🧪  How to test
This PR includes the UI of:

1. `linking dashboards` in the `rule configuration` page/flyout in both
`Stack Management` and `o11y` rules pages
2. displaying the `Related dashboards` in the o11y `Alert details` page.

### Link dashboards 
#### o11y Rule Management
<img width="500" alt="Screenshot 2025-05-21 at 15 38 38"
src="https://github.com/user-attachments/assets/c1011c34-faa6-493b-864b-f94fd09f0217"
/>


#### Stack Management
<img width="500" alt="Screenshot 2025-05-21 at 16 37 09"
src="https://github.com/user-attachments/assets/e1a5c2db-b481-4884-beb4-5a4a72d79cbc"
/>



### Edit linked dashboards

#### o11y Edit Flyout
<img width="500" alt="Screenshot 2025-05-21 at 15 42 19"
src="https://github.com/user-attachments/assets/646359de-879c-4970-8d39-626103090765"
/>


#### Stack Management
<img width="500" alt="Screenshot 2025-05-21 at 16 35 03"
src="https://github.com/user-attachments/assets/433edcc7-23a5-44e9-9bf7-53add9e4e132"
/>



### Alert Details page & Related Dashboards
<img width="500" alt="Screenshot 2025-05-07 at 14 25 17"
src="https://github.com/user-attachments/assets/5afda303-30e4-42a6-85d0-5687cc75f560"
/>




## ✔️  Acceptance criteria
- user should be able to `link dashboards` during rule creation in both
Stack Management and `o11y` Rule pages
- user should be able to `update` the linked dashboards in both `Stack
Management` and `o11y` Rule pages
- user should be able to view the linked dashboards in a new `Related
dashboards` tab in the `Alert Details` page
- user should be able to go to the dashboard page when clicking on the
dashboard title

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-05-23 10:57:16 +03:00
Robert Stelmach
b412be2753
[One Discover] Pass app state and global state to locator when redirecting from /stream path (#215867)
Modified the /stream route and redirect handlers from Logs Explorer to
carry state parameters when redirecting between:

Logs Stream → Logs Explorer

Logs Stream → Discover

Logs Explorer → Discover

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-23 09:40:44 +02:00
Kibana Machine
d133c2f6b5
[api-docs] 2025-05-23 Daily api_docs build (#221328)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/1081
2025-05-23 08:36:00 +02:00
Nick Partridge
12b7429afe
[Theme] fix theme$ usage when used with useObservable (#220141)
## Summary

When using `theme$` with
[`useObservable`](ad33f76dff/src/useObservable.ts (L10-L21))
passing custom default `theme`, the resulting `theme` can be wrong.

Take for example this code...

```ts
import useObservable from 'react-use/lib/useObservable';

const theme = useObservable<CoreTheme>(kibanaTheme.theme$, {
  darkMode: false,
  name: 'amsterdam',
});
```

In such case `kibanaTheme.theme$` has the correct value but the
`useObservable` returns the default/initial value immediately, so the
default is always applied then updated, requiring 2 renderings just to
update to the correct theme.

The simplest approach to fix this is just to pass the
`kibanaTheme.getTheme()` as the default when using with `useObservable`.

```ts
const theme = useObservable<CoreTheme>(kibanaTheme.theme$, kibanaTheme.getTheme());
```

---

Ideally, in the future we have a commonly shared way to access the theme
in react via a `useKibanaTheme` hook or a better/more consistent API for
`useEuiTheme`.

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Edgar Santos <edgar.santos@elastic.co>
2025-05-22 13:54:15 -05:00
seanrathier
fdf3ef7ffc
[Cloud Security] Quick fix asset inventory documentation link duplication (#221291) 2025-05-22 20:24:25 +02:00
Ryland Herrick
ead964c5be
[Detection Engine] Prevent tests from being run twice from two test files (#220713)
## Summary

This moves shared test utilities to a separate file, because importing
them to another test file caused both files' tests to be run there. It
looks like there are a few more instances of this throughout kibana, but
for now this is the only one under our ownership.

### Checklist


- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
2025-05-22 18:43:48 +02:00
Steph Milovic
5623f654aa
[GenAI Connectors] Resolves missing dashboard link in edit tab (#221209) 2025-05-22 10:15:32 -06:00
Søren Louv-Jansen
d4d1753d66
Fix api test config descriptions (#221108)
The config description included "APM API" regardless of context.
2025-05-22 17:55:49 +02:00
Yngrid Coello
2ae2509eb1
[Dataset quality] Failure store privileges and enablement (#220874)
Closes https://github.com/elastic/logs-dev/issues/182.

## Summary
This PR aims to show to the user failed docs % in dataset quality table.
The following acceptance criteria items were resolved

### Dataset quality page
- [x] A banner showing missing permissions is shown, in the main page,
to users whenever they are missing failure store privileges over any of
their listed dataStreams.

### Dataset quality details page
- [x] A banner showing missing permissions is shown, in the dataset
details, to users whenever they are missing failure store privileges
over the specific dataStream.

_Note_: This PR has some pieces coming from
https://github.com/elastic/kibana/pull/207707 and
https://github.com/elastic/kibana/pull/208458.

## Demo 🎥 
### No failure store privileges


https://github.com/user-attachments/assets/2e298c61-2fd3-4325-9da2-919319fa769b

### Failure store privileges over some indices


https://github.com/user-attachments/assets/80b76cb0-5abc-462a-a1d3-274aada87747

### Failure store privileges over all indices


https://github.com/user-attachments/assets/ea2250b0-8bd1-498a-b3fc-3f2c09a1ed89

## Release notes
TBD.

---------

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-22 17:54:06 +02:00
Nathan Reese
a4652b630b
[controls] replace ControlStateManager with @kbn/presentation-publishing/state_manager (#220688)
replace ControlStateManager with
@kbn/presentation-publishing/state_manager

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-05-22 09:31:38 -06:00
Jatin Kathuria
bf642b0039
[Automatic Migrations] Siem migrations new endpoint (#219597)
## Summary

Resolves https://github.com/elastic/security-team/issues/12483

This PR changes REST API Endpoints scheme to align with
https://github.com/elastic/security-team/issues/12483. Below is the
summary of changes done.

### API Scheme changes

The REST API scheme has been changed to reflect
https://github.com/elastic/security-team/issues/12483. This is pretty
much self explanatory as defined in below openapi schema yaml :

-
[x-pack/solutions/security/plugins/security_solution/common/siem_migrations/model/api/rules/rule_migration.schema.yaml](https://github.com/elastic/kibana/pull/219597/files#diff-3025af9eca156f3308474e2b42808da1531423457b7791daf6660db95a53b978)

### Introduction of Delete Migration API

This PR also adds `DELETE` method on route
`/rules/siem_migrations/{migration_id}` for deleting a migrations.
Deleting a migration does below operations:

- Stops a migration if it is running
- Deletes the rules, resources related to migration and migration
document itself.

### File Reorganizations

Directly structure has been changed a little bit to reflect the
endpoint. There is a sub-directory called `rules` which deals with only
`rules` of the migration and the root directly only contains the
endpoints related to the migration.

#### Before

```
//siem_migrations/rules/api

├── create.ts
├── get.ts
├── start.ts
├── update.ts
├── 
├── 
├── 
```

#### After

```
//siem_migrations/rules/api


├── create.ts
├── delete.ts
├── get.ts
├── rules
│   ├── add.ts
│   ├── get.ts
│   └── update.ts
├── 
├── 
├── 
```

## Migration Strategy

### TL,DR; 
```mermaid
flowchart TD
    StartM[Start Migration] --> isMigExists{Does Migration Index Exists}
    isMigExists -->|Yes|FetchMDoc[Fetch Migration Docs]
    isMigExists -->|No|CreateMIndex[Create MigrationIndex]
    CreateMIndex --> FetchMDoc
    FetchMDoc --> FetchMRules[Fetch Migration Stats Rules index]
    FetchMRules --> FilterMigration{Filter Migration Docs not in Migration Index}
    FilterMigration --> |is Empty|END[END]
    FilterMigration --> |is Not Empty| CreateMDocs[Create Migration Docs]
    CreateMDocs --> END
```



At the time of merging this PR, the Migration indices can be in 3
states:

### There are migrations created after
https://github.com/elastic/kibana/pull/216164 and this means that there
are `some` migrations existing in
`.kibana-siem-migrations-migrations-<space_id>` and migrations created
before above mentioned PR will only exist in
`.kibana-siem-migrations-rules-<space_id>`.

In this case `migrateRuleMigrationIndex` will create migration in below
steps:

1. Look for **all** migration Documents in
`.kibana-siem-migrations-migrations-<space_id>`
2. Get **all** Migrations stats from
`.kibana-siem-migrations-rules-<space_id>` which includes below
properties
- migration_id : will help in reconciling the migration id in
.kibana-siem-migrations-migrations-<space_id>` index
    - created_at : Date on which migration_id was created.
    - created_by: User who created the migrations.
3. A new document with above migration will be added to
`.kibana-siem-migrations-migrations-<space_id>`.
4. Now both `.kibana-siem-migrations-migrations-<space_id>` and
`.kibana-siem-migrations-rules-<space_id>` will be in sync.

### Alternatively, there are no migration created after
https://github.com/elastic/kibana/pull/216164. In that case, there is a
possibility that `.kibana-siem-migrations-migrations-<space_id>`, will
not even exist.

In this case `migrateRuleMigrationIndex` will create migration in below
steps:

1. Create the `.kibana-siem-migrations-migrations-<space_id>` index.
2. Do steps mentioned in above scenario.

### Once the migrations has been run successfully, both
`.kibana-siem-migrations-migrations-<space_id>` index and
`.kibana-siem-migrations-rules-<space_id>` will be in sync.

1. In this case, migration will not run, since it tries to filter the
migrations by `id` which exist in
`kibana-siem-migrations-rules-<space_id>` but do not exist in
`kibana-siem-migrations-migrations-<space_id>`

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

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

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

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-22 17:23:17 +02:00
Drew Tate
a09b95d753
[ES|QL] better field/source lists (#220172)
## Summary

Close https://github.com/elastic/kibana/issues/214498

### FROM <sources>


https://github.com/user-attachments/assets/3df43e08-e9dc-42f9-a6f0-5facc5a04a37

- doesn't suggest an index twice (doesn't take into account index
patterns, though we could)
- works with quoted indices

### STATS ... BY


https://github.com/user-attachments/assets/086b098c-6104-47e9-838b-54618df2aee9

- `KEEP`-style list suggestion pattern

- fix ranges bug


https://github.com/user-attachments/assets/65ed3179-b378-4d4c-9f52-7e1604b9f28f


### LOOKUP JOIN ... ON



https://github.com/user-attachments/assets/ab09b83f-10b8-470c-a2c9-7862039f42a1


- support for "Invoke" trigger kind
- `KEEP`-style list suggestion pattern
- fix ranges bug

### 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>
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2025-05-22 09:10:55 -06:00
José Luis González
241e3ac407
[Search][Query Rules UI] Delete and edit ruleset actions (#220972)
## Summary

Adding ruleset actions:
- Edit (Takes you to the ruleset details page)
- Delete (Opens up a confirmation modal to delete the ruleset)
- Run in Console (Opens up the embedded console with a basic query
populating and applying your ruleset ID and the first index found
defined in the rules)



https://github.com/user-attachments/assets/ff844fca-6613-4162-8e57-4a7d620c992a


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

### Identify risks

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

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

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

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-05-22 10:07:39 -05:00
Michel Losier
6dade02305
Update AgentlessApiResponse to AgentlessApiDeploymentResponse type (#220926)
Resolves: https://github.com/elastic/security-team/issues/10094

- AgentlessApiResponse type is renamed to AgentlessApiDeploymentResponse
- AgentlessApiDeploymentResponse type matches the Agentless API's
/deployment endpoint response
- Unit tests mocks are adjusted to match the new response.
2025-05-22 08:01:40 -07:00
Drew Tate
933bff12a6
[ES|QL] fix suggestions after triple quote pair (#221200)
## Summary

fix https://github.com/elastic/kibana/issues/221073


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
2025-05-22 08:59:24 -06:00
Maryam Saeidi
3d86a175d7
Extend default log pattern on server-side to include error information (#219940)
## Release Notes
Kibana logging's pattern layout, used by default for the console
appender, will now use a new default pattern layout
`[%date][%level][%logger] %message %error`. This will include the error
name and stack trace if these were included in the log entry. To opt out
of this behavior users can omit the `%error` placeholder from their log
pattern config in kibana.yml e.g.:
```
logging:
  appenders:
    console:
      type: console
      layout:
        type: pattern
        pattern: "[%date][%level][%logger] %message"
```

## Summary

Previously, when we pass the error in meta, the information related to
stacktrace and error message was not available in console. This PR
changed the default pattern to also include error information if it is
provided in meta (similar to the way that the logging happens when error
is directly passed to logger.error).

New pattern: (added `%error` at the end)
```
[%date][%level][%logger] %message %error
```

Here you can see the difference:

Logger:

```
server.logger.error(
        `Unable to create Synthetics monitor ${monitorWithNamespace[ConfigKey.NAME]}`,
        { error: e }
      );
```

#### Before


![image](https://github.com/user-attachments/assets/4f3ff751-84d5-4b5b-b6a9-d49f868a9606)

#### After


![image](https://github.com/user-attachments/assets/e22b8e45-1b0a-4d8c-b51d-5dfb3938da4f)


### Alternative
We could also change the MetaConversion and include this information,
but we might have additional meta information which I am not sure if it
is OK to be logged by default. Let me know if you prefer changing
MetaConversion instead of adding a new error conversion.

<details>
<summary>Code changes for MetaConversion</summary>

```
function isError(x: any): x is Error {
  return x instanceof Error;
}

export const MetaConversion: Conversion = {
  pattern: /%meta/g,
  convert(record: LogRecord) {
    if (!record.meta) {
      return '';
    }
    const { error, ...rest } = record.meta;
    const metaString = Object.keys(rest).length !== 0 ? JSON.stringify(rest) : '';
    let errorString = '';

    if (isError(record.meta?.error)) {
      errorString = record.meta?.error.stack || '';
    }

    return [metaString, errorString].filter(Boolean).join(' ');
  },
};
```
</details>

Here is how adjusting meta will look like in this case:


![image](https://github.com/user-attachments/assets/d7dce9bc-7147-472d-b434-373322f41bbf)
2025-05-22 16:57:42 +02:00
Ersin Erdal
8ec7546a56
Upgrade Puppeteer to v24.8.1 (#220310)
This PR upgrades Puppeteer version to v24.8.1.

Below is a screenshot to successful download of the new version.

<img width="1543" alt="Screenshot 2025-05-07 at 14 31 23"
src="https://github.com/user-attachments/assets/e81d70ae-3df3-4371-ab4d-090fecf93d67"
/>


---

Tested on CI, PNG and PDF reports were successfully generated:
<img width="911" alt="Screenshot 2025-05-09 at 16 55 30"
src="https://github.com/user-attachments/assets/fa65cfe8-5af0-4114-bbb7-b324951e5d41"
/>

---

Tested on Windows in a VM. PNG and PDF reports were successfully
generated:

<img width="1129" alt="Screenshot 2025-05-21 at 20 28 40"
src="https://github.com/user-attachments/assets/9e3c16f2-03d6-4b00-a402-4d007bcd1685"
/>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-22 16:46:48 +02:00
Jon
aa6b42369f
[ci] Increase disk for capture_oas_snapshot (#221267) 2025-05-22 09:39:21 -05:00
Jon
6fc1e4a488
[ci] Increase base disk to 80gb (#221256) 2025-05-22 08:12:18 -05:00
Jonathan Budzenski
d46dbb7e53 Update plugin-list.md 2025-05-22 07:32:18 -05:00
Kibana Machine
c6ebe2848b skip failing test suite (#221220) 2025-05-22 14:24:50 +02:00
Kurt
5e80739097
Upgrading backport to v10 (#221183)
## Summary

Upgrading `backport` from `^9.6.6` to `10.0.0`

Changelog: https://github.com/sorenlouv/backport/releases

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-22 14:21:13 +02:00
Marco Vettorello
b7b5173a3b
[Theme] load correct system color mode at bootstrap (#218417)
## Summary

This PR fixes the theme bootstrap when the color mode is configured as
`system`.

It uses the `prefers-color-scheme: dark` media match to check if the
preferred color mode is dark or light and adjust the theme accordingly.

Before that PR, the `system` color mode caused kibana to bootstrap with
a light mode (even with a dark OS). Only a subsequent event/check will
update the `__kbnThemeTag__` to the correct theme. But at that point the
SCSS part of elastic-charts is already loaded with the default light
theme tokens (the chart theme is loaded from `src/core/public/index.ts`)

We can probably also find a way to load the chart theme in a subsequent
stage, when the theme is resolved elsewhere, but the general behaviour
is anyway buggy: we are loading the kibana application with a wrong
theme and only after loading more logic we then switch to the actual
theme and update the `__kbnThemeTag__` global.

fix https://github.com/elastic/kibana/issues/210951


To test the before/after:
- in `main` select the `system` color mode, switch to a Dark mode in
your OS, open Discover and apply a breakdown to the histogram: the
legend text is too dark and invisible
- open this pr, select `system` color mode and do the same steps, the
histogram legend will now shows correctly

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-05-22 12:34:17 +02:00
elastic-renovate-prod[bot]
803ce0b133
Update dependency @elastic/elasticsearch to v9.0.2 (main) (#221131)
Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2025-05-22 11:58:25 +02:00
Francesco Fagnani
0a838e4388
[Synthetics] Added task to sync global parameters when they are added, edited or deleted (#216015)
This will improve PR #216197.

A new task is created using the task manager every time a global
parameter is created, edited or deleted.

When params is updated/remove/added it will sync task soon, and task
also continue to run every 10 minutes.


### Execution

In the task we check if params have been changed since last run or param
total have changes since last run, in that case we sync private
locations data with package polices

## Testing

Add few browser synthetics monitors in a test private location

Add/Update or delete a param , make sure relevant agent policy is
updated with params. Go to fleet agent policy, view agent policy yaml
and notice params field for a browser monitor in yaml.

---------

Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2025-05-22 10:43:57 +02:00
Colleen McGinnis
fbda17de2d
[docs] Fix various syntax and rendering errors (#218883)
Fixes various syntax and rendering errors that might include:

* Fixing broken images
* Hardcoding book-level substitution values
* Fixing incorrectly closed blocks (admonitions, tab sets, code blocks,
dropdowns etc.)
* Fixing poorly migrated complex tables
* Fixing poorly migrated lists
* Fixing poorly migrated tab sets
* Removing inline text formatting from directive titles where they won't
be rendered (for example, inline `code` formatting in dropdown titles)
* Specifying if a version is trying to communicate if a feature was
added, deprecated, or coming (for example, during migration
`deprecated:[8.15.0]` became `[8.15.0]`, which doesn't give any
information about _what_ happened in 8.15.0)
* Note: I used an `{admonition}` for this, but you can change it to
prose or some other kind of admonition if you want.
* Fixing nested dropdowns / definition lists
* Fixing poorly migrated footnotes
* Updating references to prerelease `9.0.0` versions (using a repo-level
substitution until there is a solution to
https://github.com/elastic/docs-builder/issues/737)

Links to pages that were updated:

| Before | After |
|---|---|
| https://www.elastic.co/docs/extend/kibana/development-documentation |
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/extend/development-documentation
|
| https://www.elastic.co/docs/extend/kibana/development-security |
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/extend/development-security
|
| https://www.elastic.co/docs/extend/kibana/development-tests |
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/extend/development-tests
|
|
https://www.elastic.co/docs/extend/kibana/external-plugin-functional-tests
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/extend/external-plugin-functional-tests
|
| https://www.elastic.co/docs/extend/kibana/external-plugin-localization
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/extend/external-plugin-localization
|
| https://www.elastic.co/docs/extend/kibana/interpreting-ci-failures |
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/extend/interpreting-ci-failures
|
| https://www.elastic.co/docs/extend/kibana/plugin-list |
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/extend/plugin-list
|
| https://www.elastic.co/docs/extend/kibana/sample-data |
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/extend/sample-data
|
| https://www.elastic.co/docs/extend/kibana/saved-objects-service |
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/extend/saved-objects-service
|
| https://www.elastic.co/docs/extend/kibana/sharing-saved-objects |
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/extend/sharing-saved-objects
|
| https://www.elastic.co/docs/extend/kibana/stability |
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/extend/stability
|
| https://www.elastic.co/docs/reference/kibana/advanced-settings |
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/advanced-settings
|
|
https://www.elastic.co/docs/reference/kibana/configuration-reference/ai-assistant-settings
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/configuration-reference/ai-assistant-settings
|
|
https://www.elastic.co/docs/reference/kibana/configuration-reference/fleet-settings
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/configuration-reference/fleet-settings
|
|
https://www.elastic.co/docs/reference/kibana/configuration-reference/general-settings
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/configuration-reference/general-settings
|
|
https://www.elastic.co/docs/reference/kibana/configuration-reference/monitoring-settings
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/configuration-reference/monitoring-settings
|
|
https://www.elastic.co/docs/reference/kibana/configuration-reference/reporting-settings
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/configuration-reference/reporting-settings
|
|
https://www.elastic.co/docs/reference/kibana/configuration-reference/task-manager-settings
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/configuration-reference/task-manager-settings
|
|
https://www.elastic.co/docs/reference/kibana/connectors-kibana/cases-webhook-action-type
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/connectors-kibana/cases-webhook-action-type
|
|
https://www.elastic.co/docs/reference/kibana/connectors-kibana/email-action-type
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/connectors-kibana/email-action-type
|
|
https://www.elastic.co/docs/reference/kibana/connectors-kibana/pre-configured-connectors
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/connectors-kibana/pre-configured-connectors
|
|
https://www.elastic.co/docs/reference/kibana/connectors-kibana/servicenow-action-type
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/connectors-kibana/servicenow-action-type
|
|
https://www.elastic.co/docs/reference/kibana/connectors-kibana/servicenow-itom-action-type
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/connectors-kibana/servicenow-itom-action-type
|
|
https://www.elastic.co/docs/reference/kibana/connectors-kibana/servicenow-sir-action-type
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/connectors-kibana/servicenow-sir-action-type
|
|
https://www.elastic.co/docs/reference/kibana/connectors-kibana/thehive-action-type
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/connectors-kibana/thehive-action-type
|
|
https://www.elastic.co/docs/reference/kibana/connectors-kibana/webhook-action-type
|
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/connectors-kibana/webhook-action-type
|
| https://www.elastic.co/docs/reference/kibana/kibana-audit-events |
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/kibana-audit-events
|
| https://www.elastic.co/docs/reference/kibana/kibana-plugins |
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/reference/kibana-plugins
|
| https://www.elastic.co/docs/release-kibana/notes/index |
https://docs-v3-preview.elastic.dev/elastic/kibana/pull/218883/release-notes/index
|

---------

Co-authored-by: wajihaparvez <wajiha.parvez@elastic.co>
2025-05-22 10:10:07 +02:00
Eyo O. Eyo
29ef2029cb
[Reporting] extend chromium build Github action to support "contributor" author assoc (#220929)
## Summary

Sorry for the noise, operation!!

This PR includes the `CONTRIBUTOR` author association for the enablement
trigger for the trigger chromium build Github action to resolve the
issue with the action being skipped when it should not be
[see](1511864734). I'd
previously thought `MEMBER` was the way to go, and then `COLLABORATOR`
but on digging into the event Github sent for issue related events for
my user, I see that my author association is `CONTRIBUTOR` [see
here](1771883830),
making this change ensures that only users within the elastic
organisation are able to kick off this action.

In this PR also `jq` is leveraged to compact the json we expect in place
of `sed`.

## Testing

- install the [github local
actions](https://sanjulaganepola.github.io/github-local-actions-docs/)
vscode extension
- copy the response from the linked api response, and save it's contents
as your payload.json file
- start the Github action, we'd see that the action is no logger skipped
and we are able to kick off the build.

<!--
### 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-05-22 08:03:47 +00:00
Kenneth Kreindler
56f5a53089
[Security Solution] [AI assistant] Security labs citations link to https://www.elastic.co/security-labs instead of knowledge base (#220668)
## Summary

Summarize your PR. If it involves visual changes include a screenshot or
gif.

This PR improves citations for the security labs content. Instead of
just opening
app/management/kibana/securityAiAssistantManagement?tab=knowledge_base,
citations now link to `https://www.elastic.co/security-labs/<slug>`

<img width="1726" alt="image"
src="https://github.com/user-attachments/assets/f77d7b09-e287-4246-8931-431eba5226ca"
/>


### How to test
- Start Kibana
- Load the knowledge base with security labs content
(http://localhost:5601/app/management/kibana/securityAiAssistantManagement?tab=knowledge_base)
- Wait for the security labs content to finish loading
- Open the security AI assistant
- Ask the following `Tell me what is in the security labs content`
- In the response, there should be a citation `[1]`
- Click on the citation link, and
`https://www.elastic.co/security-labs/<article>` should open in a new
tab.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

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

### Identify risks

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

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

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-05-22 09:42:37 +02:00
Joey F. Poon
1b2f09c8f0
[Security Solutions] fix defend insights evaluations (#221112)
## Summary

Fixes an issue where defend insights evaluations always returned no
insights resulting in a score of 0.

The `anonymizedEvents` key was renamed to `anonymizedDocuments` in [this
PR](https://github.com/elastic/kibana/pull/216757). The relevant
datasets have already been updated in langsmith.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
2025-05-22 16:32:51 +09:00
Sid
ce1d898474
[Sessions][Chore] Update log levels for multiple sessions (#221184)
## Summary

Follow up from https://github.com/elastic/kibana/pull/220430. Changes
the log level for the unexpected case to be errors.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
2025-05-22 09:32:19 +02:00
Elena Shostak
c3a26c32e5
[Authz] Cleanup of access tags functionality and documentation (#220231)
## Summary

Mandatory security config has been added in
https://github.com/elastic/kibana/pull/215180. This PR cleans up access
tags functionality, documentation and migration eslint rule
`no_deprecated_authz_config` that is no longer needed.


### Checklist
- [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
2025-05-22 08:45:17 +02:00
Tiago Costa
ddb98d3656
skip flaky suite (#220281) 2025-05-22 02:48:37 +01:00
Tiago Costa
a7bd820962
skip flaky suite (#220578) 2025-05-22 02:47:26 +01:00
Viduni Wickramarachchi
b1e7012477
[Obs AI Assistant] Check for documents before starting semantic text migration (#221152)
Closes https://github.com/elastic/kibana/issues/221157

## Summary

We run a semantic text migration at startup to add the semantic text
field to documents that were created before 8.17.

Before multilingual KB was introduced:
- We created index assets for KB when the AI Assistant flyout opens.
- Even if the user does not set up the KB, they will have a component
template pointing to the custom inference endpoint.

With the introduction of multilingual KB:
- We moved some of the index creation to when setting up the KB. 
- We try to do the semantic_text migration at startup. During this
migration, for users who didn't set up the KB but had the index assets
created at startup, the custom inference endpoint will be unavailable.
- But since the migration uses the inference endpoint from the write
index, we try to access an endpoint that's not available.

This is the reason for this error to be logged.
```
Inference endpoint "obs_ai_assistant_kb_inference" not found or unavailable: resource_not_found_exception
	Root causes:
		resource_not_found_exception: Inference endpoint not found [obs_ai_assistant_kb_inference]
```

There is no customer impact from this, just that the error that gets
logged is creating a lot of noise.

## Solution

This PR checks whether there are documents without semantic_text before
starting the migration.
And also reduced the log level to warn because we hit the `/status`
endpoint once when a user opens the AI Assistant.


### 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-05-21 17:18:06 -04:00
Ievgen Sorokopud
f922bec80a
[Security Solution] Move security specific configs into the serverless.security.yml (#221121)
## Summary

This is a followup to https://github.com/elastic/kibana/pull/220675
where we added a new `xpack.alerting.rules.run.ruleTypeOverrides` inside
the `serverless.security.yml`.

After some investigation we realized that it overrides the same config
declared in the root `serverless.yml` file. Since the root file contains
the overrides for the security specific configs, we decided to move
those into the `serverless.security.yml`.

More details in [internal
discussion](https://elastic.slack.com/archives/C5TQ33ND8/p1747748907000299).
2025-05-21 22:37:14 +02:00
Viduni Wickramarachchi
6fb97d84aa
Change the AI Connector description (#221154)
## Summary

Change the AI Connector description to `Send requests to AI providers
such as Amazon Bedrock, OpenAI and more.`

### 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-05-21 15:58:38 -04:00
Shahzad
560bde2edf
[Synthetics] Hide private location saved objects from management UI !! (#221160)
## Summary

Hide private location saved objects from management UI to prevent
accidental deletion !!
2025-05-21 21:52:25 +02:00