Commit graph

37517 commits

Author SHA1 Message Date
Mikhail Shustov 93473e4f58
bump elastic/elasticsearch-js version to 7.10.0-rc1 (#81288) 2020-10-21 21:36:19 +02:00
Mikhail Shustov a18856ad49
run ssl tests on CI (#81320) 2020-10-21 21:06:22 +02:00
Chris Roberson f2df965c89
Fix alert defaults (#81207)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-21 14:51:16 -04:00
Melissa Alvarez 7349897ec1
[ML] DF Analytics wizard: ensure user can set mml manually or select to use given estimate (#81078)
* add switch for using estimated mml

* persist useEstimatedMml when switching between steps

* update translation name to be consistent
2020-10-21 14:49:14 -04:00
Mike Côté 9aa92904c3
Add UI notifier to indicate secret fields and to remember / reenter values (#80657)
* Initial work

* Add messaging to Jira connector

* Add messaging to PagerDuty connector

* Add messaging to Email connector

* Add messaging to ServiceNow connector

* Add messaging to Webhook connector

* Add unit tests

* Fix jest test

* Apply design feedback

* Apply copy feedback

* Fix failing test

* Fix connector descriptions for jira and resilient

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-21 14:07:41 -04:00
Chris Roberson 7017ca6f5b
[Monitoring] Use async/await (#81200)
* Use async/await

* Make sure we tell angular what's up
2020-10-21 14:01:02 -04:00
Jen Huang f4e5a3b8da
[Fleet] Show agent/package policy name on successful deletion (#81247)
* Return package policy name on successful deletion

* Return agent policy name on successful deletion
2020-10-21 10:58:53 -07:00
Jen Huang 71511765db
Show no agents found message when inactive and upgradable filters are applied (#81257) 2020-10-21 10:58:37 -07:00
Chris Roberson 5aa197bb64
[DOC] Update docs for new monitoring alerts (#80922)
* Update docs for new alerts

* PR feedback

* Fix bad copy/pate
2020-10-21 13:38:08 -04:00
Christiane (Tina) Heiligers f42f767bf0
Kibana usage collection to ts project refs (#81265) 2020-10-21 10:33:51 -07:00
Garrett Spong bd1ddcd365
[Security Solution][Detections] Updates generated tactics and techniques (#81270)
Fixes the `extract-mitre-attacks` script and generates `v6.3` tactics and techniques. Will move to `7.x` as part of the structural changes to support sub-technique in https://github.com/elastic/kibana/issues/75771.
2020-10-21 11:15:16 -06:00
gchaps 32e54bbbdd
[DOCS] Fixes errors in KQL examples (#81223) 2020-10-21 08:41:22 -07:00
Christiane (Tina) Heiligers 0395d686bf
Extracts newsfeed plugin to ts project refs (#81254) 2020-10-21 08:22:25 -07:00
Chris Cowan 2a82bddfe2
[Metrics UI] Add timerange and sorting to node detail metadata request (#81033) 2020-10-21 08:10:31 -07:00
Shahzad ab8bf782c3
[UX] Fix map color variance and apply proper filter for extended stats (#81106)
Fixes: #81208 correctly coloring the UX map
2020-10-21 09:50:28 -05:00
Andrew Cholakian 64e17233ba
[User Experience] Use EuiSelect for percentiles instead of SuperSelect (#81082)
Fixes #81031 by switching from EuiSuperSelect to an EuiSelect for percentile selection
2020-10-21 09:49:07 -05:00
Chris Roberson b87401a61e
[DOCS] Add link for monitoring ssl settings (#81057)
* Add link for ssl settings

* Update docs/settings/monitoring-settings.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update docs/settings/monitoring-settings.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2020-10-21 10:32:16 -04:00
Tyler Smalley 9226321051
[test] Await loading indicator in monitoring test (#81279)
This is being used in other click* helpers, but was missing here.

Resulting in failures in #80399

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-21 07:28:34 -07:00
Jean-Louis Leysens 43a055f9b9
[ILM] Minor copy and link additions to cloud CTA for cold phase (#80512)
* Add CTA for warm phase too

- add/updated component integration tests for checking callouts
- sharing deployment url from cloud plugin

* update comment

* fix i18n

* scope changes to cold phase only

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-21 16:24:30 +02:00
Sébastien Loix cd19bd3621
[Mappings editor] Add scaled_float and date_range comp integration tests (#81287) 2020-10-21 14:37:23 +02:00
Maja Grubic 3df30e08cd
[Discover] Deangularize context.app (#80851)
* [Discover] Deangularize context.app

* Add a unit test

* Addressing PR comments; fixin I18n provider; replacing kui with EUI code

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-21 13:36:37 +01:00
Justin Kambic c11163d004
[O11y Overview] Add code to display/hide UX section when appropriate (#80873)
* Add code to display/hide UX section when appropriate.

* Suppress errors with link to dedicated issue.

* Fix typo in call to action.

* Remove type error suppression.
2020-10-21 07:26:08 -04:00
Matthias Wilhelm 3a969f4e8f
[Discover] Extend DiscoverNoResults component to show different message on error (#79671)
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
2020-10-21 13:16:37 +02:00
Daniil Suleiman e8fffe9053
Fix tagcloud word overlapping (#81161)
* Fix overlaps on resize

* Set up font family

* Update snapshots
2020-10-21 13:32:13 +03:00
MadameSheema fce3031c4f
[Security Solution] Fixes flaky test rules (#81040)
* deletes the created rule in the after hook

* fixes failing test

* changes rule deletion order

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-21 12:30:04 +02:00
Bohdan Tsymbala 8010686a06
Changed the code to avoid tech debt with hacky solutions after receiving comments on EUI issue reported about this problem. (#81183)
* Changed the code to avoid tech debt with hacky solutions after receiving comments on EUI issue reported about this problem.

* Updated snapshots.
2020-10-21 12:09:15 +02:00
Christos Nasikas ad2fe78514
[Security Solution][All] Replace old markdown renderer with the new one (#80301) 2020-10-21 10:32:33 +03:00
Grzegorz Banasiak 42c7c0d4ab
Add namespaced version of the API call (#81278)
* Add namespaced version of the API call

Docs are missing the namespaced version of the API call for dashboard import/export.
2020-10-21 09:20:54 +02:00
Walter Rafelsberger 4ba2fdbc2f
[ML] Data Frame Analytics: Fix race condition and support for feature influence legacy format. (#81123)
- Fixes a race condition where searches for data grid results with different parameters would return in different order with the wrong results on display. Fix uses a pattern to cancel useEffect callback for getIndexData().
- Fixes identifying pre 7.10 feature influence format for outlier detection and will display a callout on the results page with information for a workaround.
- To fix identifying the legacy format, some cleanup of other code relating to the old format had to be done. The ml results object field is no longer treated as a "special" field for outlier detection and is treated and retrieved in the same way as other fields.
- Adds an error callout if no Kibana index pattern is available for source/dest index.
2020-10-21 07:57:16 +02:00
Nicolas Chaulet b362ed1c6b
[Fleet] Fix POLICY_CHANGE action creation for new policy (#81236) 2020-10-20 23:25:58 -04:00
Candace Park b4864ab265
[Security Solution][Endpoint][Admin] Malware user notification checkbox (#78084)
includes migration for endpoint package policy 7.11
2020-10-20 22:42:15 -04:00
Yara Tercero 858fa47f8b
[SecuritySolution][Unit Tests] - fix flakey unit test (#81239)
### Summary

Fixes flakey unit test that was using dateMath as opposed to a fixed date for consistent testing.
2020-10-20 20:13:35 -04:00
Tyler Smalley d2fa8ac179 skip flaky suite (#81264) 2020-10-20 16:25:04 -07:00
Nathan Reese 3f98cf7c5e
[Maps] fix top-level Map page is called 'Kibana' (#81238) 2020-10-20 17:11:51 -06:00
Andrew Cholakian 55ae05859e
Update E2E readme with accurate instructions (#81243)
* Update E2E readme with accurate instructions

* Fix whitespace
2020-10-20 17:48:30 -05:00
Tyler Smalley a83eb33726 skip flaky suite (#81166) 2020-10-20 15:08:09 -07:00
Brandon Morelli 1d4b4fc1cf
[docs] 7.10 APM docs updates (#80605) 2020-10-20 14:25:42 -07:00
Madison Caldwell 6b6bfe5ef5
[Security Solution][Detections] Immediately refresh exceptions when new list is created after rule creation (#81014)
* ExceptionIdentifiers -> ExceptionListIdentifiers

* Pass refreshRule through to alert context menu

* Fix type errors and rename refreshRule to onRuleChange for consistency
2020-10-20 17:03:47 -04:00
Ryland Herrick cdf276cc36
Handle errors in EQL search strategy (#81071)
Errors thrown by e.g. the EQL client would not be caught by the search
strategy.
2020-10-20 14:33:01 -05:00
IgorG 35404b41bb
New events resolver (#80850)
* Added Test for event.library

* renamed data directry and gzip data file

* rename expectedData file

* Changes per Charlie request

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-20 12:19:24 -07:00
Nicolas Chaulet 770bc4c18f
[Fleet] Fix creation of POLICY_CHANGE action during 7.9 => 7.10 migration (#81041) 2020-10-20 14:55:52 -04:00
Oliver Gupte b0a56b9409
Closes #81091. Removes zoom param from ML link in APM service maps (#81092) 2020-10-20 10:43:31 -07:00
Michael Olorunnisola a07a3a5f13
[Security Solution][Network] - Disable save when Sourcerer is empty (#81002) 2020-10-20 13:16:04 -04:00
Larry Gregory bf0f8bbb42
Cleanup feature registration (#80909) 2020-10-20 12:53:43 -04:00
Ryland Herrick b7ffefb48c
[Security Solution][Detections] Fix EQL cypress tests (#80440)
* Unskip EQL tests

These _should_ be fixed with the latest ES on master, but let's see if
CI disagrees.

* Wait until alerts have populated on Rule Details

Occasionally our tests hit a scenario where the rule has executed (its
status is "succeeded"), but the generated alerts have not populated in
the same time frame. In this case the test fails oddly, saying that the
"alert count" element is not there when it is.

I attempted to improve the error message by using a .should() with a
callback, but that lead to even stranger behavior as the .should() would
fail once (expected), and then not be able to find the element a second
time. :(

So we instead focus on fixing the real problem, here: wait until alerts
populate (have a non-zero count) before performing the assertion.
Because the page will not update automatically, we can't rely on
cypress' retryability and must instead assert, click Refresh, and assert
again, much like we're doing while waiting for the rule to execute. And
like `waitForTheRuleToBeExecuted`, we're using a while loop that has no
guarantee of ever exiting :(

* More robust cypress assertions

* Uses should with a text matcher instead of using invoke('text')
* Use of not.equal between a string and an element may have been a false
  positive

* Perform cypress loops in a manner guaranteed to exit

We have a few tasks that require polling for some background work to be
completed. The basic form is: assert the byproduct, or refresh the page
and try again.

We were previously doing this with a while loop, which was not
guaranteed to ever complete, leading to cryptic failures if the process
ever hung.

Instead, this implements a safer polling mechanism with a definite
termination similar to the cypress-wait-until plugin.

* Update other specs that are asserting on alerts

* Do not automatically refresh the page
  * This is only necessary if we're not in the state we need. The
    `waitFor` helper functions automatically reload whatever needs to be
    reloaded, so we're delegating this task to them.
* Ensure we wait for alerts to be nonzero before our assertion
  * Otherwise we get some strange behavior around this field's
    availability; see previous commits

* Remove unused import

* Fix false positive in Rule Creation specs

Threat Match Rules introduced an additional query input, causing our
CUSTOM_QUERY_INPUT to be ambiguous.

However, instead of failing due to the ambiguity, the behavior of
cypress seems to be to pass! While I haven't yet tracked down the cause
of these false positives, disambiguating these selectors is the
immediate fix.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-20 11:44:46 -05:00
Frank Hassanabad f6d41f4b58
[Security Solutions][Detection Engine] Adds number of signals to waitFor() within integration tests to increase determinism
## Summary

* Fixes https://github.com/elastic/kibana/issues/81119
* Fixes https://github.com/elastic/kibana/issues/81186
* Adds an additional parameter to the waitFor and tweaks the different tests to pass in the number of signals to waitFor.

### 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
2020-10-20 10:40:00 -06:00
Christiane (Tina) Heiligers e7f3044b31
Usage collection plugins to ts project refs (#81090) 2020-10-20 09:32:40 -07:00
Bohdan Tsymbala 02c8c36a4e
Btsymbala/keyboard accesibility trusted app deletion (#81156)
* Added auto focusing of confirm button in trusted apps deletion dialog on opening.

* Updated snapshots.

* Updated snapshots after kbn:bootstrap.
2020-10-20 18:13:25 +02:00
Yara Tercero d38955bb3b
[Security Solution][Detections] - rule query preview bug fix (#80750)
### Summary 

This PR addresses the remaining query preview bugs. 

- it adds index, and request information to eql inspect - it seems that for some reason the eql search strategy response returns `null` for the `params.body` in complete responses, but not in partial responses and does not include index info. As a workaround, I set the inspect info on partial responses and manually add index info
  - added to-dos pointing this out in the code
- updated eql sequence queries preview to use the last event timestamp of a sequence to display the hits within a histogram
- it checks buckets length to determine noise warning for threshold rules, as opposed to total hit count
- remove unused i18n text
- fixes bug where threshold is being passed in for all rule types as it's always defined in the creation step, added a check to only pass through to `useMatrixHistogram` hook when rule type is threshold
2020-10-20 12:07:51 -04:00
Charlie Pichette 81ff3b682f
Rename Security Solution Bug Template (#81187) 2020-10-20 09:22:55 -06:00