Commit graph

53932 commits

Author SHA1 Message Date
Kevin Lacabane
1d361cc602
uncomment archive unload (#134835) 2022-06-21 16:18:16 +02:00
Dima Arnautov
f5d5821bf4
[ML] Fix styles for panel headers (#134660)
* remove .panel-title

* remove .panel-sub-title

* remove inline h2 styles

* replace class with EuiTextColor, remove redundant div

* remove .ml-explorer

* fix data viz headers

* influencers_list.tsx titles
2022-06-21 09:47:25 -04:00
Shahzad
84e54dc7de
update sending kibana version (#134823) 2022-06-21 15:43:53 +02:00
Sander Philipse
8ecba9bf28
[Enterprise Search] Kea guidelines (#134458)
* [Enterprise Search] Kea guidelines
2022-06-21 15:23:12 +02:00
Kevin Lacabane
0c61eb481f
[Stack Monitoring] Query persistent queue size for metricbeat documents (#134569)
* query metricbeat queue size

* update snapshot

* update integration tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-21 15:07:12 +02:00
Jordan
8b444ef6e5
[Cloud Posture] Using Eui theme with eui charts (#134759) 2022-06-21 15:30:16 +03:00
Anton Dosov
a8095ce11a
Remove deprecated es-query re-imports from data plugin (#134600) 2022-06-21 04:09:44 -07:00
Julia Bardi
e0446dac82
[Fleet] bulk reassign kuery optimize (#134673)
* reassign kuery optimize

* fix test

* renamed to withoutManaged, added time measurement

* try catch to fix test

* unenroll improvement

* removed logging

* refactored to filter hosted agents in memory

* fixed tests

* removed withoutManaged

* added unit test

* revert plugin.ts changes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-21 12:34:51 +02:00
Najmieh Sadat
39deb018b2
Edited the link phrase (#134649)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-21 03:24:30 -07:00
Michael Dokolin
798adb7a4d
[Expressions] Add logging capabilities to the expressions (#134705)
* Remove dead executor forking method
* Add logging in non-strict mode
* Add logging of deprecations
2022-06-21 12:06:06 +02:00
Joe Reuter
a5205ed138
convert series agg to Lens configuration (#134681)
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-21 12:38:48 +03:00
Sergi Massaneda
7649da18cf
[Security Solution] Stateless FieldBrowser (#134495)
* remove redux from field browser

* test added

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-21 11:06:18 +02:00
Milton Hultgren
a59c0482ca
[Infra] Connect metric tables to i81n (#134779)
* [Infra] Connect metric tables to i81n
2022-06-21 01:27:35 -07:00
Emilio Alvarez Piñeiro
69e125fb8b
Migrate client metrics from APM to UX (#133322)
* Migrate client metrics from APM to UX

* Add e2e test
2022-06-21 10:18:08 +02:00
Christos Nasikas
e1f3aca0c8
Improve CORS messages (#134659)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-21 11:04:38 +03:00
Milton Hultgren
d13d997d4c
[Infra] Fix metric table fields and calculations (#134341)
* [Infra] Fix metric table fields and calculations

Fixes 133119
Fixes 133122
Fixes 133124
2022-06-21 09:18:32 +02:00
Julia Rechkunova
7410fbf4d8
[Discover] Hide "Add a field", "Edit" and "Create a data view" buttons in viewer mode (#134582)
* [Discover] Hide "Add a field" button for read only access

* [Discover] Hide "Create a data view" button for read only access on desktop

* [Discover] Hide "Create a data view" and "Add a field" button for read only access on mobile

* [Discover] Make sure that error message is shown when access rights were reduced for a user in meantime

* [Discover] Make checks safe

* [Discover] Update tests

* [Discover] Streamline the logic

* [Discover] Update tests

* [Discover] Add tests

* [Discover] Add tests

* [Discover] Update code style

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-21 09:05:23 +02:00
Clint Andrew Hall
9ec4d311ed
[Shared UX] Move Solution Toolbar components to package (#134392)
* [Shared UX] Move Solution Toolbar components to package

* Addressing feedback

* [CI] Auto-commit changed files from 'node scripts/generate packages_build_manifest'

* Adding support to jest_config_check

* Fixing i18n

* Apply suggestions from code review

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
2022-06-21 02:00:57 -05:00
Kibana Machine
04e621727b
[api-docs] Daily api_docs build (#134799) 2022-06-21 00:51:44 -04:00
Tiago Costa
1599cd8d2a
docs(NA): windows wsl development (#134589)
* docs(NA): windows wsl development

* docs(NA): update titles for the documentation created

* chore(NA): update dev_docs/tutorials/development_windows.mdx

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>

* docs(NA): updated guide to include info around GUI apps support

* docs(NA): updated guide to include info around GUI apps support

* docs(NA): include win10 GUI workaround

* docs(NA): run a first sudo command before running others

* docs(NA): added remote code wsl extension

* docs(NA): mentioned NVIDIA does now includes vGPU drivers for WSL within the common drivers

* docs(NA): update sudo commands separation

* docs(NA): added hardware virtualization prerequisite awareness into the guide

* docs(NA): update wording on guide recomendation for win11

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-21 00:45:08 +01:00
Georgii Gorbachev
cdcb272082
[Security Solution][Detections] Fix fetching package info from registry for installed integrations (#134732)
**Fixes:** https://github.com/elastic/kibana/issues/134639

## Summary

In Cloud, `Elastic APM` and `Fleet Server` integrations are installed by default. However, attempts to fetch their packages from Elastic Package Registry via Fleet services on the server-side fail with the following errors:

```json
{
    "message": "apm@8.3.0 not found",
    "status_code": 500
}
```
```json
{
    "message": "fleet_server@1.2.0 not found",
    "status_code": 500
}
```

<img width="797" alt="Screenshot 2022-06-20 at 11 28 18" src="https://user-images.githubusercontent.com/7359339/174571610-4c24e777-c49a-49e0-addf-54c6301cc8ca.png">

This behavior happens in some Cloud environments (like the one in the related ticket). It seems to not happen in Cloud CI environments and locally.

This PR adds error handling for this edge case to `GET /internal/detection_engine/fleet/integrations/installed?packages=` endpoint.

- It logs fetching errors to the console logs of Kibana.
- It uses a "best-effort" approach for returning data from the endpoint. If we could successfully read existing integration policies, we already have all of the needed data except correct integration titles. So, if after that any request to EPR results in an error, we:
  - Still return 200 with a list of installed integrations
  - Include correct titles for those packages that were successfully fetched
  - Include "best guess" titles for those packages that failed

```
[2022-06-20T12:57:10.270+02:00][ERROR][plugins.securitySolution] Error fetching package info from registry for 
fleet_server@1.2.0. Boom!
[2022-06-20T12:57:10.270+02:00][ERROR][plugins.securitySolution] Error fetching package info from registry for 
apm@8.4.0. Boom!
```

<img width="1085" alt="Screenshot 2022-06-20 at 13 05 08" src="https://user-images.githubusercontent.com/7359339/174588468-d28c1383-3a25-4f16-8905-bad3ca73e63e.png">


### Checklist

- [ ] [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
2022-06-20 13:07:15 -07:00
Nathan Reese
eee3f7ec08
[Maps] fix array values out of order in tooltips (#134588)
* [Maps] fix array values out of order in tooltips

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-20 13:55:53 -06:00
Paul Tavares
021b6eab83
[Security Solution][Endpoint] new dev script to listen for pending actions and send responses for them to ES (#134712)
* New script endpoint_action_responder that will (currently) continuously pull for pending actions and respond to them (by sending to ES both the Fleet action response and Endpoint action response)
* common services for creating security user and stack services
2022-06-20 15:54:41 -04:00
Nathan Reese
b7c8ff5d7b
[maps] fix sort not applied to vector tile search request (#134607)
* [maps] fix sort not applied to vector tile search request

* clean up

* clean comment

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* fix jest, integration, and functional test

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-20 13:52:28 -06:00
Mark Hopkin
7cbd0bf15d
[Fleet] Add fetch package unit tests (#134768)
* move getPathParts tests into describe block

* move archive tests to archive folder

* fetchFindLatestPackageOrUndefined tests

* fetchFindLatestPackageOrThrow test

* move generic tests to util fn

* fix spelling
2022-06-20 12:37:55 -07:00
Pete Hampton
52f15aa46d
Timeline telemetry: Collect less telemetry payloads for 8.3 (#134766)
* Update receiver.ts

* commit using @elastic.co
2022-06-20 19:35:39 +01:00
Bhavya RM
7e44314b4a
Graph a11y tests (#134694)
Graph a11y tests
2022-06-20 14:33:13 -04:00
Zacqary Adam Xeper
a1eaaa4680
{REDO} [RAM] Add Snooze Scheduling UI and API (#134512)
* Add inline range datepicker

* Finish interscheduler UI internals

* Add repeat summaries and begin implementing saving

* Fix unsnooze, move all UI to snooze notify badge

* Hook up snooze schedule api

* Finish Rule Ds List scheduling UI

* Fix half-baked dropdown work:

* Fix displaying yearly recurrences

* Move snooze scheduler into snooze panel

* Implement scheduler on shareable RuleStatusDropdown

* Fix title and typecheck

* Fix lint

* Fix typecheck

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Fix types and jest

* Fix jest

* Fix functional tests

* Fix Jest

* Fix test

* Re-enable snooze status on O11y

* Fix popover title and position

* Add 24h default to snooze schedule

* Fix delete schedule button text

* Disable daily recurrence when snooze is over 24h

* Fix button size

* Use default kibana tz in scheduler

* Add scheduled snooze notification badge

* Fix compressed styling

* Compress timezone dropdown

* Memoize select options

* Sort active snoozes in descending order

* re-structure

* unit test

* fix unit test

* fix collapse snooze notification

* re-structure RuleSnoozePanel components

* Clean up helper unit test descriptions

* add unit test for CustomRecurrenceScheduler

* Add rule_snooze helpers test

* Add base snooze panel tests

* Fix test

* Consolidate repeated types

* Fix bad merge

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
2022-06-20 13:11:09 -05:00
Terrance DeJesus
04ace86b0c
[Detection Rules] Add 8.3 rules (#134686) 2022-06-20 13:41:17 -04:00
James Gowdy
3d5a1a788b
[ML] Anomaly detection job from lens functional tests (#133899)
* [ML] Anomaly detection job from lens functional tests

* test commit

* adding dashboard and tests

* increasing tab switch timeout

* moving archive

* changes based on review

* fix for browser window being too small

* adding another resize after tab open

* removing commented code

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-20 17:34:42 +01:00
Kfir Peled
64f0d65037
[Cloud Posture] Using resource.id instead of deprecated resource_id in findings index (#134581)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-20 18:56:02 +03:00
James Rucker
8a15142218
[Enterprise Search] Adds an endpoint to list indices (#134608)
* rename indices to search_indices since it is scoped to search-*

* Refactor existing indices route to add a second more general option
2022-06-20 08:42:46 -07:00
Peter Pisljar
8d2e371062
update generateFilters method (#134303) 2022-06-20 17:36:40 +02:00
Joey F. Poon
e668693f36
[Security Solution] add running-processes response action API (#134573) 2022-06-20 08:25:03 -07:00
Lisa Cawley
7649b00689
[DOCS] Adds prerequisites in update rule API (#134151) 2022-06-20 08:19:38 -07:00
Matthias Wilhelm
69cd603a90
[Discover] Replace RxJS firstValueFrom with RxJS lastValueFrom to prevent problem with partial results (#134682) 2022-06-20 17:15:15 +02:00
Tre
44b2a2ded0
[Archive Migration] x-pack global_search/search_syntax (#134217)
* [Archive Migration] x-pack global_search/search_syntax

* Fix using sort.

* Drop the original archive.

* Drop the original archive.

* Reordered.

* Revert.
2022-06-20 16:13:40 +01:00
Dzmitry Lemechko
e57f207aad
[scalability testing] filtering out setup/teardown related APM transactions (#134697)
* [packages/kbn-performance-testing-dataset-extractor] filter server transactions by journey time range

* check only 1 ftr transaction for run is found

* fixes
2022-06-20 16:48:22 +02:00
Ioana Tagirta
f59fd4a343
Fix document URLs in the query analytics view (#134685)
* Fix document URLs in the query analytics view

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Remove engine prop from QueryClick

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-20 16:37:42 +02:00
Pablo Machado
b2ef47b2d8
Fix integrations with a long name break Host page UI (#134728) 2022-06-20 16:05:32 +02:00
Mark Hopkin
42e7ab347e
fix unable to proceed on fleet server steps adding agent (#134739) 2022-06-20 15:00:58 +01:00
Aurélien FOUCRET
8f24c1c8e3
Fix default sort order for meta engines. (#134729) 2022-06-20 15:50:38 +02:00
Julia Bardi
e6edc4b87b
[Fleet] fix schedule upgrade if no versions available (#134740)
* fix schedule upgrade if no versions available

* rewording
2022-06-20 06:41:32 -07:00
Shahzad
6de772db8d
[Synthetics] Don't show form validation error on loading (#134675) 2022-06-20 15:32:10 +02:00
Shahzad
f13de61291
[Synthetics] Added monitor summary page header (#134502)
Co-authored-by: Abdul Zahid <awahab07@yahoo.com>
2022-06-20 15:27:59 +02:00
Sergi Massaneda
8e61ed6b10
[Home] Solution panels updates when navLinks change (#134683)
* listen to navLinks changes

* navLinks changes update in kibana overview

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-20 15:25:21 +02:00
Joe Reuter
220126e329
delete all indices to enforce no data (#134646) 2022-06-20 14:18:26 +03:00
Garrett Spong
01b8482cd9
[Security Solution][Detections] Updates Get Installed Integrations route to use Internal SO Client (#134373)
## Summary

Follow up to https://github.com/elastic/kibana/pull/134299 that updates the `Get Installed Integrations` route to use the Internal SO Client and removes client-side privilege checks. This change ensures the `Related Integrations` feature works regardless of client users Fleet/Integration/SOM privileges, enabling all Security Solution users the ability to see which integrations are installed/configured with relation to their Detection Rules.

This change is helpful for low privilege users like T1/T2 Analysts that may not have more broad privileges like SOM or Fleet to still see which of their Detection Rules have the necessary integrations.

### Test instructions

To test, configure a role with the 3 mentioned privileges (SOM/Integrations/Fleet) as `None`, e.g.

<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/173156872-dfaece7e-a6ef-4774-b01d-e2fa7b66a068.png" />
</p>


Then the UI should _still show_ installed details (installed/not installed badges):

##### Rules Table
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/173658501-9b384ce6-ddef-4643-a36e-3da3082c8972.png" />
</p>


##### Rules Details
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/173658533-a60b6e96-7283-441a-8faa-ed186476c1ac.png" />
</p>


### Checklist

Delete any items that are not applicable to this PR.

- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
  * Working docs as part of https://github.com/elastic/security-docs/issues/2015
- [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

### Risk Ma
2022-06-20 12:39:03 +02:00
Mark Hopkin
e3aa999f21
[Fleet] Remove confirm enrollment & confirm incoming data steps for standalone first integration flow (#134474)
* remove data and agent confirmation steps from standalone flow

* bonus: downloading policy should set step as complete

* Bring confirm incoming data step for standalone agent

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-20 11:37:49 +01:00
renovate[bot]
41d3f8b83b
Update dependency @elastic/charts to v46.10.2 (#134594)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
Co-authored-by: Marco Vettorello <marco.vettorello@elastic.co>
2022-06-20 05:44:53 -04:00