Commit graph

66351 commits

Author SHA1 Message Date
Sander Philipse
d5a3ed1dee
[Serverless] Add deployment URL (#163925)
## Summary

This adds a link to the concrete project in Serverless ES3. We can't
link to performance directly because that has been descoped for now.
2023-08-15 18:31:22 +02:00
Tim Sullivan
9da44e3571
[Reporting/Docs] Tighten the language around CSV settings (#163505)
## Summary

Docs request to tighten the language around csv.maxSizeBytes on this
[page](https://www.elastic.co/guide/en/kibana/8.8/reporting-settings-kb.html#reporting-csv-settings).

- [x] test the links

Closes: https://github.com/elastic/kibana/issues/159112
Replaces: https://github.com/elastic/kibana/pull/161189

---------

Co-authored-by: Amy Jonsson <amy.jonsson@elastic.co>
Co-authored-by: amyjtechwriter <61687663+amyjtechwriter@users.noreply.github.com>
2023-08-15 09:18:49 -07:00
Karl Godard
0651662159
[Cloud Security] Aws credentials cleanup (#163528)
## Summary

The various unused credential methods supported by both the KSPM->EKS
and CSPM->AWS methods are not cleared out when a package is saved. As
there are currently two components on the frontend which allow the user
to specify their aws credential method, I've added hooks for both the
'packagePolicyCreate' and 'packagePolicyUpdate' methods in fleet to the
CSP serverside plugin. Both these hooks will pass the policy to a
cleanCredentials function which checks the 'aws.credentials.type' var to
determine which fields should be cleared out.

### Checklist

Delete any items that are not applicable to this PR.

- [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-08-15 08:00:22 -07:00
Maxim Kholod
eb3002eb65
[Cloud Security] Findings Onboarding "not-installed" FTR tests (#163722)
## Summary

This PR adds FTR tests for "not-installed" states of Findings page

Contributes to:
- https://github.com/elastic/kibana/issues/155657

## How to test
run in separate terminals
```
yarn test:ftr:server --config x-pack/test/cloud_security_posture_functional/config.ts
```
and 
```
yarn test:ftr:runner --include-tag=cloud_security_posture_findings_onboarding --config x-pack/test/cloud_security_posture_functional/config.ts
```
2023-08-15 16:59:19 +02:00
Alex Szabo
819d304210
[Ops] Change dev-cli's config merging logic (#163928)
## Summary
Change config merging behaviour, so that arrays are not
merged/concatenated but replaced.

Closes: #162842 

Related to: https://github.com/elastic/kibana/pull/161884

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-15 16:58:51 +02:00
Francesco Gualazzi
53d2275c9e
Profiling: amend Add Data page instructions with stack release versions (#163884)
## Summary

* amend the "Add Data" page to use artifacts download URLs from the
official channels
* fetch and propagate stack version of Kibana in the instructions, to
bind stack version on the agent
* minor correction to the package titles to display nicer names in Fleet
agent page

### Checklist

Delete any items that are not applicable to this PR.

- [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] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [X] 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))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### For maintainers

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

---------

Signed-off-by: inge4pres <francesco.gualazzi@elastic.co>
Co-authored-by: Cauê Hironimuz Marcondes <caue.marcondes@elastic.co>
2023-08-15 07:47:52 -07:00
Shahzad
4c1428377a
[Uptime] Use stack version to determine appending synthetics-* (#163800)
Co-authored-by: Abdul Wahab Zahid <awahab07@yahoo.com>
2023-08-15 16:31:24 +02:00
Khristinin Nikita
cd65fbbacb
## Risk score from new Risk Engine showing in UI (#163237)
## Risk score from new Risk Engine showing in UI

What happened in this pr:

1. We create the latest transform and index on the `init` call when we
install resources for Risk Engine. The original plan was to just get
some API layer around our datastream with historical data. But it's not
possible in one all to achieve pagination/sorting/filtering of risk
scores, so we decided to create transforms.

Latest transform: `risk_score_latest_transform_${spaceId}`
Latest Index: `risk-score.risk-score-latest-${spaceId}`

2. To get the risk score to UI we use the existing search strategy from
the old risk score module, and just pass the new index to the search

3. UI are the same except for the single host/user risk score page, when
we change the explanation parts and instead of the old UI, we will show
alerts table with grouping etc.

<img width="1365" alt="Screenshot 2023-08-09 at 16 19 20"
src="0a850b2e-d3d5-4b06-948d-c129dbf754f0">


4. Temporarily pass experimentalFeutres to rule wrapper and bulk create
as we need to know, which index to use for alert enrichment on ingest
time. It will be removed after we decide to release a new Risk Engine

5. Limiting to have only 2 risk scores per kibana
<img width="972" alt="Screenshot 2023-08-10 at 16 00 42"
src="9cc3c545-2ace-42d9-a2f3-ff771c7e5abd">
Because of limited timeframe before FF, majority of UI tests will be
added after FF

## How to test

`xpack.securitySolution.enableExperimental: ['riskScoringRoutesEnabled']
`

- Go to Settings -> Entity 

Risk Score
- Enable risk score module
- Generate some alerts with host.name or user.name
- Call from Kibana console calculation API
```
POST kbn:/api/risk_scores/calculation
{
      "data_view_id": ".alerts-security.alerts-default",
      "identifier_type": "user",
      "range": { "start": "now-30d", "end": "now" }
  }
  POST kbn:/api/risk_scores/calculation
{
      "data_view_id": ".alerts-security.alerts-default",
      "identifier_type": "host",
      "range": { "start": "now-30d", "end": "now" }
  }
```
- Go to Security / Explore / Hosts / Hosts Risk and see risk scores
- - If host page not available because it's required integrations, easy
fix to create filebeat index
```
PUT filebeat-8.10
{
  "mappings": {
    "properties": {
      "@timestamp": {
        "type":"date"
      },
      "host": {
        "type": "object", 
         "properties": {
           "name": {
             "type": "keyword"
           }
         }
      }
    }
  }
}
```
- Click on any and go to the single host/user risk page and go to
Host/User risk tab
- Observe the alerts table for top risk core contributors

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
2023-08-15 16:25:22 +02:00
Rachel Shen
897e5cbf83
[Reporting] Serverless readme additions (#163308)
## Summary

Closes #163222 


### Checklist
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials

---------

Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
2023-08-15 08:24:36 -06:00
Janki Salvi
1774c0c942
add e2e for persist draft check with existing comment (#163811)
## Summary

fixes https://github.com/elastic/kibana/issues/156741

Scenario | Old Test | Functional test where it is covered
-- | -- | --
'checks draft comment persist behaviour with another markdown user
action update' | 'it should persist the draft of new comment while
existing old comment is updated' | 'should persist the draft of new
comment while old comment is updated'

<br class="Apple-interchange-newline">

### Flaky test runner: 
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2869


### Checklist

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>
2023-08-15 16:24:06 +02:00
Ido Cohen
c2c1e076a4
[Cloud Security][usage collector] enhance cloud security metering (#163828) 2023-08-15 17:22:30 +03:00
Nikita Indik
07312bf087
[Security Solution] Prebuilt rule installation / upgrade flyout (#163304)
**Addresses:** https://github.com/elastic/kibana/issues/162334

## Summary

This PR adds a flyout for viewing a prebuilt rule before installing or
updating it. The flyout can be opened by clicking on a rule title within
"Add Elastic Rules" page and within "Rule Updates" tab of the Rule
Managament table.

I plan to add tests and do minor visual tweaks after the FF.

<img width="1269" alt="Screenshot 2023-08-14 at 03 59 30"
src="c8200ff8-fbe2-445a-a03e-3545ea77f750">

An additional goal of these changes was to create lightweight reusable
components for rule details sections ("About", "Definition", "Schedule")
and for rule properties, so that these can later be reused in other
flyouts within the Security Solution, on MITRE ATT&CK™ overview page and
potentially on the Rule Details page.
These reusable section components are basically copy-pasted components
from the Rule Details page that were refactored to remove the dependence
from the form schema,

### Checklist

Delete any items that are not applicable to this PR.

- [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)
- [ ]
[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
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] 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))
- [x] 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))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
2023-08-15 16:05:01 +02:00
Adam Demjen
8706702aea
[Enterprise Search] Add update index mappings step to ML pipeline config workflow (#163723)
## Summary

This PR adds a new step to the ML inference pipeline creation workflow:
a note to update mappings.

This new step doesn't make any changes in the background. Instead it
lets the user know that the index mappings need to be updated manually
to accommodate the inference output fields before the pipeline can be
used (for example a `dense_vector` field).

For ELSER pipelines the mappings are updated automatically, so the
callout is an FYI panel instead of a required step.

The logic for controlling the state of steps is also improved, making
the UX look more like walking through the steps.


Creating non-ELSER pipeline

![updat_mappings_non_elser](3b03fdeb-8bb9-4275-9f91-1ee49f2c5a10)

Creating ELSER pipeline

![update_mappings_elser](ced48dbf-a0bf-4330-acdb-6b8b26c35a65)

Attaching pipeline

![update_mappings_attach](79c47457-ec9d-4c54-a575-e2052f06a337)

### Checklist

Delete any items that are not applicable to this PR.

- [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)
- [ ]
[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] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] 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))
- [x] 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))

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-15 07:03:20 -07:00
Pierre HILBERT
396d04a962
Telemetry: collect components status (#163912)
## Summary

Querying agent components status to add to telemetry.
Depends on https://github.com/elastic/elasticsearch/pull/98471

### Checklist

Delete any items that are not applicable to this PR.

- [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-08-15 06:36:53 -07:00
amyjtechwriter
f4381ac0d0
[OAS] Create runtime field API (#163776)
This PR drafts openAPI specifications for:

- [Create runtime field
API](https://www.elastic.co/guide/en/kibana/master/data-views-runtime-field-api-create.html).
- [Upsert runtime field
API](https://www.elastic.co/guide/en/kibana/master/data-views-runtime-field-api-upsert.html)

Relates to https://github.com/elastic/kibana/issues/137240
2023-08-15 14:31:05 +01:00
Jedrzej Blaszyk
82531f8f9d
Crawler custom scheduling UI (#163425)
## Summary

Closes: https://github.com/elastic/enterprise-search-team/issues/5182 

Adding custom crawler scheduling UI.


1750e40a-12ca-48c3-a7c9-9f23dfa4b910

## Release note

UI for crawler that enables to register multiple schedules with
different crawl configurations.
2023-08-15 06:16:09 -07:00
Tiago Costa
df03df0d0a
skip flaky suite (#159696) 2023-08-15 14:08:58 +01:00
Tiago Costa
54acc2ba2d
skip flaky suite (#159695) 2023-08-15 14:08:25 +01:00
Sander Philipse
2081139af6
[Search] Enable content app without Enterprise Search present (#163738)
## Summary

This enables the content plugin within Search when Enterprise Search is
not up. Crawler indices are made inaccessible as disentangling their
logic is too complicated to make sense.



300236c8-06b6-4052-8ed0-adb6f2a64564



88faba9a-cb49-412c-84e3-394e04bb04c4


62dc5d5d-a6c5-4d18-969a-2da971adb794

feature
2023-08-15 05:53:28 -07:00
Nicolas Chaulet
1c0d656ae1
[Fleet] Fix Fleet server host default conflict creation (#163826) 2023-08-15 08:35:44 -04:00
Yulia Čech
3efc0a7c45
[Index Management] Add an index details page behind a dev feature flag (#163521)
## Summary
This PR adds a dev feature flag
`xpack.index_management.dev.enableIndexDetailsPage` that will allow us
to build out the new index details page in small iterations. Without the
flag, the UI of Index Management is not changed. A skeleton component is
created for the details page (see screenshot below).

### How to test
1. Test the Index Management UI (Indices tab) without the flag and check
that no changes were introduced
1. Add `xpack.index_management.dev.enableIndexDetailsPage: true` to the
file `/config/kibana.dev.yml`
2. Navigate to the Indices tab in Index Management, toggle "hidden
indices" if no indices exist and click any index name
3. Check that the new index details page is displayed
4. Check that the tabs on the page are working

### Screenshots 
<img width="1209" alt="Screenshot 2023-08-09 at 19 17 46"
src="e654ef36-ccf3-40a4-8c7b-750b83defef5">

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-15 04:11:54 -07:00
Elena Stoeva
54442daf06
[Ingest pipelines] Improve copy of Reroute processor (#162996)
Closes https://github.com/elastic/kibana/issues/162848

## Summary

This PR improves the ui copy of the Reroute processor form and some
common processor components.

List of changes that have been made:

- Title of Processor form
- Processor field placeholder
- Destination field helper text
- Dataset field placeholder and helper text
- Namespace field placeholder and helper text
- Condition field helper text
- Tag field helper text
- Ignore failure field label
- Submit button label

<details>
<summary>Screenshots</summary>
<img width="535" alt="Screenshot 2023-08-14 at 18 41 57"
src="473bdef1-7f00-4002-8ae3-0bf104bfdebd">


The `index names` link in the Dataset and Namespace helper text leads to
https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html#indices-create-api-path-params

<img width="715" alt="Screenshot 2023-08-02 at 17 03 26"
src="1b026562-23ff-443f-8d8a-7dfff2455ea5">

</details>


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

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-15 11:56:10 +01:00
Jordan
f8a24e0509
[Cloud Security] Removed beta tag from vuln findings tab (#163917) 2023-08-15 03:53:47 -07:00
Søren Louv-Jansen
600c74997d
[APM] Fix custom links warning (#163832)
Originally fixed in https://github.com/elastic/kibana/pull/83836


**Problem**

When running in basic mode and navigates to the transactions details
page a toast is display with the warning:

>To create custom links, you must be subscribed to an Elastic Gold
license or above. With it, you'll have the ability to create custom
links to improve your workflow when analyzing your services.

This is caused by a request to `GET internal/apm/settings/custom_links`.
This PR ensures that only when users have a valid license custom links
will be attempted loaded


<img width="1705" alt="image"
src="60c59c87-9837-4fbb-8172-5a4add121db0">
2023-08-15 12:43:58 +02:00
Julia Bardi
feb72cd69f
[Fleet] remove superuser requirement in PackageService (#163727)
## Summary

Remove superuser requirement in PackageService and replacing it with the
same privilege requirement as the API uses.

`PackageService` was introduced in
https://github.com/elastic/kibana/pull/121589
@joeypoon Is it okay for security team to change these privileges?

WIP, added only for `ensureInstalledPackage` for now.

### 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-08-15 11:33:32 +02:00
Yulia Čech
11e57be842
[Console] Generate autocomplete definitions from ES specification (#163301)
## Summary

This PR uses the new script to generate autocomplete definitions for Dev
Tools Console from the ES specification repo.

#### Definitions changes
- New property `availability` is added to filter out endpoints that are
not available in Serverless
- Some endpoints' query parameters have more details now, for example
common query params are now defined in definitions
```json
"url_params": {
      "error_trace": "__flag__",
      "filter_path": [],
      "human": "__flag__",
      "pretty": "__flag__"
},
```
- Url components in few endpoints are removed, but those were added to
overrides files in https://github.com/elastic/kibana/pull/163096
- Documentation links contain `{branch}` instead of `master` (fix for
that added in https://github.com/elastic/kibana/pull/159241)

#### Script changes
- The logic for generating `availability` for endpoint has been updated
based on the feedback from the Clients team. Details added to the script
file.
- Added a few "safe guards" to the spots in the script where an
unexpected type of data might be coming from the ES specification schema

#### Console changes
- Fixed the autocomplete request on Serverless (we might need a proper
fix for that, details in
https://github.com/elastic/kibana/issues/163318)

Also updates to readme files both in Console and the new script. 
I will remove the old script in a separate PR. 

## Screenshots 
"ILM" autocomplete suggestions displayed on stateful
<img width="583" alt="Screenshot 2023-08-07 at 17 47 48"
src="641a48b0-fb1a-4d3b-a8c9-99eab8795510">


"ILM" autocomplete suggestions not displayed on serverless
<img width="572" alt="Screenshot 2023-08-07 at 17 35 16"
src="a1ee5468-eb9f-4f52-81d5-c661b06f8ceb">


## How to test
- Start Kibana on stateful (`yarn start`) and check that autocomplete
suggestions are working as before (no changes)
- Start Kibana on serverless (`yarn start --serverless`) and check that
autocomplete suggestions are not displayed for endpoints
blocked/internal on serverless.

### 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)
2023-08-15 11:30:39 +02:00
Dzmitry Lemechko
12a10d9855
Add appex-qa as codeowner for FTR serverless base config files (#163914)
## Summary

This way Appex-QA can keep track on config changes and make sure folks
aware that some changes might not work for real MKI-hosted projects.
2023-08-15 02:13:56 -07:00
Maryam Saeidi
00cad18131
[AO] Add tooltip for custom equation and update its message (#163833)
Closes #163821

## Summary

This PR adds a tooltip for the custom equation and updates its message,
similar to what we have in SLO.

|Before|After|
|---|---|

|![image](1f8e8c0d-38fa-408d-b091-bbd6c9517837)|
2023-08-15 10:40:55 +02:00
christineweng
cc946c46e4
[Security solution] Expandable flyout - add subtab to path (#162748) 2023-08-15 10:34:34 +02:00
Maxim Kholod
efbee18dc9
[Cloud Security] do not filter out CNVM documents with missing or unknown severity (#163419)
## Summary

This PR removes filtering vulnerabilities where the `severity` field is
missing or is different from CRITICAL, HIGH, MEDIUM or LOW. Right now
this is handled ok in the data grid but won't be reflected in the
severity map or trend chart components.
<img width="1728" alt="Screenshot 2023-08-08 at 17 42 46"
src="45ccf860-0cb7-4b03-ab51-5720dd7f90f9">



fixes
- https://github.com/elastic/security-team/issues/7289
2023-08-15 09:41:14 +02:00
Sergi Massaneda
560c87179b
[Security Solution][Unified IA] New sections with landing page (#163102)
## Summary

closes: https://github.com/elastic/kibana/issues/157847

The new links and pages in Security Solution for Serverless:

- `Investigations`
   - `Timelines`
   - `Osquery`

- `Assets`
   - `Fleet` (and all its sub-links)
   - `Endpoints` (and all its sub-links)
   - `Cloud defend` (and all its sub-links)
   - Callout with button linking `Integrations` in Project Setting

-  `Project settings`
   - `Users & roles` (Cloud UI)   
   - `Billing & consumption` (Cloud UI)
- `Integrations` (link to integrations with _/browse/security_ path
parameter)
- `Entity risk score` (link currently under the
`riskScoringRoutesEnabled` experimental flag)
- `Management` accordion with a set of (stack) management categories and
pages links

Sections updated:

(ESS & Serverless) `Rules` links have been updated according to new
specs.
(ESS) The `Settings` page was renamed back to `Manage`.
(Serverless) The `Dev tools` link was moved to the bottom of the side
navigation.

#### Cypress tests for serverless:

They will be implemented in a follow-up PR when the infrastructure is
ready https://github.com/elastic/kibana/pull/162698

## Screenshots

### Serverless

Investigations:


![investigations](19b602ab-53bb-4280-b0c3-dc69255ea3ab)

![investigations_panel](8be036fc-6095-4234-8b07-1a7149c8a92b)

Assets:


![assets](963723d5-16da-45dd-955c-a7d7b61099e6)

![assets_panel](977c0716-7cc3-4369-acdf-0787e264a912)

Rules:


![rules](5bafbd08-508c-4b50-bd28-dc052371e76a)

![rules_panel](ea47f8d9-4b68-44f3-8a42-6f795d05b982)

Project Settings:


![project_settings](36dbb446-3354-4519-b59c-e8b5005fbb71)

![project_settings_panel](1315b54b-4423-41a2-b0ed-997ee77c1f6d)

## ESS

Side Navigation:

![ess_side_nav](a3687a47-3ccb-4ce8-aa53-9e962a6ef1cf)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tomasz Ciecierski <ciecierskitomek@gmail.com>
Co-authored-by: Tomasz Ciecierski <tomasz.ciecierski@elastic.co>
2023-08-15 09:31:57 +02:00
Kibana Machine
3640633c75
[api-docs] 2023-08-15 Daily api_docs build (#163906)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/430
2023-08-15 01:02:51 -04:00
Tiago Costa
fd3df5e0ea
skip flaky suite (#157711) 2023-08-15 02:38:45 +01:00
Steph Milovic
d829927dbe
[Security Solution] AI Assistant telemetry (#162653) 2023-08-14 18:26:40 -07:00
Tiago Costa
1857f7339d
skip flaky suite (#161624) 2023-08-15 02:23:45 +01:00
Paul Tavares
8366d5f172
[Security Solution][Endpoint] Add ability for users to release an isolated host in serverless tiers where Response Actions are not available (#163616)
## Summary

- Fixes the loading of the Host Isolation sub-feature control into
kibana - should always be loaded and includes only the `release`
privilege in it
- Fixes the "Take action" menu items for Host Isolation (displayed in
alert details) to ensure `release` is displayed when host is isolated
and user has `release` privilege only
- Endpoint Response console will now NOT be available to users who only
have `release` response action (this is a downgrade scenario where the
user is still allowed to `release` isolated hosts)
2023-08-14 18:20:55 -07:00
Rickyanto Ang
12be587348
[Cloud Security]Added new Google Cloud icon to be used on our component (#163840)
## Summary

Originally I made a PR to add the icon into eui Library, however they
told me that they no longer support adding 3rd party logo into eui
library as such we will need to add it to Kibana instead.
This Changes includes changing the GCP logo on 
- Findings flyout
- Benchmark flyout
- Dashboard
- CSPM and CNVM onboarding page (GCP tab)
<img width="795" alt="Screenshot 2023-08-14 at 9 47 25 AM"
src="53e3aafa-7f3d-4c8f-b20c-ec365693ed88">

<img width="1223" alt="Screenshot 2023-08-14 at 9 33 58 AM"
src="2fcdf9ad-8088-42c4-bb32-d6cdf12d02bc">
<img width="563" alt="Screenshot 2023-08-14 at 9 35 36 AM"
src="5c63d03a-f929-4e5c-80e7-04d8327c7acb">
<img width="754" alt="Screenshot 2023-08-14 at 9 37 40 AM"
src="cd5bc65b-3118-4d1c-a943-7a12518ad5e6">

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-14 17:31:01 -07:00
Paulo Henrique
3045b1672c
[Cloud Security] [Findings] [Vulnerabilities] [Alerts] - Create detection rule (#163545)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-14 17:23:00 -07:00
Tiago Costa
365a8b93cf
skip flaky suite (#163889) 2023-08-15 01:05:49 +01:00
Tiago Costa
49b3148dbe
skip flaky suite (#163890) 2023-08-15 01:04:55 +01:00
Tiago Costa
1c463ca0f2
skip flaky suite (#150607) 2023-08-15 00:57:42 +01:00
Tiago Costa
6d73560735
skip flaky suite (#157060) 2023-08-15 00:56:11 +01:00
Tiago Costa
3b7015251c
skip flaky suite (#163531) 2023-08-15 00:55:00 +01:00
Tiago Costa
25e5d8fe7f
skip flaky suite (#163532) 2023-08-15 00:53:53 +01:00
Kevin Logan
a1a4c44695
[Security Solution] Skip flaky test due to package change (#163892)
## Summary

Skipping this test as it is broken, currently.

Skip ticket: https://github.com/elastic/kibana/issues/160274


### 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-08-14 17:55:06 -05:00
Tiago Costa
3934ce3189
skip flaky suite (#151854) 2023-08-14 23:47:05 +01:00
Tiago Costa
c247572103
skip flaky suite (#163883) 2023-08-14 23:44:21 +01:00
Trevor Pierce
83d9644b74
Upgrade EUI to v86.0.0 (#163088)
`85.1.0` ➡️ `86.0.0`

⚠️ The biggest change in this PR is migrating the `react-beautiful-dnd`
dependency to it's open-source forked successor, `@hello-pangea/dnd`.
This new fork has better typescript support and additionally supports
both React 17 and React 18.

## [`86.0.0`](https://github.com/elastic/eui/tree/v86.0.0)

- Added React 18 support (StrictMode not yet supported).
([#7012](https://github.com/elastic/eui/pull/7012))

**Deprecations**

- Deprecated `euiPaletteComplimentary`; Use `euiPaletteComplementary`
instead. ([#6992](https://github.com/elastic/eui/pull/6992))

**Breaking changes**

- Replaced the underlying drag-and-drop library from
`react-beautiful-dnd` to its fork `@hello-pangea/dnd`
([#7012](https://github.com/elastic/eui/pull/7012))
([#7012](https://github.com/elastic/eui/pull/7012))
- No code updates are needed if using only `<EuiDragDropContext>`,
`<EuiDroppable>` and `<EuiDraggable>` with no direct imports from
`react-beautiful-dnd`. In case you were importing things from
`react-beautiful-dnd` and using them together with EUI components, you
need to switch to `@hello-pangea/dnd` which has cross-compatible API.

---------

Co-authored-by: Tomasz Kajtoch <tomasz.kajtoch@elastic.co>
Co-authored-by: Tomasz Kajtoch <tomek@kajto.ch>
Co-authored-by: Cee Chen <549407+cee-chen@users.noreply.github.com>
Co-authored-by: Drew Tate <andrew.tate@elastic.co>
2023-08-14 15:45:09 -05:00
Maxim Palenov
c610d03787
[Security Solution] Fix Coverage Overview API activity filter (#163785)
**Relates to:** https://github.com/elastic/kibana/issues/158246

## Summary

If activity filter contains both allowed values `enabled` and `disabled` simultaneously Coverage Overview endpoint returns the response filtered by the first value only.

This PR fixes wrong behavior os if `enabled` and `disabled` values are set simultaneously the response contains combined results for both `enabled` and `disabled` activity filter values.

For example a request like below

```sh
curl -X POST --user elastic:changeme -H 'Content-Type: application/json' -H 'kbn-xsrf: 123' -d '{"filter":{"activity": ["enabled","disabled"]}}' http://localhost:5601/kbn/internal/detection_engine/rules/_coverage_overview --verbose
```

would produce the same response as the following request

```sh
curl -X POST --user elastic:changeme -H 'Content-Type: application/json' -H 'kbn-xsrf: 123' http://localhost:5601/kbn/internal/detection_engine/rules/_coverage_overview --verbose
```

### 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-08-14 22:11:53 +02:00
Josh Dover
26a9739bee
Add Fleet pgpKeyPath as container env var (#163783) 2023-08-14 11:41:19 -07:00