Commit graph

42947 commits

Author SHA1 Message Date
Angela Chuang
051eec703d
[Security Solution] Get endpoint metadata (#99772)
* getHostEndpoint

* add endpointContext

* add deps

* get endpoint info

* clean up

* fix tests error

* fix types

* fix unit tests

* fix unit tests

* fix unit tests

* fix types error

* fix types

* fix api integration test

* fix api integration tests

* add comment

* review

* add getHostInfo

* rename getHostInfo into getHostMetaData

* fix unit test

* fix types
2021-05-11 14:14:55 +01:00
Anish Khanna
788c25b228
[Index management] Add selected index count (#99652) 2021-05-11 14:10:34 +01:00
Alison Goryachev
5959b606ec
[CCR] Unskip component integration tests (#99385) 2021-05-11 08:55:46 -04:00
Alison Goryachev
72c25ea10f
[Index Management] Unskip indices API integration test (#99379) 2021-05-11 08:53:16 -04:00
Josh Dover
d97f958127
Add @removeBy tag for legacy ES client types (#99616) 2021-05-11 14:30:22 +02:00
Paul Tavares
997e179f7a
[Security Solution][Endpoint] Additional Unit Tests for the Event Filters Page (#99463)
* event filters middleware tests for listpage
* additional tests for reducer of event filters
* use Async Resource builders in middleware
* Refactor listPage selectors to use `getLastLoadedResourceState()`
* New utility for mocking core.http apis that can be reused
* Add ability to set experimental featurers on `AppContextRender` mock utility
2021-05-11 08:21:46 -04:00
Anton Dosov
506b0284c4
Remove resize-observer from FilterBar (#99603) 2021-05-11 14:08:31 +02:00
Dmitry Shevchenko
ea8aa69db3
Fix deleted rule view (#99406) 2021-05-11 12:40:07 +02:00
Vadim Dalecky
dc5e28d79c
chore: 🤖 bump numeral-js dependency (#99609)
Fixes bing integer formatting bug.

 Closes: #59415
2021-05-11 12:26:01 +02:00
Mikhail Shustov
5fde16c2b3
Do not mutate config in place during deprecations (#99629)
* refactor config deprecations to avoid config mutations

* remove dynamic access keys in core deprecations.

* refactor custom config deprecations to match the new signature

* improve config deprecations fixtures for nested keys

* add a test for xpack.banner config deprecations

* key --> path, add a test for invalid command
2021-05-11 05:41:48 -04:00
Marius Dragomir
df752023a0
fix for move of transport page to network page (#99642)
* fix for move of transport page to network page

* Update src/core/public/doc_links/doc_links_service.ts

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
2021-05-11 11:30:29 +02:00
Jean-Louis Leysens
e96e2d7775
[Data] Require non-empty object when editing query as dsl (#99366)
* require non-empty object when editing query as dsl

* added test for filter editor behaviour

* fix typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-11 10:07:38 +02:00
Mikhail Shustov
d1d741b479
remove joi usage from x-pack (#99401)
* remove unused helper

* remove joi usage from Security Solutions

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-11 11:04:30 +03:00
Andrew Pease
4831826bae
Update Timeline Template README.md (#95814)
## Summary

`xpack.security_solution.signalsIndex` is listed to be added to `kibana.dev.yml`, however that generates:
```
FATAL  Error: Unknown configuration key(s): "xpack.security_solution.signalsIndex". \
Check for spelling errors and ensure that expected plugins are installed.
```
I think this should be `xpack.securitySolution.signalsIndex`

This is for the steps to create a timeline template.

### Checklist

Delete any items that are not applicable to this PR.

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

### 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)
2021-05-10 22:38:20 -04:00
Justin Ibarra
45c6ca42d0
[Detection Rules] Add 7.13 rules (#99725) 2021-05-10 19:48:57 -04:00
Nathan Reese
b248472e82
[Maps] show empty tooltips with actions on click (#99337)
* [Maps] show tooltips with actions on click

* clean up

* call canShowTooltip in _getTooltipFeatures

* move view into action

* cleanup

* i18n

* add comment to clarify if statement

* tslint

* fix security tslint

* fix jest tests

* clean up

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-10 17:46:33 -06:00
Zacqary Adam Xeper
b5380697cc
[Fleet] Add keep_enabled flag to preconfiguration to prevent disabling certain inputs (#99656)
* [Fleet] Add keep_enabled flag to prevent disabling inputs

* Remove console.log

* Fix missing key definition
2021-05-10 18:16:03 -05:00
Scotty Bollinger
0b5d323613
[Workplace Search] Fix bug with updating a role mapping (#99688)
`id` is not needed by the server as a body prop, as it’s inferred from the params.
2021-05-10 18:30:57 -04:00
Yuliia Naumenko
fcc2ac5799
Fixed alerting health check behavior when alerting cannot find its health task in Task Manager. (#99564)
* Fixed alerting health check behavior when alerting cannot find its health task in Task Manager.

* fixed test

* added unit tests
2021-05-10 15:24:42 -07:00
Brian Seeders
6d269c5062
Revert "[SecuritySolution] Get endpoint metadata (#99452)" (#99719)
This reverts commit 5893d67b4b.
2021-05-10 17:42:39 -04:00
Clint Andrew Hall
e0c57e08fd
[labs] Fix reset overreach; add method for testing project (#99672) 2021-05-10 16:27:35 -05:00
Christiane (Tina) Heiligers
59f42ec148
[Saved object migrations] Collect all documents that fail to transform before stopping the migration (#96986)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-10 17:12:24 -04:00
Brian Seeders
7262ac53c2
[CI] Don't do CI stats reporting/failures for feature branch PRs (#99668) 2021-05-10 16:38:32 -04:00
gchaps
38116e89fd
[DOCS] Adds link between security docs (#99669) 2021-05-10 13:01:56 -07:00
Angela Chuang
5893d67b4b
[SecuritySolution] Get endpoint metadata (#99452)
* getHostEndpoint

* add endpointContext

* add deps

* get endpoint info

* clean up

* fix tests error

* fix types

* fix unit tests

* fix unit tests

* fix unit tests

* fix types error

* fix types

* fix api integration test

* fix api integration tests

* add comment

* review

* add getHostInfo

* rename getHostInfo into getHostMetaData

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-10 15:21:36 -04:00
Mikhail Shustov
65a2177dcf
cleanup list of allowed circular deps. (#99654) 2021-05-10 14:53:09 -04:00
ymao1
8e3604fe11
[Alerting UI] Fixing behavior when trying to render an Index Threshold visualization with invalid data (#99518)
* Showing error message not object. Removing error toaster

* Updating unit tests

* Fixing i18n

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-10 14:46:01 -04:00
Quynh Nguyen
e9e7314c3b
[ML] Make swimlane annotation markers look less like a 0 (#99592)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-10 13:18:40 -05:00
Kyle Pollich
baf11e8749
[Fleet] Remove timestamp field from component template (#99619)
* Remove timestamp field from component template

Elasticsearch bug fixed upstream allows us to remove this field from the
template: elastic/elasticsearch/#58956

Closes #71095

* Remove timestamp field from functional test
2021-05-10 14:11:23 -04:00
Patryk Kopyciński
ec66797c7c
[Osquery] Fix Osquery plugin initialization (#99591) 2021-05-10 19:44:01 +02:00
Dan Panzarella
dfe8637c52
[Security Solution] Add Host Isolation API (#98842) 2021-05-10 13:31:11 -04:00
Mikhail Shustov
16e1414ae0
add codeowners for xpack.banners (#99630) 2021-05-10 19:05:33 +02:00
Lisa Cawley
c787495f00
Use doc link services in rollups (#99137) 2021-05-10 10:01:19 -07:00
Frank Hassanabad
c092fbfe1a
[Security Solutions] (Phase 3, part 1) Removes dependency on security_solution plugin from lists (#99431)
## Summary

Removes the dependency of security_solution from the lists plugin

* Removes some of the deprecated types in favor of the new kbn package
* Adds a workaround in the kbn packages of removing the ?? and `a?.b?.c` typescript since kbn packages cannot transpile it
* Exposes the test_utils from the kbn package 

### 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
2021-05-10 10:16:19 -06:00
Sergi Massaneda
518da5bcc1
[SecuritySolution] Histogram IP legends error fixed (#99468)
* make sure stackByField exists

* fix types

* fix unit test

* skip extra request for non-ip queries

* elasticserach query changes to prevent corrupted data response bug

* client changes to split ip stacked histogram queries in two, inspect modal shows all requests and responses

* lint fixes

* test for useMatrixHistogramCombined added

* comment added on new multiple prop

* changed query to always contain value_type:ip for ip queries

Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-10 17:54:55 +02:00
Pablo Machado
0ffe4c7a54
[SecuritySolution] Add success toast to timeline deletion (#99612)
* Add success toast to timeline deletion

* Add unit tests for timeline deletion toast

* Refactor export_timeline to use useAppToasts instead of useStateToaster
2021-05-10 16:58:50 +02:00
Alison Goryachev
5f618da802
[Rollups] remove use of custom cluster client (#99623) 2021-05-10 10:19:38 -04:00
Ashokaditya
da890fd24c
[Security Solution][Endpoint] Validate path values for trusted apps (#99035)
* Validate path values for trusted apps

show soft warnings when path values are not valid.

refs elastic/security-team/issues/315

* use case insensitive flag

refs 71ac9bdeaf

* correct check for windows paths

review changes

* rename

review changes

* add validations to include ? for wildcards

also add more tests
refs elastic/security-team/issues/315

* update copy for soft errors

refs elastic/security-team/issues/315

* refactor validation logic

review changes

refs elastic/kibana/pull/99035#discussion_r625106658

* allow wildcards in path names

refs elastic/security-team/issues/315

* stack soft errors

refs elastic/security-team/issues/315

* Update x-pack/plugins/security_solution/public/management/pages/trusted_apps/view/components/create_trusted_app_form.tsx

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>

* remove links to private repos

review changes

* improve windows path regex

refactor tests for better debugging
review changes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2021-05-10 16:18:48 +02:00
Dominique Clarke
9715157467
[Uptime] add data mock to rtl helpers (#99483)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-10 10:15:49 -04:00
Dominique Clarke
2f90e73569
[Uptime] remove settings flaky test comment (#99402)
* remove outdated comment
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-10 10:15:01 -04:00
Dominique Clarke
23bef5193a
[Uptime] remove border from waterfall chart sidebar panel (#99079)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-10 10:14:03 -04:00
Tiago Costa
8b77d7ae12
skip flaky suite (#99006) 2021-05-10 14:40:56 +01:00
Tiago Costa
7695d678d8
skip flaky suite (#89031) 2021-05-10 14:31:32 +01:00
Tiago Costa
ff9cc4c362
skip flaky suite (#98974) 2021-05-10 14:27:29 +01:00
Jen Huang
903b8751da
Fix yaml settings editor styling (#99558) 2021-05-10 08:13:59 -04:00
Maja Grubic
dd4f3f1a9d
[Search Source] Exclude metafields from fields request (#99443)
* [Search Source] Exclude metafields from fields request

* Fix unit test

* Adding additional unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-10 10:17:44 +01:00
Yara Tercero
ebe85665a9
[Security Solution][Exceptions] - Fix operator logic for large value lists (#99490)
### Summary
Logic for operators was off, this fix adds unit tests to ensure this bug is not hit again and updates logic
2021-05-10 01:14:24 -04:00
Stacey Gammon
f669addb40
Convert styleguide to mdx and add section on export * (#99527) 2021-05-08 08:26:47 -04:00
Tim Sullivan
f73da420ff
[Reporting] Update Puppeteer to version 8.0.0 and Chromium to r856583 (#98688)
* Update Puppeteer to 8.0.0

Updates Chromium to r856583
Links to new build of Linux headless_shell in the Kibana team GCS bucket
Links to main download site of Chromium for Mac and Windows
Removes Mac and Windows compatibility from the Chromium build scripts

* add functional tests for large dashboard

* ensure png comparison is working

* add test for large dashboard pdf

* update arm64 binary checksum

* update README

* more readme update

* Update x-pack/build_chromium/README.md

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-05-07 09:54:33 -07:00
James Gowdy
518da4daa1
[ML] Fixing route handler types and schemas (#98636)
* [ML] Fixing route handler types and schemas

* commenting out type error

* updates to fix functional tests

* updating jest test

* updating test expect

* fixing tests

* fixing test expect

* changes based on review

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-07 13:08:25 +01:00