Commit graph

69601 commits

Author SHA1 Message Date
Saarika Bhasi
7ed75c5549
[Serverless Search] Create default data view when serverless_search plugin starts (#170343)
## Summary

This PR, creates default data view : `default:all-data` with index
Pattern `*` during the startup of `serverless_search` plugin

## Screen Recording


997f46b4-4cf8-4f64-8fbd-d84c0f7bd644

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-16 10:50:13 -05:00
Wafaa Nasr
2b136a2d77
[Security Solution][API testing] Move and restructures Rule execution logic (#170765)
## Summary

Following the initial work in this
https://github.com/elastic/kibana/pull/166755
 
- Addresses part of https://github.com/elastic/kibana/issues/151902 for
rule execution logic

- Moved the utility files associated with rule execution logic to the
new directory `security_solution_api_integration`. Files not actively
used in the previous folder were moved, while duplicate files remained
in their original positions.
- Updated the CodeOwner file for the newly moved tests

- Old/new group details, decisions, and execution time are mentioned in
this[document](https://docs.google.com/document/d/1CRFfDWMzw3ob03euWIvT4-IoiLXjoiPWI8mTBqP4Zks/edit)
- Added new `Alert` archive for version `8.8.0`

- Resolved the issue with the `query.ts` test where the execution logic
is executed last, encompassing the "query" test because it was unloading
the alerts document and led to failures in subsequent tests.

- For `Alert As Data` in **Serverless** the alert ancestor will be a
data-stream however in **ESS** will be
`.internal.alerts-security.alerts-default-000001'`


| Action | File | New Path if moved |
|--------|------|----------|
| Delete| security_and_spaces/rule_execution_logic| - |
| Delete|security_and_spaces/group5  | - |
|
Move|detection_engine_api_integration/security_and_spaces/group5|detections_response/default_license/rule_execution_logic/keyword_family|
|
Move|detection_engine_api_integration/security_and_spaces/rule_execution_logic|
detections_response/default_license/rule_execution_logic/execution_logic
|
| Move
|detection_engine_api_integration/security_and_spaces/group1/ignore_fields|
detections_response/default_license/rule_execution_logic/ignore_fields.ts|
|
Move|detection_engine_api_integration/security_and_spaces/group1/runtime|
detections_response/default_license/rule_execution_logic/runtime.ts |
|
Move|detection_engine_api_integration/security_and_spaces/group1/timestamps|
detections_response/default_license/rule_execution_logic/timestamps.ts|

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-16 16:14:02 +01:00
Pierre Gayvallet
c713b91e66
[HTTP] Add server/browser side http.staticAssets service (#171003)
## Summary

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

### 1. Introduce the `http.staticAssets` service

Which can be used to generate hrefs to Kibana's static assets in a
CDN-friendly way (based on the CDN url if defined in the config, and the
Kibana's basePath otherwise)

The service is exposed both on the browser and server-side.

For now a single API is exposed: `getPluginAssetHref`

```ts
// returns "/plugins/{pluginId}/assets/some_folder/asset.png" when CDN isn't configured
core.http.statisAssets.getPluginAssetHref('some_folder/asset.png');
```

### 2. Plug it on some of the `home` plugin assets

Adapt the sample data sets and tutorial schemas to use the service for
links to the associated assets

## How to test

#### 1. Edit`/etc/hosts`

add a line `127.0.0.1       local.cdn`

#### 2. Edit `kibana.yaml`

Add `server.cdn.url: "http://local.cdn:5601"`

#### 3. Boot kibana and navigate to sample data set installation

(if started in dev mode, use `--no-base-path`)

Confirm that the sample data set presentation images are pointing to the
CDN url and properly displayed:

<img width="1565" alt="Screenshot 2023-11-13 at 09 28 51"
src="23a887af-00cb-400c-9ab1-511ba463495f">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-16 08:13:00 -07:00
Gerard Soldevila
82d05036ac
Stop preboot plugins only once on stop() (#171170)
## Summary

When running `setup()` followed by `stop()`, the preboot plugins can ATM
be stopped multiple times.
2023-11-16 14:44:58 +01:00
Achyut Jhunjhunwala
db5176b17a
[Log Explorer] Add support for log generation in synthtrace (#170107)
Closes - https://github.com/elastic/kibana/issues/170133

## Summary

This PR adds support for generating logs using the Synthtrace Client

Changes include

1. Changes to Synthtrace package to support new Logs Client and Log
Class for helper methods
2. [Stateful Tests] - Change to our FTR Context config to inject the new
the Log Synthtrace Client
3. [Serverless Tests] - Injected Synthtrace as a service for serverless
tests.
4. A sample test added to `app.ts` to demonstrate how Synthtrace can be
used to generate Log data in both Stateful and Serverless
5. Add support to generate logs via CLI. 2 scenarios added -
`simple_logs.ts` and `logs_and_metrics.ts`

```
# Live Data
node scripts/synthtrace simple_logs.ts --clean --live

# Static Data
node scripts/synthtrace simple_logs.ts --clean
```

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
Co-authored-by: Yngrid Coello <yngrdyn@gmail.com>
2023-11-16 14:00:33 +01:00
Brandon Kobel
0916894657
Changing timeout for threat indicator match rule to 10 minutes (#171254)
Per https://github.com/elastic/security-team/issues/7803, the security
solution team would like to increase the timeout for the threat
indicator match rule to 10 minutes. They're experiencing timeouts with
the 1 minute circuit breaker and are comfortable with the trade-offs
this will have.
2023-11-16 07:59:58 -05:00
Ido Cohen
feca84f9eb
[Cloud Security] Configure Transforms to auto-retry on failure (#171094) 2023-11-16 14:03:08 +02:00
Faisal Kanout
7356d85aa3
[AO][SERVERLESS] Use Lens as the Custom Threshold rule preview chart (#169007)
## Summary
Fixes #166851
It uses the Lens Visualisation to show the preview chart. 

## ⚙️ TBD
- Equation 
- Better loading and empty state handling 
- Add timestamp + the bucket size 
- Add more space to the Y-axis to see the Threshold line 
- Add more time range when the rule time range is small 

## 🧪 Covered and tested use cases 

### Adding lookback time and make the interval of Lens as the rule time
size


255b6724-c81f-4b5b-8941-22ff7827dd95

### No data
<img width="616" alt="Screenshot 2023-11-03 at 10 04 30"
src="5bcb93df-afa9-4449-98f6-3235bf1c7fcd">


### No data (out of time range)
<img width="583" alt="No data (out of time range)"
src="2f6ba4a8-1837-462b-bd3c-c14a7cbfc934">

### Data with above threshold
<img width="593" alt="data with above threshold "
src="ccf53fc2-acc3-412f-b906-680daf4c8f48">

### Data within between threshold
<img width="596" alt="data with in between threshold"
src="90bdd4bb-fb16-4754-8c09-1eed1c69f3f1">

### Data with below threshold
<img width="593" alt="data with below threshold"
src="ea48ece1-30b8-4c56-9c3b-3a6443edb75a">

### Data within not in between threshold
<img width="592" alt="data with in not in between threshold"
src="5e938855-2433-4dac-9470-627f2ff7925f">

### Data with query filter
<img width="587" alt="data with filter"
src="1b6b9ea3-1d91-4bf0-be2d-67a091cbac7c">

### Data with Doc count + fliter
<img width="595" alt="data with Doc count + fliter"
src="a6a577d9-e3c3-46f0-bc25-5aa56a21b2f5">

### Data with Doc count without filter
<img width="590" alt="Doc count without filter"
src="6dd21cba-2f44-47dc-ab9a-fdfc19127498">

### Data with group by
<img width="580" alt="group by"
src="fd7b8763-1a2e-43a0-8097-61e4154f5399">

### Data with cardinality
<img width="573" alt="cardinality"
src="4bd28a54-9ebe-4044-bfc3-7a62a4f31e08">

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-11-16 12:57:08 +01:00
Gerard Soldevila
fd4fdb01bc
Use EuiIconTip instead of EuiToolTip + EuiIcon (#171273)
## Summary

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

Using the component suggested by EUI team effectively makes the icon
focusable with the keyboard.
I verified that the tooltip appears automatically when focussing it:

<img width="372" alt="image"
src="c4c91a2a-f045-4f77-870d-9a1132c8dbee">
2023-11-16 11:40:07 +01:00
Antonio
5557348e53
[Cases] Table toggle columns (#170950)
Fixes https://github.com/elastic/kibana/issues/167617

## Summary

This PR is to merge the feature branch into `main`.

The code was already reviewed in:
- https://github.com/elastic/kibana/pull/170684
- https://github.com/elastic/kibana/pull/169543

## Flaky Test Runner

https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3975
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3996

### TODO

Functionality wise this is complete. There are still a couple of UI
leftovers to which I will create a PR in main.

These leftovers are:
- Disable hide all/show all during search 
- Touch up the fixed width of some columns 
- Check if the drag and drop `eui` component supports scrolling by
default

## Release Notes

Allow users to configure which columns are displayed in the cases list
including custom fields.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-16 03:15:50 -07:00
Jill Guyonnet
01ab7ea6c9
[Fleet] Prevent agent upgrade requests when already upgrading (#170963)
## Summary

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

Prevent upgrading an agent if it is already upgrading.

Agents that report upgrade details are considered as upgrading when the
`upgrade_details` field exists and is not equal to `UPG_FAILED` (cf.
[this
comment](https://github.com/elastic/kibana/issues/168171#issuecomment-1788409967)).

Agents that do _not_ report upgrade details are considered as upgrading
when the `upgrade_started_at` field is set and the `upgraded_at` field
is not. NB: this is existing behaviour, this PR does not change this
logic.

### Checklist

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

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-11-16 11:12:55 +01:00
Walter Rafelsberger
19e6a4ba06
[ML] Transforms: Refactor routes into individual files (#171201)
Most transform API routes were set up in a single file, this PR splits
up the routes into individual files.
No inner logic of any routes changed, just some types and constants were
also moved around and a bit improved as part of the refactor.
2023-11-16 10:35:06 +01:00
Gloria Hornero
b47c793328
[Security Solution] [Serverless] Integrates Cypress in visual mode with QA environment (#171107) 2023-11-16 10:05:16 +01:00
Julia Rechkunova
57b5546da6
[Discover] Address issue with defaultColumns when changing data views (#168994)
- Closes https://github.com/elastic/kibana/issues/168581

## Summary

This PR re-adds default columns when changing data views. Only columns
which are present in the data view will be re-added.

For testing: configure some fields for `defaultColumns` on Advanced
Settings page and test switching data views on Discover page.


### 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] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
2023-11-16 10:04:06 +01:00
Ahmad Bamieh
96ff9a96bd
[Core][Usage Collector] Saved objects usage collection to not include hidden types (#171189) 2023-11-16 11:53:29 +03:00
Ash
232c1ca6ff
[Security Solution][Endpoint] Fix and unskip flaky process tests (#171319)
## Summary

Fixes and unskips flaky endpoint cypress tests.

**Flaky runner** 
-
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4006
x 50 (all green)


### 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
2023-11-16 09:06:49 +01:00
Kevin Qualters
ae539cead1
[Security Solution] [Analyze Event] Make analyze event nodes have stable ids (#171372)
## Summary

During a quick glance to see if the unified fields table/list usage in
timeline were introducing any performance issues, I noticed 2 small
issues that I wanted to fix separately. The first is the ids generated
on the front end and used for different aria-* attributes are not stable
like they should be, and instead change every render. Now they are
generated only once when the node appears on screen, more in line with
how MDN says they should be used.
Before:

![resolver_node_ids_bad](287363cc-c5a7-46e1-8f6b-9dceea829005)
After:

![resolver_node_ids_fixed](671f059b-4fcd-4a99-8df4-a77b86f35e61)

Another component that was needlessly re-rendering on every single
security app redux store change was the alert_context_menu, due to the
"selectors" used to get the global/timeline queries for refetching data
in the different context menu actions being not really selectors at all,
and would instead return a new object every single time. This removes
the react-redux connect method for hooks, and makes the not really a
selector function not change constantly. A lot of our reselect usage
should be overhauled and verified for correctness at some point, but
this is a small improvement. In the gifs above, each mouse movement
fires an event that changes a value in the analyzer part of the store
that tracks mouse position, and the alert context menu component,
including in the underlying alerts table cells if a user is on that
page, would re-render on every single 'onmousemove' event, after this pr
it no longer does.
2023-11-16 01:24:13 -05:00
Kibana Machine
a16bf7586c
[api-docs] 2023-11-16 Daily api_docs build (#171374)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/523
2023-11-16 00:56:09 -05:00
Walter Rafelsberger
1a3ade703c
[ML] AIOps: Log rate analysis route refactor (#169660)
This refactors the route handler of the log rate analysis API endpoint.
So far this route handler contained a lot of logic and was growing past
900+ lines with every new feature we worked on. This PR changes it so
the route handler can walk through the analysis steps on a higher level.

`define_route.ts:defineRoute()` is the outer most wrapper that's used to
define the route and its versions. It calls
`route_handler_factory:routeHandlerFactory()` for each version.

The route handler sets up
`response_stream_factory:responseStreamFactory()` to create the response
stream and then walks through the steps of the analysis.

The response stream factory acts as a wrapper to set up the stream
itself, the stream state (for example to set if it's running etc.), some
custom actions on the stream as well as analysis handlers that fetch
data from ES and pass it on to the stream.
2023-11-16 06:49:42 +01:00
Kevin Delemme
af1ad47341
feat(slo): add reset api (#170473) 2023-11-15 20:27:21 -05:00
christineweng
7933182e74
[Security Solution] Expandable flyout - header improvements (#171261)
## Summary

This PR is a follow up of the [panel header
refactor](https://github.com/elastic/kibana/pull/170279):
- Fixed a visual bug when the pop out icon misaligns with the title when
browsing in Firefox
- Extracted the title to `HeaderTitle` component that handles when the
title is/is not a link

Header in Firefox

![image](65c590c3-8824-421b-8538-a03635c7033f)

### 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]
[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] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
2023-11-15 15:55:07 -06:00
Philippe Oberti
d0e9c7b3fd
[Security Solution] update codeowners for the expandable-flyout related folders (#171257) 2023-11-15 15:18:47 -06:00
Chris Cowan
089dd18a35
[SLO] Use enrich policy to add SLO details to summary (#169993)
## 🍒 Summary

This is a PR for #169728, it refactors the transforms to use an enrich
policy to inject fields from the SLO definition in the ingest pipeline
for both the SLI and summary indices. I also added the `event.ingested`
field to the SLI data to see how that would work with the summary
transform.

### 🐰 Prerequisites

https://github.com/elastic/elasticsearch/pull/101682

Fixes #169956
Fixes #166687
Fixes #166955
Fixes #169728

---------

Co-authored-by: Kevin Delemme <kevin.delemme@elastic.co>
2023-11-15 14:09:39 -07:00
Tiago Costa
46322cee6d
skip flaky suite (#163203) 2023-11-15 20:38:47 +00:00
Jan Monschke
7e90759308
[Security Solution] Fix flaky timeline state tests (#171303)
## Summary

Fixes the flaky timeline state tests that were reported in
https://github.com/elastic/kibana/issues/170691.

[Flaky test runner
results](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4001)
for reference. (passed in 100 iterations of each ESS and serverless)


### 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
2023-11-15 13:11:16 -07:00
Bhavya RM
c3006ebc9c
Update axe-core to the latest version - 4.8.2 (#171055)
Updating axe-core validation engine to 4.8.2
2023-11-15 15:08:35 -05:00
Jiawei Wu
fbb232815b
[RAM][Bug] Fix bug preventing filters from being added to conditional actions (#171048)
## Summary
Resolves: https://github.com/elastic/kibana/issues/171036

Fixes a bug where the schema name for the conditional action filter
`$state` was incorrectly name. This prevented the user from adding
filters to conditional actions as the schema validation would reject the
request.

### To verify the fix:

1. Create a rule
2. Add a conditional action
3. Assert that filters can be added to the rule
4. Rule is saved
5. Repeat 1 - 4 but this time, update the rule. 

### 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: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-11-15 11:38:50 -08:00
Brad White
d09e47abbc Revert "Add mock identity provider for serverless (#170852)"
This reverts commit 1fb0313a52.
2023-11-15 12:20:16 -07:00
Konrad Szwarc
65ebb69a9f
[EDR Workflows] Protection updates copy change (#171318)
Changed copy as per request.

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

![Screenshot 2023-11-15 at 16 42
34](e2c20349-07c5-4785-848e-30201cb8b616)
2023-11-15 12:07:44 -07:00
Nicolas Chaulet
9626900d5e
[Fleet] Fix reinstalling bundled package during setup (#171321) 2023-11-15 14:04:12 -05:00
mohamedhamed-ahmed
9686d57daa
[Logs UI] Fix Failing test (#171283)
## Summary

closes https://github.com/elastic/kibana/issues/171126
2023-11-15 19:46:21 +01:00
Pierre Gayvallet
3d6ac9d46a
[json layout] use json representation of meta when available (#171310)
## Summary

Use the json representation (`toJSON`) of the log's `meta` when merging
the message and the meta, if possible.
2023-11-15 19:27:52 +01:00
Ersin Erdal
2c253bf980
Distinguish error types in Task Manager (#170981)
Resolves: #168633

This PR implements the Task Manager part of the [Distinguish Error Types
Research](https://github.com/elastic/kibana/pull/169306)
2023-11-15 19:13:56 +01:00
christineweng
09e23e51c5
[Security Solution] Expandable flyout - add back chat button to alerts flyout (#171262)
## Summary

This PR adds back the chat button to the expandable flyout. Updated
design to be icon only


![image](e56b0ffc-9f51-423c-8072-61cb3839d9a3)


### 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
2023-11-15 12:02:02 -06:00
Rickyanto Ang
dcd8687a60
[Quick Wins][Cloud Security] Update Confirm Agent Enrollment waiting message for CSP integrations (#170995)
## Summary

This PR is part of Quick Wins
This PR updates the message on Confirm Agent Enrollment sections for CSP
integrations.
When Adding Integrations for CSP, instead of getting 'Listening for
agent...' User will see 'Listening for agent... this can take several
minutes'

CSP
<img width="1427" alt="Screenshot 2023-11-09 at 3 54 56 PM"
src="cf7cb24c-c03e-4bd1-bff7-58682b46fb0e">

Non-CSP
<img width="1538" alt="Screenshot 2023-11-09 at 3 56 16 PM"
src="a941000e-74b6-4bea-9456-4c86ed23730c">
2023-11-15 09:50:45 -08:00
Rachel Shen
4a0b967e38
Reporting packages for export types (#162845)
## Summary
This PR refactors the export type classes into their own packages to be
then instantiated in the reporting plugin. This will reduce bloat in the
central reporting plugin.

**Main packages**
- `kbn/reporting-export-types-{png,pdf,csv}` are server packages with
export type declarations
- `kbn/reporting-export-types-{png,pdf,csv}-common` are shared common
packages with type declarations and constants

**Other changes**
 - Remove `reporting.getScreenshots()`
 - Remove duplicated `schema_utils.ts`
 - Consolidate `JOB_STATUS` declaration as an enum

<img width="1063" alt="image"
src="bced8321-93c5-4ebd-b31e-1fd946166241">

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Timothy Sullivan <tsullivan@elastic.co>
2023-11-15 10:48:00 -07:00
James Rodewig
0c4d3cc762
[DOCS] Update 8.11.1 security advisory (#171331) 2023-11-15 12:42:32 -05:00
Shahzad
b356231d02
[Synthetics] Advanced fields broken for icmp monitors (#171161) 2023-11-15 18:12:15 +01:00
Konrad Szwarc
733c06d798
[EDR Workflows] Rework agent list fetch (#170849)
This PR enhances Fleet's `getAllAgents` service by adding the capability
to pass aggregation parameters. With this improvement, we can eliminate
the need for the search strategy, which was originally used solely for
this purpose. Instead, we can rely on the mentioned Fleet service for
aggregation.

Furthermore, we have now restricted the selection of agents to those
that are online, and we have excluded status: offline from the
aggregation of policies and platforms in the search box.

Closes https://github.com/elastic/security-team/issues/7860
Closes https://github.com/elastic/kibana/issues/166034
2023-11-15 10:09:58 -07:00
Adam Demjen
07bb1fee32
[Enterprise Search] Set run ML inference default setting to true (#171204)
## Summary

The ML inference pipelines setting will now default to true. Note the
value comes from Elasticsearch, so this object is most likely ignored.

![Screenshot 2023-11-15 at 09 54
52](9feccf00-b70d-40e0-b64d-dbb712e9630c)
2023-11-15 12:06:51 -05:00
Tiago Costa
a39bfd0794
skip flaky suite (#171252) 2023-11-15 16:28:54 +00:00
Tiago Costa
545597fdbb
skip flaky suite (#158484) 2023-11-15 16:27:49 +00:00
Pierre Gayvallet
11eb73ee1d
Add custom inspect representation for ES client's errors (#171304)
Follow-up of #171018
2023-11-15 17:20:45 +01:00
Nicolas Chaulet
74a5fba318
[Fleet] Display owner type in package details (#171239) 2023-11-15 11:14:01 -05:00
Tomasz Ciecierski
1ecb6ba073
[EDR Workflows] Osquery Package Policy test fix (#171305) 2023-11-15 17:13:19 +01:00
Elena Stoeva
27bc658fd0
[Snapshot Restore] Increase sleep time in snapshot restore test (#171218)
## Summary

While running the Snapshot restore test locally, I noticed that
sometimes it fails because the created test snapshot is still loading at
the time when the web driver tries to click the "Restore" button, so I'm
increasing the sleep time a bit to make sure we allow enough time for
the snapshot to be ready and to future-proof the test against flakiness.

Flaky test runner build:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3982
2023-11-15 15:24:32 +00:00
Aleksandr Maus
ab7ebabbb4
Osquery: Update exported fields reference for osquery 5.10.2 (#171147)
## Summary

Update exported fields reference for osquery 5.10.2.

## Related PR

- Requires https://github.com/elastic/beats/pull/37115
- Requires https://github.com/elastic/integrations/pull/8488
2023-11-15 10:22:36 -05:00
Konrad Szwarc
12a09b8aba
[EDR Workflows] Limit Live Query look back (#171207)
closes https://github.com/elastic/kibana/issues/169666

Add additional filtering of action results by specifying time range.
2023-11-15 07:47:47 -07:00
Marta Bondyra
362ef64751
[Lens] [Unified Search] Fix field truncation on Combo boxes (#170889)
## Summary

Fixes 3/5 of https://github.com/elastic/kibana/issues/168753
Doesn't set up multilines. Doesn't remove auto-expanding logic. Middle
truncates.

(Unified Search) Field selector
<img width="984" alt="Screenshot 2023-11-13 at 11 30 20"
src="9acb6462-3205-4e5c-81bd-c3ae10c8323b">

(Unified Search) Value selector: 
<img width="972" alt="Screenshot 2023-11-13 at 11 30 30"
src="e58b09de-d582-431f-bbd6-97b7c5bd38de">


(Lens) Field picker within layer config: 
<img width="346" alt="Screenshot 2023-11-09 at 14 44 58"
src="4ecb0ea5-bb01-49e3-a54f-4c8c5884c418">

Also fixes tiny stylistic issue for dataview picker label cut on the
bottom:
<img width="368" alt="Screenshot 2023-11-09 at 15 06 38"
src="b9ae6956-c1ef-481e-905d-71ffe5e5545a">
<img width="386" alt="Screenshot 2023-11-09 at 15 07 08"
src="5d49ed7a-e8f2-40c1-ac53-a3580b82740e">
2023-11-15 15:36:08 +01:00
Yulia Čech
29853c79f3
[Console] Skip flaky test (#171277)
## Summary

Skips flaky test 
https://github.com/elastic/kibana/issues/171259 


### Checklist

Delete any items that are not applicable to this PR.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] 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 renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces&mdash;unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes&mdash;Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |


### For maintainers

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