Commit graph

41243 commits

Author SHA1 Message Date
Kibana Machine
8d82359c3b
[Security Solution] Utilizes constants package and deletes duplicate code (#100513) (#100520)
## Summary

Utilizes constants package and deletes duplicate code

* Renames the `securitysolution-constants` to be `securitysolution-list-constants` to be specific
* Deletes duplicated code found during cleanup
* Moves more tests into the packages found along the way with the duplicated code
* Moves `parseScheduleDates` from `@kbn/securitysolution-io-ts-types` to `@kbn/securitysolution-io-ts-utils`

### 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: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-05-24 22:37:30 -04:00
Kibana Machine
e8af13643b
[Fleet] Add clear button to search input bars (#100476) (#100517)
Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
2021-05-25 00:22:28 +00:00
Kibana Machine
c7f827666a
[Fleet] Fix incomplete agent count message on policy tab (#100497) (#100515)
Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
2021-05-24 20:21:09 -04:00
Kibana Machine
a2c2f9823c
[Fleet] Add color distinction between offline and inactive agents (#100490) (#100516)
Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
2021-05-24 20:20:37 -04:00
Kibana Machine
f830abb3c3
[Alerting] Update README (#100478) (#100502)
* Updating readme

* Updating readme

* Fix plugin list docs

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-05-24 18:17:35 -04:00
Kaarina Tungseth
b34b129cb8
[DOCS] Updates release version for release notes (#100503) 2021-05-24 15:40:51 -05:00
Kaarina Tungseth
acdd723d4a
[DOCS] Dashboard changes for 7.13 (#99681) (#100498)
* [DOCS] Dashboard changes for 7.13

* Review comments

* Review comments

* Fixes link

* Fixes lens link
2021-05-24 13:23:37 -07:00
Kaarina Tungseth
b712e6b8e2
[7.x] [DOCS] 7.13 release notes (#100493)
* [DOCS] 7.13.0 release notes

* [DOCS] Fix capitalization in ML PRs

* Documenting issue 100285 as a known issue for 7.13.

* [DOCS] Adds another featured ML PR

* Update docs/CHANGELOG.asciidoc

Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>

* Update docs/CHANGELOG.asciidoc

Co-authored-by: DeDe Morton <dede.morton@elastic.co>

* Update docs/CHANGELOG.asciidoc

Co-authored-by: EamonnTP <Eamonn.Smith@elastic.co>

* Update docs/CHANGELOG.asciidoc

Co-authored-by: EamonnTP <Eamonn.Smith@elastic.co>

* Update docs/CHANGELOG.asciidoc

Co-authored-by: EamonnTP <Eamonn.Smith@elastic.co>

* Update docs/CHANGELOG.asciidoc

Co-authored-by: EamonnTP <Eamonn.Smith@elastic.co>

* Update docs/CHANGELOG.asciidoc

Co-authored-by: EamonnTP <Eamonn.Smith@elastic.co>

* Update docs/CHANGELOG.asciidoc

Co-authored-by: EamonnTP <Eamonn.Smith@elastic.co>

* Update docs/CHANGELOG.asciidoc

Co-authored-by: EamonnTP <Eamonn.Smith@elastic.co>

* Update docs/CHANGELOG.asciidoc

Co-authored-by: EamonnTP <Eamonn.Smith@elastic.co>

* Review comments

* [7.x] [DOCS] 7.13 release notes

* Adds back pre 7.13 rn

Co-authored-by: lcawl <lcawley@elastic.co>
Co-authored-by: nastasha.solomon <nastasha.solomon@elastic.co>
Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>
Co-authored-by: DeDe Morton <dede.morton@elastic.co>
Co-authored-by: EamonnTP <Eamonn.Smith@elastic.co>
2021-05-24 14:59:09 -05:00
Kibana Machine
ca724ab1fa
Remove chrome.navLinks.update (#99633) (#100483)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-05-24 15:55:43 -04:00
Quynh Nguyen
1a6d9312bc
[ML] Fix missing selected-interval styling for Explorer anomaly charts and mismatched scheduled markers styling (#100272) (#100479)
* [ML] Fix missing selected-interval sass

* [ML] Only show interval box in explorer page and not in dashboard

* [ML] Remove console

* [ML] Move showSelectedInterval up

* [ML] Update snapshot

* [ML] Update styling of scheduled events to match and to be visible

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-24 14:55:04 -04:00
Kibana Machine
1385c70b8c
Add remaining descriptions to security usage telemetry schema. (#100454) (#100473)
Co-authored-by: Pete Hampton <pjhampton@users.noreply.github.com>
2021-05-24 14:39:28 -04:00
Jorge Sanz
2da39ff44e
[Maps][Docs] Fix ems server config path in compose example (#100463) (#100484) 2021-05-24 11:19:47 -07:00
Kibana Machine
e7434b4d24
[dev_docs] How to build a kibana distributable tutorial (#99827) (#100466)
* docs(NA): [dev docs] Add how to build a Kibana distributable tutorial

* docs(NA): including last step about building a kibana distributable tutorial

* docs(NA): add dev docs images

* docs(NA): include image for target folder with os packages and distributable

* docs(NA): apply feedback received on the PR review

* chore(NA): add rpm to brew

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

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

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

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

* docs(NA): update docker names to capitalized

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-05-24 12:56:52 -04:00
Kibana Machine
c48fd4ba03
Bump Node.js from version 14.16.1 to 14.17.0 (#100314) (#100336)
Co-authored-by: Thomas Watson <w@tson.dk>
2021-05-24 16:38:02 +00:00
Kibana Machine
735ab923f1
security solution and lists to TS incremental builds (#100447) (#100464)
* lists to ts incremental builds

* security_solution to ts incremental

* import ResizeObserver explicitly as it is not declared in dom types

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-05-24 12:30:40 -04:00
Kibana Machine
ac96279efe
[Alerting] Passing additional rule fields to rule executor (#99819) (#100462)
* Passing additional rule fields to rule executor

* Fixing types check

* Api docs

* Adding enabled and actions

* Api docs

* Encapsulating rule information into RuleConfig type

* Functional tests

* Functional tests

* Adding producer, ruleTypeId and ruleTypeName

* Api docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-05-24 12:19:21 -04:00
Kibana Machine
2057412fc6
[Security Solution][Endpoint] Add host isolation action to the endpoint list (#100240) (#100460)
* Refactor TableRowAction into separate component and enable menu close on item click
* add `show=isolate` to valid url param string for details panel
* Reusable BackToEndpointDetailsFlyoutSubHeader component
* new FlyoutBodyNoTopPadding compoent + refactor Policy response to use it
* Endpoint Isolate flyout panel
* New Service for doing isolate/unisolate of hosts
* Refactor detection isolate API call to use common method from new service

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2021-05-24 11:45:58 -04:00
Thomas Neirynck
02c4133c98
[Maps] Allow layers to be excluded from fit to data (#100098) (#100459) 2021-05-24 11:39:58 -04:00
Brian Seeders
f1aef4eff2 skip flaky suite (#100445) 2021-05-22 18:07:02 -04:00
Kibana Machine
b2297d841d
SO migrations: Improves transformation error creation and testing (#100297) (#100435)
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2021-05-21 22:47:39 -04:00
Kibana Machine
c4b91ace78
Remove circular dependency between features and security (#100206) (#100341)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-05-21 16:33:37 -04:00
Kibana Machine
0f5a32c429
Ban use of lodash.template (#100277) (#100332)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-05-21 18:39:20 +00:00
spalger
565a30831c skip failing suite (#98352)
(cherry picked from commit 3ad46bd1ae)
2021-05-21 09:40:36 -07:00
Kibana Machine
c635144ebe
chore(NA): correctly setup dep order on js_library to fix windows build (#100420) (#100428)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-05-20 20:57:21 -04:00
Matthew Kime
292563d395
[7.x] [index patterns] deprecate IIndexPattern and IFieldType interfaces (#100013) (#100337)
* [index patterns] deprecate IIndexPattern and IFieldType interfaces (#100013)

* deprecate IIndexPattern and IFieldType

* update api docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* update docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-20 20:23:26 -04:00
Kibana Machine
f7d8775477
[data.search] Add Kibana request to search strategy dependencies (#98566) (#100425)
* [data.search] Add Kibana request to search strategy dependencies

* Don't register internal strategy

* Update docs

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
2021-05-20 19:06:36 -04:00
Kibana Machine
0d0d0df204
Reduce the lists limits to the current max + 15kb (#100419) (#100421)
## Summary

Reduces the lists limits to the current max + 15kb

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-05-20 18:30:36 -04:00
Kibana Machine
533d32f7fa
Adds two more packages and moves files into the packages (#100375) (#100418)
## Summary

* Adds package `kbn-securitysolution-list-api`
* Adds package `kbn-securitysolution-list-hooks`
* Moves files into the packages
* Moves a few additional types into the other packages such as the `kbn-securitysolution-io-ts-types` package to remove more things from the shard_export/shared_import between lists and security solution
* Removes more duplicated code

### 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: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-05-20 16:33:34 -04:00
Stacey Gammon
8ee9c3abc4
Fix a bunch of bugs with APIDocs system (#99589) (#100417)
* Remove custom code, add in a hack

* remove artifical limit

* Fix arrow functions in interfaces not having children

* Update docs

* Update api docs after merge from master

* update api docs after merge from master

* update api docs
# Conflicts:
#	api_docs/core.json
#	api_docs/data.json
#	api_docs/data_index_patterns.json
#	api_docs/deprecations.mdx
#	api_docs/features.json
#	api_docs/licensing.json
#	api_docs/reporting.json
#	api_docs/spaces.json
2021-05-20 16:11:31 -04:00
Alison Goryachev
6d234d1765
[CCR] Replace EuiCodeEditor with EuiCodeBlock (#100122) (#100415) 2021-05-20 15:57:43 -04:00
Stratoula Kalafateli
e72ddfa483
[TSVB] Update TSVB sample viz with the default timerange mode (#100376) (#100407) 2021-05-20 12:54:03 -04:00
Kibana Machine
f820c78760
[Dashboard] Embeddable Migrations for By Value Panels (#99715) (#100364)
* Implemented embeddable by value migrations

Co-authored-by: Devon Thomson <devon.thomson@hotmail.com>
2021-05-20 12:34:15 -04:00
Kibana Machine
3e2b1fb9ab
Add back install button for integrations that aren't installed yet (#100370) (#100400)
Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2021-05-20 15:01:57 +00:00
Kibana Machine
ac09981bb6
Refactor away from expected error. Handle 404 as any other error. (#100383) (#100398)
Co-authored-by: Pete Hampton <pjhampton@users.noreply.github.com>
2021-05-20 10:59:53 -04:00
Ignacio Rivas
f6b686490d
[Ingest pipelines] fix default paramenter for ignore_missing in csv processor (#100316) (#100396)
* fix: set ignoreMissingField to true by default
* Add missing serializer to trim fieldConfig

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-20 10:51:59 -04:00
Alison Goryachev
186fdf9733
Rename client integration test folders (#100119) (#100395) 2021-05-20 10:50:26 -04:00
Kaarina Tungseth
0cec744242
[DOCS] Fixes Discover link on runtime fields page (#100335) (#100402) 2021-05-20 06:51:59 -07:00
Pierre Gayvallet
3e1e047bc4
[7.x] Migrate joi to 17.4.0 and adapt the codebase (#99899) (#100378)
* Migrate `joi` to `17.4.0` and adapt the codebase  (#99899)

* bump joi to 17.4.0, start adapting stuff

* remove custom validation rule, adapt instead

* fix error handling

* fix error handling again

* fix strings type & validation

* fix buffers and arrays

* fix bytes

* fix bytes_size type

* update conditional_type error messages in tests

* fix duration and map types

* first attempt to fix union type error messages

* revert conditional type assertions back to master state

* fix object type

* fix record type

* fix stream types

* rename test files to match sources

* fix union type tests

* temporary adapt feature/home usages of Joi

* fix lint

* adapt test assertion

* fix http config schema validation

* fix @kbn/test Config class

* fix config again

* fix reporting schema tests

* fix security solution schema

* adapt url tests

* remove useless comment

* remove space

* typo

* review comments
# Conflicts:
#	src/core/server/http/__snapshots__/http_config.test.ts.snap

* allow '0' value for server.host

* fix config def

* update snapshots
2021-05-20 09:04:31 -04:00
Jean-Louis Leysens
3629e76251
[7.x] [Screenshot mode] Create plugin to provide "screenshot mode" awareness (#99627) (#100331)
* [Screenshot mode] Create plugin to provide "screenshot mode" awareness (#99627)

* initial version of the screenshot mode service

* First iteration of client side of screenshot mode plugin

Also hooked it up to the chromium browser imitating the preload
functionality of electron to set up the environment before
code runs.

* First implementation of server-side logic for detecting
screenshot mode

* fix some type issues and do a small refactor

* fix size limits, docs and ts issues

* fixed types issues and made sure screenshot mode is correctly detected on the client

* Moved the screenshot mode header definition to common
Added a server-side example for screenshot mode
Export the screenshot mode header in both public and server

* move require() to screenshotMode plugin

* Update chromium_driver.ts

* cleaned up some comments, minor refactor in ReportingCore and
changed the screenshotmode detection function to check for a
specific value.

* fix export

* Expanded server-side screenshot mode contract with function that
checks a kibana request to determine whether we in screenshot
mode

* added comments to explain use of literal value rather than external reference

* updated comment

* update reporting example

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Timothy Sullivan <tsullivan@elastic.co>
Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/reporting/server/core.ts
#	x-pack/plugins/reporting/server/plugin.ts

* satisfy for tslint formatting

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-20 07:58:50 -04:00
Michael Dokolin
58d05a05e3
[Reporting] Add logging of CPU usage and memory consumption by Chromium (#99109) (#100384)
* Add logging of CPU usage by chromium
* Add logging of memory consumption by chromium
* Add PDF report byte length logging
* Add PNG report byte length logging
# Conflicts:
#	x-pack/plugins/reporting/server/browsers/chromium/driver_factory/index.ts
2021-05-20 07:52:21 -04:00
Kibana Machine
e0e106516e
Remove PEG.js generator from the timelion runtime (#100327) (#100380)
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-05-20 07:39:22 -04:00
Pierre Gayvallet
e1e68fe949
remove ui settings client-side validation (#100311) (#100379)
* remove ui settings client-side validation

* fix linter

* fix tests

* update generated doc
2021-05-20 07:33:58 -04:00
Kibana Machine
7d0deec6cb
[Security Solutions] Re-arranges and adds more packages to remove copied code (#100310) (#100369)
## Summary

* Creates a `securitysolution-list-utils` packaged and moves the first set of utilities into there
* Fixes a slight bug with `kbn-securitysolution-io-ts-list-types` where the wrong name was used
* Moves _all_ of the lists schemas and types into the package `kbn-securitysolution-io-ts-list-types`
* Removes copied code found in a few places

## Tech debt
* Some spots I have to use an `any` in the package as Kibana kbn packages don't have the types I need
* Some spots I copy constants until we can straighten out those pieces.
* I keep copied mock files until we figure out how to share mocks from these packages without adding weight or we create dedicated mock packages for all of this. 


### 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: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-05-19 19:56:33 -04:00
Kevin Logan
05fc567a28
[Security Solution] Add linux malware config options and migration (#100166) (#100368) 2021-05-19 19:46:58 -04:00
spalger
8fa93a225d skip flaky suite (#100372) (#96997)
(cherry picked from commit be97fae12e)
2021-05-19 15:51:47 -07:00
Kibana Machine
71fd3a793a
Cleanup package.json resolutions. (#99456) (#100365)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2021-05-19 18:33:09 -04:00
liza-mae
d83ba4fbb8
Upgrade functional test fixes (#100306) (#100361)
* Upgrade functional test fixes

* Fix lint issues
2021-05-19 17:06:58 -04:00
Kibana Machine
eae06dcc01
[Enterprise Search] Upgrade Kea to 2.4.2 (#100299) (#100359)
Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-05-19 17:04:23 -04:00
Kibana Machine
4aaffe931b
crypto-js 3.3.0 -> 4.0.0 (#100347) (#100356)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-05-19 16:29:06 -04:00
Zacqary Adam Xeper
5e6aeba0b0
[Metrics UI] Replace date_histogram with date_range aggregation in threshold alert (#100004) (#100349)
* [Metrics UI] Replace date_histogram with date_range aggregation in threshold alert

* Remove console.log

* Fix rate aggregation and offset
2021-05-19 14:41:54 -04:00