Commit graph

33965 commits

Author SHA1 Message Date
patrykkopycinski cc4c1729d1
Bump jest related packages (#58095) 2020-06-20 21:05:09 +02:00
Xavier Mouligneau 73af8404e4
[SECURITY] Introduce kibana nav (#68862)
* Change the bootstrap of the app

* rename SiemPageName to SecurityPageName

* modify alerts routes

* modify cases routes

* modify hosts routes

* modify network routes

* modify overview routes

* modify timelines routes

* wip change management route

* change route for common

* some fixing from the first commit

* modify route for management

* update url format hook to use history

* bug when you click on external alerts from host or network

* improvement from josh feedback

* redirect siem to security solution

* a little clean up

* Fix types

* fix breadcrumbs

* fix unit test

* Update index.tsx

* Fix cypress

* bug remove timeline when you are in case configure

* Fix functionel test for management

* Fix redirect siem + ml

* fixes some cypress tests

* adds 'URL compatibility' test

* bring ml back to alerts

* review I

* Fix memory leak in timelines page

* fix storage bug for timeline search bar

* fix endpoint merge + functional test

* avoid timeline flyout toggle

* Fix link to ml score

* Fix breadcrumb

* Fix management url

* fix unit test

* fixes typecheck issue

* fixes remaining url cypress tests

* fixes timeline scenario

* fix link to details rule from timeline

* review remove absolute path for consistency

* Fixing resolver alert generation (#69587)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* [Security_Solution][Endpoint] Resolver leverage ancestry array for queries  (#69264)

* Adding alerts route

* Adding related alerts generator changes, tests, and script updates

* Fixing missed parameter

* Aligning the AlertEvent and ResolverEvent definition

* Fixing type errors

* Fixing import error

* Adding ancestry functionality in generator

* Creating some tests for ancestry field

* Making progress on the ancestry

* Fixing the ancestry verification

* Fixing existing tests

* Removing unused code and fixing test

* Adding more comments

* Fixing endgame queries

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* fix cypress test

* skip failing suite (#69595)

* [Endpoint] Fix flaky endpoints list unit test (#69591)

* Fix flaky endpoints list unit test
* un-skip test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* remove flaky test

Co-authored-by: patrykkopycinski <contact@patrykkopycinski.com>
Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2020-06-20 07:31:28 -04:00
spalger 02a3800c93 disable pageLoadMetrics job, it's gotten really flaky 2020-06-20 00:26:56 -07:00
Paul Tavares 9a41c1d0e7
[Endpoint] Fix flaky endpoints list unit test (#69591)
* Fix flaky endpoints list unit test
* un-skip test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-19 18:47:47 -04:00
spalger 6fe244ecba skip failing suite (#69595) 2020-06-19 14:47:57 -07:00
Jonathan Buttner 7c7191f794
[Security_Solution][Endpoint] Resolver leverage ancestry array for queries (#69264)
* Adding alerts route

* Adding related alerts generator changes, tests, and script updates

* Fixing missed parameter

* Aligning the AlertEvent and ResolverEvent definition

* Fixing type errors

* Fixing import error

* Adding ancestry functionality in generator

* Creating some tests for ancestry field

* Making progress on the ancestry

* Fixing the ancestry verification

* Fixing existing tests

* Removing unused code and fixing test

* Adding more comments

* Fixing endgame queries

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-19 10:00:08 -04:00
Jonathan Buttner 7ec8836eab
Fixing resolver alert generation (#69587)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-19 09:55:18 -04:00
Kevin Logan af7e2d2400
[Endpoint] add policy empty state (#69449) 2020-06-19 09:23:49 -04:00
Søren Louv-Jansen 84f8b43c38
[APM] Add support for dark mode (#69362)
* Use theme colors for stacktrace

* [APM] Use theme for all components

* Switch HoC withTheme to useTheme and convert classes to hooks

* Change hardcoded white to euiColorEmptyShade for ServiceMap

* Snapshots and Legends fix

* Switch to context and add test helper

* Fix tests and update snaps

* New snaps + new anomaly detection

* Remove shallow from testHelpers

* Remove commented tests

* Fix prettier

* Pass correct theme to cytoscape

* Fix ServiceMap

* fixes some rendering issues in service maps

* removed the old anomaly detection logic from service map popover contents, since it's been moved to a new component.

* Fix eslint, tsc lint issues and unit tests

* Remove types for styled-components default theme

* Update x-pack/plugins/apm/public/components/shared/KueryBar/Typeahead/Suggestions.js

Co-authored-by: Casper Hübertz <casper@formgeist.com>

* fix OuterTheme

* Ise function declaration instead of expression

Co-authored-by: Balthazar Gronon <git@balthazar.dev>
Co-authored-by: Balthazar Gronon <bgronon@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Oliver Gupte <olivergupte@gmail.com>
Co-authored-by: Casper Hübertz <casper@formgeist.com>
2020-06-19 12:53:25 +02:00
Walter Rafelsberger a489e5f0b1
[ML] Data Grid Histograms (#68359)
Adds support for histogram charts to data grid columns.
- Adds a toggle button to the data grid's header to enabled/disable column charts.
- When enabled, the charts get rendered as part of the data grid header.
- Histogram charts will get rendered for fields based on date, number, string and boolean.
2020-06-19 08:39:50 +02:00
Jonathan Buttner 639d1e0829
Resolving conflicts (#69597) 2020-06-18 21:06:10 -04:00
DeDe Morton 8a554f8aaa
[DOCS] Add related link to the ingest management docs (#69467)
* [DOCS] Add related link to the ingest management docs

* Add link to ingest manager topic in Kibana

* Remove link to ingest manager topic in kibana
2020-06-18 15:44:29 -07:00
Marshall Main 25b4f34f7c
Remove endpoint alert fields from signal mapping (#68934)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 18:42:27 -04:00
Spencer 051c93a6be
[ftr] add support for docker servers (#68173)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-06-18 15:24:16 -07:00
Brent Kimmel 700f53d3a3
Merge/restyle nodes table (#69098)
Adds panel views and drilldowns to Resolver
2020-06-18 16:33:57 -04:00
Jonathan Budzenski bdb65920f0 skip tests using hostDetailsPolicyResponseActionBadge 2020-06-18 15:22:12 -05:00
Lisa Cawley d26cbef389
[DOCS] Adds kibana-pull attribute for release docs (#69554) 2020-06-18 13:19:10 -07:00
Frank Hassanabad 00a60d8cbd
[SIEM][Detection Engine] Fixes 7.8 and 7.9 upgrade issue within rules where you can get the error "params invalid: [lists]: definition for this key is missing"
## Summary
* https://github.com/elastic/kibana/issues/69463
* See here for manual backport to 7.8: https://github.com/elastic/kibana/pull/69434

This fixes a bug where if you import rules and set your overwrite to `true` multiple times in a row within 7.7 you can end up with a lists array. When upgrading to 7.8, we change the name of `lists` to `exceptions_lists` and suddenly when you enable/disable a rule you can get the following error below:

![image](https://user-images.githubusercontent.com/1151048/84945824-fa60e280-b0a4-11ea-8e05-bffdec2e4765.png)

The fix is to allow the lists array still if it is present within saved objects to avoid seeing this error screen and being tolerant. We also fix the area of code that is causing the data bug so it cannot happen again with `exceptions_list` which is what the name of lists was renamed to causing this problem.

Note that this has unit tests and I also manually tested this by intentionally injecting a `lists` and `exceptions_lists` and using the UI to verify there wasn't another validation spot that needed to be relaxed to allow for the data.

### Checklist

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
2020-06-18 13:52:38 -06:00
Aleh Zasypkin b2a2aff75e
Document authentication settings. (#69284)
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2020-06-18 21:22:48 +02:00
Alison Goryachev 82ce718b01
[CCR] Fix follower indices table not updating after pausing (#69228) 2020-06-18 15:15:15 -04:00
Aaron Caldwell 55a73616ab
[Maps] Migrate maps client router to react (#65079)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 12:56:51 -06:00
Christiane (Tina) Heiligers b41ade3588
Fixes home page welcome link (#69539) 2020-06-18 11:50:03 -07:00
Nicolas Chaulet 0c477478a4
[Ingest Manager] Use long polling for agent checkin (#68922) 2020-06-18 14:42:27 -04:00
Shahzad 550b95f172
[RUM Dashboard] Initial version resubmit (#69531)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 20:32:10 +02:00
patrykkopycinski 72ec6eeea3
[Security Solution] Add cypress tests for global search bar (#68535) 2020-06-18 20:31:10 +02:00
Marshall Main 4a26f56f31
Update endpoint event and alert types (#69292)
* start redoing types

* finish redoing types

* fix bad test

* rework tests

* fix more types

* fix test

* Fix endpoints test and render error

* add deletePolicyStream to alerts api tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Paul Tavares <paul.tavares@elastic.co>
2020-06-18 13:50:53 -04:00
Sandra Gonzales f4b0d5cbbc
don't include group fields with no child fields in index pattern (#69457) 2020-06-18 13:49:03 -04:00
Jean-Louis Leysens 2436e2c9a6
[Console] Added license headers to worker files (#69387)
* added license headers to worker files

* add missing @notice

* update notice.txt

* fix notice

* remove start-end license block markers

* Added license pre-amble
2020-06-18 19:46:26 +02:00
Jean-Louis Leysens 38747670ca
[Ingest Pipelines] Encode URI component pipeline names (#69489)
* Properly encode URI component pipeline names

* safely URI decode to handle % case
2020-06-18 19:29:16 +02:00
Jean-Louis Leysens e0460290b0
[Ingest Pipelines] Add test coverage for ingest pipelines editor component (#69283)
* first iteration of CIT tests

* address pr feedback

- use dot notation where we can
- use string literals instead of + concatentation
2020-06-18 19:24:41 +02:00
Yara Tercero 2544daf21b
[SIEM][Exceptions] - Updates exception structure and corresponding UI types (#69120)
### Summary

This PR is meant to update the `ExceptionListItemSchema.entries` structure to align with the most recent conversations regarding the need for a more explicit depiction of `nested` fields. To summarize:

- Adds schema validation for requests and responses within `lists/public/exceptions/api.ts`. It was super helpful in catching existing bugs. Anyone that uses the api will run through this validation. If the client tries to send up a malformed request, the request will not be made and an error returned. If the request is successful, but somehow the response is malformed, an error is returned. There may be some UX things to figure out about how to best communicate these errors to the user, or if surfacing the raw error is fine.
- Updates `entries` structure in lists plugin api
- Updates hooks and tests within `lists/public` that make reference to new structure
- Updates and adds unit tests for updated schemas
- Removes unused temporary types in `security_solution/public/common/components/exceptions/` to now reference updated schema
- Updates UI tests
- Updates `lists/server/scripts`
2020-06-18 12:47:24 -04:00
Kerry Gallagher 38a88e1019
Amend export used for default (#69158)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 17:32:30 +01:00
Sébastien Loix 5e8d824a64
[Index template] Refactor index template wizard (#69037)
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
2020-06-18 18:28:12 +02:00
Joel Griffith c58f4d54a1
[rfc][skip-ci][reporting] Rendering API RFC (#64372)
* WIP working on reporting rfc round 2

* First draft is complete
2020-06-18 09:26:05 -07:00
Nicolas Chaulet acdae1595d
[Ingest Manager] Fleet require encrypted saved object encryption key … (#69408) 2020-06-18 12:15:13 -04:00
spalger 03a24fbb67 Revert "[RUM Dashboard] Initial Version (#68778)"
This reverts commit 72111702e9.
2020-06-18 09:13:26 -07:00
Stacey Gammon cf1d5e0260
Embed documentation on input and output state (#69443)
* Embed documentation on input and output state

* json -> js

* Add section on how id is used by custom time range badge action to determine isCompatible
2020-06-18 12:00:14 -04:00
Nathan L Smith af5874d9d7
[APM] Service map download in debug mode (#69350)
* [APM] Service map download in debug mode

Add a download button when debug mode is enabled that downloads JSON of
the map.

Add an upload button to the Storybook.
2020-06-18 10:53:27 -05:00
Nicolas Chaulet 338ae00384
[IngestManager] fix endpoint setup in api integration tests (#69503) 2020-06-18 11:37:14 -04:00
Thomas Neirynck a383468163
[Maps] Remove bounds param (#69396) 2020-06-18 11:28:49 -04:00
Daniil Suleiman 90f61abd3f
Fix home page loading if telemetry plugin disabled (#69394)
* Fix home page loading

* Fix jest test, update telemetry mocks
2020-06-18 18:27:46 +03:00
Shahzad 72111702e9
[RUM Dashboard] Initial Version (#68778)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
2020-06-18 17:13:28 +02:00
Frank Hassanabad e552a96121
[SIEM] Fixes REST formatter bugs from io-ts migration
## Summary

Fixes io-ts formatter bugs for REST and validation by:

* First trying to get the correct key from the io-ts context. If no keys are found, then it will fall back on trying to get the first name from the context.
* If the key is a value and an object then this will do a `JSON.stringify()` on the value object
* This fixes a few places where `formatError` was not being used within the code base resulting in `[object Object]` within the validations to show up.

### Checklist

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
2020-06-18 08:16:39 -06:00
Pierre Gayvallet 9e8448fc06
HttpService: duplicate some APIs from setup to start and clean mocks. (#69021)
* add apis to http start contract and clean mocks

* add apis to http start contract and clean mocks

* add `getStartContract` method

* fix new calls

* remove isTlsEnabled

* deprecates HttpServiceSetup.auth
2020-06-18 15:55:47 +02:00
Anton Dosov f33192d35f
[refactor] remove drilldown plugin, move components to uiActionsEnhanced (#69403)
* refactor: remove drilldown plugin by moving components to uiActionsEnhanced

* fix

* fix mistake in test

* fix i18n
2020-06-18 15:35:22 +02:00
Casper Hübertz 4f271c0cbb
[APM] Change the unsaved changes text color (#69493)
Fixes dark mode issue where the text would render dark on a dark background.
2020-06-18 15:32:26 +02:00
Cauê Marcondes 4ce91b342c
[APM] Add error rate chart to Errors overview and detail views (#67327)
* creating error rate chart

* adding error line chart

* creating error rate chart

* using date_histogram

* reapplying prettier style

* changing to theme color

* dont sync tooltips

* adding avg on error charts

* addressing pr comments

* adding possibility to disable legend toggle

* removing x-axis ticks from histogram

* return no percent when transaction count doesn return hits

* addressing PR comments

* addressing PR comments

* returning null when there is no transaction count

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 12:31:22 +02:00
Mikhail Shustov c8c20e4ca8
Add functional test for Kibana embedded in iframe (#68544)
* convert kbn test config into TS

* add test  for Kibana embedded in iframe

* run embedded tests in functional suite

* ignore tls errors in functional tests by default

* switch test to https

* remove env vars mutation

* allow to pass ssl config to Kibana

* pass ssl config to axios

* adopt KbnClient interfaces

* adopt KibanaServer

* use KbnRequester in security service

* set sameSiteCookies:None in test

* acceptInsecureCerts in chrome

* remove leftovers

* fix type error

* remove unnecessary field

* address comments

* refactor plugin

* refactor test

* make acceptInsecureCerts configurable

* run firefox tests on ci

* up TS version

* fix firefox.sh script

* fix path

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-18 12:02:56 +02:00
Pierre Gayvallet d2006ea8a0
savedObjects: add score to repository.find results (#68894)
* add `score` to repository.find results

* update generated doc

* fix FTR result set

* remove score from exports

* fix FTR for find API

* fix label

* fix tsdoc
2020-06-18 11:39:25 +02:00
Pierre Gayvallet 7dd4fa2618
Add section about marble testing to TESTING.md (#68749)
* Add section about marble testing

* improve `callServerAPI` example

* review comments

* add comment on abort observable anti-pattern
2020-06-18 11:37:41 +02:00