Commit graph

67408 commits

Author SHA1 Message Date
Kibana Machine
30e2f2d459 skip failing test suite (#166900) 2023-09-21 15:05:27 -04:00
Jiawei Wu
6cd0643097
[RAM][HTTP versioning] Version Maintenance Window Endpoints (#162446)
## Summary
Resolves: https://github.com/elastic/kibana/issues/162179
Parent Issue: https://github.com/elastic/kibana/issues/157883

Versions the 
- `create`
- `active`
- `bulk_get`
- `find`
- `finish`
- `archive`
- `delete`
- `get`
- `update`

`/rules/maintenance_window` maintenance window endpoint. Also adds
schema validation to the I/O of each method.

### 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-09-21 11:57:01 -07:00
Kevin Delemme
45c9cd04be
fix(slo): search bar (#166945) 2023-09-21 14:55:42 -04:00
Yulia Čech
12d193803f
[Index Management] Render extensions summaries on the index details page (#166754)
## Summary

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

This PR implements the logic to render summaries added via the extension
service on the new index details page. Currently, only the ILM plugin
registers a summary for an index. The extension service will probably be
refactored when working on
https://github.com/elastic/kibana/issues/165107.
I needed to convert the component `IndexLifecycleSummary` from the class
component to the function component. Otherwise there were errors while
rendering the page and I was not able to check for `null` to not render
an empty card.

### Screenshots
#### When no ILM info or ILM plugin is disabled (no changes to the
Overview tab)
<img width="1029" alt="Screenshot 2023-09-19 at 18 51 14"
src="1f619580-415a-4704-befc-a75a3a37efe6">


#### When there is ILM policy
<img width="1027" alt="Screenshot 2023-09-19 at 18 51 32"
src="05105dbf-e6ca-4a1d-ae53-bd42ec030974">
2023-09-21 20:55:00 +02:00
Devin W. Hurley
7ac96504f1
[Security Solution] [Detections] Fixes EQL shell alert missing common fields (#166751)
## Summary

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

---------

Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
2023-09-21 11:05:26 -07:00
Alexi Doak
bb4e6fcd2d
[ResponseOps][Alerting] Failing ES Promotion: max_queued_actions_circuit_breaker.ts test (#166861)
Resolves https://github.com/elastic/kibana/issues/166770

## Summary

The test was failing for this reason: "illegal_argument_exception: can't
merge a non object mapping [ruleInfo.actions] with an object mapping". I
switched to es query rule so that we can use ESTestIndexTool that
defines a mapping for the es test index.


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


### To verify

Run the functional test runner with the following command and verify it
passes:
```
ES_SNAPSHOT_MANIFEST="20230919-155242_b9970223/manifest.json" node scripts/functional_tests_server.js --config x-pack/test/alerting_api_integration/spaces_only/tests/actions/config.ts
```
2023-09-21 11:00:45 -07:00
Brad White
e5399e43c3
[kbn/es serverless] Rename usages of ESS (#166581)
## Summary

Closes #166580

To avoid confusion, rename any usages of ESS because it has been
established to represent Elastic Cloud and there are situations where ES
serverless and Elastic Cloud can be used within the same context.
2023-09-21 10:44:45 -07:00
Kibana Machine
7fab0b15e6 skip failing test suite (#152476) 2023-09-21 12:45:29 -04:00
Jon
7425b227ca
Update versions.json (#166944)
With the release of 8.10.2, this updates the tracked development version
to 8.10.3
2023-09-21 11:42:33 -05:00
Brad White
8ddad927fe
[kbn/es serverless] invert teardown logic to always kill cluster (#166546)
## Summary

Closes #166543 

- It is counterintuitive to `CTRL + C` from the `yarn es serverless`
process and the cluster is still running. This has caused issues when
switching between stateful and serverless work flows for some
developers. This PR inverts the logic to always teardown the cluster
unless a flag is passed.
- Small docs update for changing ES memory allocation on all operation
systems.
- Fixes bug were cluster status would continue looping after `SIGINT`.
- Bind to `SIGINT` earlier so nodes are always killed
2023-09-21 09:10:21 -07:00
Kevin Delemme
292835af07
feat(slo): Handle deletion of partitioned slo (#166878) 2023-09-21 12:05:36 -04:00
Kerry Gallagher
795ec3e4ad
[Logs+] Enforce dataset names (#166654)
## Summary

Closes #163830

This adds server side validation to enforce dataset name format rules
for custom integrations. It then enhances the custom integrations Kibana
package to handle this seamlessly in the create form.

There is no client side validation for the rules per se because as long
as the dataset name passes other validations (length etc) then it is
always valid - it just comes down to whether it's prefixed or not.

## Other notes

- Added a "fields pipeline" to improve the readability of the context
update.

## UI / UX changes

- Users are informed when a prefix will be added.

<img width="886" alt="Screenshot 2023-09-20 at 13 19 49"
src="764d2bd0-03ef-40ce-8dae-107079c15feb">

- If the integration name has been touched, and the dataset name is
untouched, the dataset name will automatically match the integration
name.


![matching](b72604c0-23f9-4ff1-8db7-9b6c523b36c6)

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-09-21 16:32:25 +01:00
Walter Rafelsberger
fabaa2f89e
[ML] AIOps: Fix render loop when using saved search. (#166934)
## Summary

Fixes #166079.

If a user picked a saved search to investigate, the log pattern analysis
page would freeze with an infinite render loop; the log rate analysis
pate wouldn't freeze but repeatedly query for new data.

This PR fixes the issue by memoizing the queries derived from the saved
search information to avoid it being a new instance every time.

### Checklist

- [x] 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-09-21 17:28:38 +02:00
Paul Tavares
81adaa59f1
[Security Solution][Endpoint] Increase buildkite parallelism for defend_workflows on pipeline on_merge_unsupported_ftrs.yml (#166947)
## Summary

- Increase the `parallelism` for `defend_workflows` to match that of PR
pull request (`6`)
- Should ( 🤞 ) fix the failures being seen in buildkite:
https://buildkite.com/elastic/kibana-on-merge-unsupported-ftrs
2023-09-21 08:13:48 -07:00
Devon Thomson
8bd25152bb
[Dashboard] Add Readonly State For Managed Dashboards (#166204)
Adds a new `managed` mode to Dashboards. When a user with write permissions opens a managed Dashboard they will be unable to hit the `edit` button - and will instead be prompted to clone the Dashboard first.
2023-09-21 11:04:23 -04:00
Julien Lind
4f0a43d145
Update installation guidance (#166930)
Update installation guidance for AMD architecture as it may be confusing
for users.
Relates https://github.com/elastic/beats/issues/33042
2023-09-21 08:00:27 -07:00
Alex Szabo
67939c3635
chore(quality-gates): Add slo check to QA stage (#166722)
## Summary
Adds a triggered downstream quality gate check by checking SLO metrics
over time. (now only with soft_fail)

Example runs: https://buildkite.com/elastic/kibana-tests/builds/44
`=triggers=>`
https://buildkite.com/elastic/serverless-quality-gates/builds/1837
Closes: https://github.com/elastic/kibana/issues/166804

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-09-21 16:59:52 +02:00
Kibana Machine
4ea8dda907 skip failing test suite (#166551) 2023-09-21 10:55:51 -04:00
Maxim Palenov
522f577e4c
Force last breadcrumb to be inactive (#166785)
**Related to:** https://github.com/elastic/kibana/issues/161540, https://github.com/elastic/kibana/issues/161539

## Summary

Always force the last breadcrumb to be inactive.

## Details

Usual UX expects the last breadcrumb to be inactive as it represents the current page. The same can be seen from EUI [examples](https://eui.elastic.co/#/navigation/breadcrumbs). It turns out Serverless Security Solution plugin does't remove `href` and `onClick` fields from the last breadcrumb and passes it to `chrome.setBreadcrumbs()` or `serverless.setBreadcrumbs()` which renders the last breadcrumb as active but clicking on it only refreshes the page. ESS Security Solution on the other hand processes breadcrumbs currently. The same behavior may be the case for the other plungs as well.

As it's much simpler to strip off undesired fields at one place instead of processing them in plugins it's done in `packages/core/chrome/core-chrome-browser-internal/src/ui/header/header_breadcrumbs.tsx`. Security Solution codebase has been updated accordingly.

A side effect of this PR is consistent ESS and Serverless breadcrumbs behavior and it will help to reuse ESS tests for Serverless.
2023-09-21 07:44:49 -07:00
Lukas Olson
22a9f4afb2
[Search] Fix isErrorResponse when cluster details are provided (#166667)
## Summary

Cherry picks #166544 into main.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-09-21 07:43:36 -07:00
Kibana Machine
9dc854cf40 skip failing test suite (#166893) 2023-09-21 10:04:17 -04:00
Jan Monschke
1e3f438531
[SecuritySolution] Rename timeline-saving-related components (#166740)
## Summary

This PR prepares further work on the timeline-saving-related components.
As a first step we're only renaming the components to make it easier to
reason about their function.

> `SaveTimelineButton` -> `EditTimelineButton`:

We might have a dedicated `save` button more prominently in the UI in
the near future. The former "save" button actually opened up a modal
with the `edit` form. In cypress tests, the component was already
referred to as the `edit` button.

> `TimelineTitleAndDescription` -> `EditTimelineModal`:

The original name did not make it clear that it's actually a form in a
modal.

### 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-09-21 09:57:48 -04:00
Davis McPhee
d7369d9bde
[Saved Searches] Soften saved search Content Management response sort schema (#166886)
## Summary

This PR softens the saved search CM response `sort` schema to align it
with the saved search SO `sort` schema from #156769 (no `minSize`).

You can import this broken saved search SO for testing:
```json
{"attributes":{"columns":["response","url","clientip","machine.os","tags"],"description":"","grid":{},"hideChart":false,"hits":0,"isTextBasedQuery":false,"kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"query\":\"\",\"language\":\"kuery\"},\"filter\":[],\"indexRefName\":\"kibanaSavedObjectMeta.searchSourceJSON.index\"}"},"sort":[[]],"timeRestore":false,"title":"test","version":1},"coreMigrationVersion":"8.8.0","created_at":"2023-09-20T20:01:37.753Z","id":"2f360f30-ea74-11eb-b4c6-3d2afc1cb389","managed":false,"references":[{"id":"90943e30-9a47-11e8-b64d-95841ca0b247","name":"kibanaSavedObjectMeta.searchSourceJSON.index","type":"index-pattern"}],"type":"search","typeMigrationVersion":"7.9.3","updated_at":"2023-09-20T20:02:12.775Z","version":"WzQwLDFd"}
{"excludedObjects":[],"excludedObjectsCount":0,"exportedCount":1,"missingRefCount":0,"missingReferences":[]}
```

Fixes #166880.

### Checklist

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] 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)

### 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-09-21 10:46:54 -03:00
James Gowdy
e0ae59fa60
[ML] Switching to config files for serverless ML features (#166477)
Switches to using the serverless config file to enabled/disable ML
features rather than a function shared from the setup contract.
Storing these flags in a config file means they are already available
when setup runs and so can be used when registering integrations into
other plugins.

Removes the dependency on ML from `security_solution_serverless`,
`serverless_observability` and `serverless_search`
2023-09-21 14:46:19 +01:00
Shahzad
c544c52b88
[Synthetics] Fix regression for duration display on monitor card (#166339) 2023-09-21 15:07:52 +02:00
Jon
206db0bcc6
Update CODEOWNERS (#166885)
This helps with label automation on issues created for failed tests
2023-09-21 08:02:35 -05:00
Nathan Reese
d61a5a0516
[inspector] show request method, path, and querystring (#166565)
Closes https://github.com/elastic/kibana/issues/45931

PR updates bsearch service to return request params from
elasticsearch-js client requests. This provides inspector with the exact
details used to fetch data from elasticsearch, ensuring inspector
displays request exactly as used by elasticsearch-js client.

**ESQL** This PR makes it possible to open ESQL searches in console.
<img width="500" alt="Screen Shot 2023-09-16 at 4 19 58 PM"
src="56019fb5-ca88-46cf-a42f-86f5f51edfcc">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-09-21 06:52:03 -06:00
Yulia Čech
969bbb0a11
[Index Management] Update breadcrumbs (#165894)
## Summary
Fixes https://github.com/elastic/kibana/issues/165844
Partially addresses https://github.com/elastic/kibana/issues/122577 

This PR fixes the inconsistency with breadcrumbs in Index Management.
Previously, the breadcrumbs were updated only when an index template or
a component template was being created/edited. This PR adds breadcrumbs
for each of 4 main tabs: indices, data streams, index templates,
component templates. It also adds breadcrumbs for the new index details
page.

**Note for reviewers:** Tabs "Documents" and "Pipelines" on the new
index details page will not be implemented for now, so there are no
breadcrumbs for them.

**Note for copy review**: This PR can be reviewed only in terms on
breadcrumbs in Index Management. The copy review for the new index
details page can be done in this
[PR](https://github.com/elastic/kibana/pull/165705).

### Screenshots 

#### Indices list
Breadcrumbs "Indices"

<img width="1318" alt="Screenshot 2023-09-07 at 17 22 56"
src="1a670df6-b0b2-4272-b7ec-e50719884ad8">

#### Index details - overview tab
Breadcrumbs "Indices" (link) => "Index details" -> "Overview"
<img width="1130" alt="Screenshot 2023-09-08 at 17 20 45"
src="87b75a2c-d3e2-454d-8ad5-979feb3dc8a5">


#### Index details - mappings tab
Breadcrumbs "Indices"(link) -> "Index details" -> "Mappings"
<img width="1319" alt="Screenshot 2023-09-07 at 17 23 53"
src="d42baf78-9133-4c87-bdbd-1aedad119e62">

#### Index details - settings tab
Breadcrumbs "Indices"(link) -> "Index details" -> "Settings"
<img width="1305" alt="Screenshot 2023-09-07 at 17 24 00"
src="bf94497c-4ca3-413c-be57-37499c0839ba">

#### Index details - stats tab
Breadcrumbs "Indices"(link) -> "Index details" -> "Stats"
<img width="1300" alt="Screenshot 2023-09-07 at 17 24 12"
src="c1798ac2-7169-4bfe-8732-ed3f8e6d812e">

#### Data streams
Breadcrumbs "Data streams"
<img width="1319" alt="Screenshot 2023-09-07 at 17 23 03"
src="f4d0230e-994f-4537-a43d-065d364ffc7c">

#### Index templates
Breadcrumbs "Templates" 
<img width="1319" alt="Screenshot 2023-09-07 at 17 23 10"
src="610c609c-1213-4388-9c73-68711c2c4bb6">

#### Component templates
Breadcrumbs "Component templates" 
<img width="1303" alt="Screenshot 2023-09-07 at 17 23 28"
src="4f90eadb-a409-4e53-84f0-92b5f40b7639">



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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-09-21 14:41:09 +02:00
Marco Antonio Ghiani
0743a11c57
[Log Explorer] Hide hard coded flyout actions using customization extension point (#166638)
## 📓 Summary

Closes #165217 

This work implements a new extension point in the Discover customization
framework to allow customizing the flyout content. Although it enables
customizing only the actions displayed on top, it could be enhanced for
additional flyout customizations in the future.

To keep it simple and familiar to other customizations, it relies on a
similar API as the `top_nav` customization, allowing one to disable
default actions and insert additional ones.

```ts
/**
 * Hide flyout actions to prevent rendering hard-coded actions.
 */
customizations.set({
  id: 'flyout',
  actions: {
    defaultActions: {
      viewSingleDocument: { disabled: true },
      viewSurroundingDocument: { disabled: true },
    },
  },
});
```

## 🧪 Testing 
- Navigate to `/app/observability-log-explorer` and expand the flyout
for any grid entry.
The actions on top of the flyout should not be displayed, only the title
and the pagination control should appear.
- Navigate to `/app/discover` and expand the flyout for any grid entry. 
The actions for viewing a single documents or surrounding documents
should be displayed.

---------

Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>
2023-09-21 13:50:41 +02:00
Thomas Watson
c4a0ba21e2
GitHub create-deploy-tag workflow: Improve success message (#166922) 2023-09-21 06:55:16 -04:00
Konrad Szwarc
f50edde37e
[Defend Workflows][Osquery] New live query policy lookup (#166615)
https://github.com/elastic/kibana/issues/166268

closes https://github.com/elastic/security-team/issues/7676

Aggregations that return policy list that is being used for looking up
search term defaults to 10 results when no `size` param passed. At this
point size is set to `2000`.

Before


7571378e-e1e9-4aa9-a179-e17fe50c502e

After 


56a395e1-f9a9-4cf9-90f8-07d4758b8136


Added callout informing user that no agents are available, copy provided
here - https://github.com/elastic/security-team/issues/7676

![Screenshot 2023-09-21 at 11 31
24](1c44db9b-5bc3-4737-8fed-ed4ff56e018b)
2023-09-21 12:47:14 +02:00
Marco Antonio Ghiani
b04b07ec52
[Log Explorer] Hide Discover announcement callouts (#166835)
## 📓 Summary

Closes #166056 

This PR adds a new override to the `uiSetting` service, allowing it to
override specific UI preferences.
In this case, we'll overwrite the `hideAnnouncements` preference to be
true, so that discover-specific announcements won't be displayed for the
Log Explorer app.


50dade20-1902-4f4a-8615-3e1f7a964522

---------

Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-09-21 12:38:31 +02:00
Yngrid Coello
39aebd66be
[Logs onboarding] Expose agent latest available version from fleet (#166811)
Relates to https://github.com/elastic/kibana/issues/165657.

In https://github.com/elastic/kibana/pull/166150 a method that returns
the latest available version was introduced in fleet.

We would like to use this method as a consumers of fleet plugin
([observability_onboarding](https://github.com/elastic/kibana/tree/main/x-pack/plugins/observability_onboarding)).
Additionally we would like to decide from outside fleet wether we want
to include currentVersion or not, this is specially useful for us since
we download the elastic agent executable from
https://artifacts.elastic.co/downloads/beats/elastic-agent/ where
snapshots are not available.
2023-09-21 11:40:24 +02:00
Marco Antonio Ghiani
3709e772b4
[Log Explorer] Refactor into new design (#165877)
## 📓 Summary

**Main task**
Closes #165309 

**Skipped tests fixes**
Closes #165839 
Closes #165520 
Closes #166494 

This work refactors the UX for browsing integrations and uncategorized
datasets.


fadbf952-5a03-4747-b68a-29ed7e864120

## 💡 Review hints

- To reflect the UI changes, the Dataset selector state machine has been
updated as described by the chart attached.
The main difference consists of new events to navigate between tabs and
a nested history state, to keep both track of the last opened tab and,
for the integration tab, of the latest panel.

<img width="1531" alt="Screenshot 2023-09-07 at 14 26 21"
src="12da24e8-8300-4788-8382-71a4cf9748c8">



## 🧪 Tests suite

With the test updates to match the new UI, the selector tests suite now
is:
```
↳ Observability Log Explorer
   ↳ Dataset Selector
     ↳ as consistent behavior
       ↳ should always display the Integrations and Uncategorized top level tabs
       ↳ should always display the "Show all logs" action
       ↳ when open on the integrations tab
         ↳ should display an error prompt if could not retrieve the integrations
         ↳ should display an empty prompt for no integrations
       ↳ when open on the uncategorized tab
         ↳ should display a loading skeleton while loading uncategorized datasets
         ↳ should display an error prompt if could not retrieve the datasets
         ↳ should display an empty prompt for no uncategorized data streams
     ↳ with installed integrations and uncategorized data streams
       ↳ when open on the integrations tab
         ↳ should display a list of installed integrations
         ↳ should sort the integrations list by the clicked sorting option
         ↳ should filter the integrations list by the typed integration name
         ↳ should display an empty prompt when the search does not match any result
         ↳ should load more integrations by scrolling to the end of the list
         ↳ clicking on integration and moving into the second navigation level
           ↳ should display a list of available datasets
           ↳ should sort the datasets list by the clicked sorting option
           ↳ should filter the datasets list by the typed dataset name
           ↳ should update the current selection with the clicked dataset
       ↳ when open on the uncategorized tab
         ↳ should display a list of available datasets
         ↳ should sort the datasets list by the clicked sorting option
         ↳ should filter the datasets list by the typed dataset name
         ↳ should update the current selection with the clicked dataset
       ↳ when open/close the selector
         ↳ should restore the latest navigation panel
         ↳ should restore the latest search results
       ↳ when switching between tabs or integration panels
         ↳ should remember the latest search and restore its results
```

---------

Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>
2023-09-21 11:26:19 +02:00
Mark Hopkin
07b31f1d49
[Fleet] re-enable flaky telemetry test with new agent checks (#166830)
Closes #164998

It seems the final agent is not loading correctly sometimes, we do
`wait_for` when we create the agents so it is a bit strange.

I have added a check that all agents are created before the test, if the
y are not loaded then I log all the agents so this will help us diagnose
any further flakiness better.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-09-21 10:12:52 +01:00
Robert Oskamp
d2feac06d4
FTR - adjust auth for esSupertest in serverless (#166745)
## Summary

This PR removes the `systemIndicesSuperuser` auth in the `esSupertest`
service for serverless test runs, adds `certificateAuthorities` to the
Elasticsearch server config in serverless and adds a tiny test to verify
functionality of this fix.

### Details

Issues before this PR when using the `esSupertest` service in serverless
tests (can be reproduced by running the added `elasticsearch_api` test
without the supertest and config changes):

1. Running against a local `functional_tests_server`, `esSupertest`
produces an error: `Error: self-signed certificate in certificate chain`
2. Running against an MKI project produces an error: `unable to
authenticate user [system_indices_superuser] for REST request [/]`,
because the `system_indices_superuser` doesn't exist in MKI.

How this PR addresses the issues:

1. Add `certificateAuthorities` to `servers.elasticsearch` in
`x-pack/test_serverless/shared/config.base.ts` in the same way we
already have it for `servers.kibana`
2. Modify the `esSUpertest` service to not override the default ES auth
when running in serverless, instead go with the default auth (regular
superuser), which is the best we can get.

### Additional information

It has been considered to add a serverless specific version of
`esSupertest` in order to avoid the `config.get('serverless') ?` code.
The fact that a number of stateful services are planned to be re-used in
serverless and rely on `esSupertest` in combination with the very small
change in a central service made it seem worth to make an exception
here.

Note that service methods or tests that use `esSupertest` can still run
into issues on serverless if they actually try to modify system indices.
This should be avoided anyways and particularly for serverless tests.
2023-09-21 10:57:37 +02:00
Yngrid Coello
f074853ccc
[Logs onboarding] Added Elastic-Api-Version header when installing integration (#166839)
This PR is aiming to fix the problem we have when interacting with fleet

### Before

<img width="1186" alt="image"
src="ea7cd2b4-1867-4644-8c13-3635952c425c">

### After

<img width="1115" alt="image"
src="9261b8b2-e2d8-4af3-8280-4be75c758d80">
2023-09-21 09:44:38 +02:00
Yngrid Coello
7cfab06ca5
[Logs onboarding] Adapting configuration path depending on the OS (#166832)
Closes https://github.com/elastic/kibana/issues/166724.
2023-09-21 09:44:20 +02:00
Luke G
3a017de188
[Security Solution][Serverless] Add schema validation to Search Strategies in security solution & timelines (#162539)
## Summary

This PR specifies validation schemas for enpoints listed here:
https://github.com/elastic/security-team/issues/6486
2023-09-21 07:57:00 +02:00
Kibana Machine
f156fd8a0a
[api-docs] 2023-09-21 Daily api_docs build (#166902)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/467
2023-09-21 00:53:19 -04:00
Nicolas Chaulet
1220da736b
[Fleet] Fix layout padding (#166837) 2023-09-20 15:45:01 -07:00
Kibana Machine
c9b38cece8 skip failing test suite (#166461) 2023-09-20 18:31:47 -04:00
Nick Peihl
26893e2e36
[Dashboard] Get panel description from the embeddable method (#166825)
Fixes #166773 

## Summary

Fixes a bug where panels are not showing descriptions from library
items.

Changes the panel to use the `embeddable.getDescription` method for
retrieving the description. This is necessary since by-reference panels
can store descriptions in the saved object. `getDescription` will check
for a description in the saved object attributes, but the panel
description will still take precedence. This is very similar to how we
get the panel title.
2023-09-20 14:56:54 -07:00
James Rodewig
f29b5ebd36
[DOCS] Add 8.10.2 release notes (#166869) 2023-09-20 16:52:57 -04:00
Davis Plumlee
b9448d0310
[Security Solution] Updates MITRE ATT&CK framework to v13.1 (#166536) 2023-09-20 16:27:13 -04:00
Kevin Delemme
cd68eb7266
chore(slo): open SLO details into new tab (#166872) 2023-09-20 16:22:27 -04:00
Philippe Oberti
bcfcb87b57
Expandable flyout testids (#166298) 2023-09-20 22:10:23 +02:00
Kibana Machine
b8560eb653 skip failing test suite (#166573) 2023-09-20 16:00:50 -04:00
Kibana Machine
ec821f3700 skip failing test suite (#166448) 2023-09-20 15:37:34 -04:00
Jonathan Budzenski
737aaf3571 skip failing test suite (#146394) 2023-09-20 14:33:30 -05:00