Commit graph

34932 commits

Author SHA1 Message Date
Devin W. Hurley f487867fda
[SIEM] Updates consumer in export_rule archive (#72324) 2020-07-17 17:13:34 -04:00
Spencer 466380e3b6
[kbn/dev-utils] add RunWithCommands utility (#72311)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-17 13:53:54 -07:00
Madison Caldwell 5356941f22
[Security Solution][Endpoint][Exceptions] Only write manifest to policy when there are changes (#72000)
* Refactor security_solution policy creation callback - part 1

* Fix manifest dispatch

* Change how dispatches are performed

* simplify manifest types

* Remove unused mock

* Fix tests

* one place to construct artifact ids

* fixing linter exceptions

* Add tests for stable hashes

* Additional testing and type cleanup

* Remove unnecessary log

* Minor fixup

* jsdoc

* type fixup

* Additional type adjustments
2020-07-17 16:51:28 -04:00
Brian Seeders 4c58018d33 skip flaky suite (#72339) 2020-07-17 16:27:25 -04:00
Quynh Nguyen 3cef292bbd
[ML] Fix annotations pagination & change labels from letters to numbers (#72204) 2020-07-17 13:35:25 -05:00
Wylie Conlon 35ff37a434
[Lens] Fix switching with layers (#71982)
* [Lens] Fix chart switching with multiple layers

* Unskip Lens smokescreen test

* Fix types

* Revert <p> change
2020-07-17 14:02:52 -04:00
Nathan Reese 679209b308
[Maps] 7.9 documenation updates (#71893)
* [Maps] 7.9 documenation updates

* more cleanup

* add vector tiles card to tile layers page
2020-07-17 11:38:45 -06:00
Vadim Dalecky 36ff576178
docs: ✏️ add "Explore underlying data" user docs (#70807)
* docs: ✏️ add "Explore underlying data" user docs

* docs: ✏️ improve docs

* docs: ✏️ change the way Discover is referred

* docs: ✏️ improve texts in line with review comments

* Update docs/drilldowns/explore-underlying-data.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update docs/drilldowns/explore-underlying-data.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2020-07-17 19:06:54 +02:00
Yara Tercero 1adaa3b76c
[Security Solution][Exceptions] - Remove initial add exception item button in builder (#72215)
## Summary

This PR addresses two issues in the builder:

- **Existing behavior:** if you add a bunch of entries then delete all but one, the indent that shows for when multiple entries exists does not go away
  - **Updated behavior:** if you add a bunch of entries and delete all but one, the indent that shows for when multiple entries exist goes away

- **Existing behavior:** on render of add exception modal, if no exception items exist (or no exception items with entries exist) an `Add Exception` button appears
  - **Updated behavior:** if only one entry exists, the delete button is disabled for that entry; on initial render of the add exception modal, if no entries exist, an empty entry is shown
2020-07-17 12:39:51 -04:00
Stacey Gammon 44fc2a828c
Fix indentation level in code exploration doc (#72274)
* fix indentation level in code exploration doc

* run the script to update the file
2020-07-17 12:04:18 -04:00
Joe Reuter 825c16875e
register graph usage (#72041) 2020-07-17 17:16:28 +02:00
igoristic 39381ca3c8
[Monitoring] Added a case for Alerting if security/ssl is disabled (#71846)
* Added a case for Alerting if security/ssl is disabled

* Code feedback

* Fixed types
2020-07-17 11:13:40 -04:00
Dima Arnautov 2ad4328fda
[ML] Remove DragSelect event handlers and selectors on the swim lane unmount (#72250)
* [ML] remove selector element on unmount

* [ML] stop handler on mount

* [ML] remove throttling
2020-07-17 17:09:18 +02:00
Stacey Gammon 6a03e8b5b8
Add a few asciidoc readmes (#72082)
* Add a few asciidoc readmes

* add updated code-exploration. Need to fix the script in another go to add asciidoc support. The snippet didn't show up anyway.
2020-07-17 11:08:57 -04:00
Melissa Alvarez 260eb139f8
re-enable tests. retry on fail (#72061) 2020-07-17 10:56:02 -04:00
MadameSheema ac9178ab9a
updates advanced settings text (#72249) 2020-07-17 16:41:44 +02:00
Dima Arnautov 8f442f8318
[ML] Fix HTML named characters encoding (#72060)
* [ML] improve special characters encoding

* [ML] update renovate.json5
2020-07-17 16:37:10 +02:00
Mikhail Shustov 937314ad11
Bump @elastic/elasticsearch to v7.9.0-rc1 (#72231)
* bump @elastic/elasticsearch to 7.9.0-rc1

* bump other packages using @elastic/elasticsearch
2020-07-17 16:14:55 +02:00
Cauê Marcondes f9baaa267d
Observability landing page title (#72088)
* updating window title based on breadcrumbs

* updating window title based on breadcrumbs

* updating window title based on breadcrumbs
2020-07-17 16:11:41 +02:00
Tre 5160c7ee45
[QA][Code Coverage] Drop flaky integration tests (#72089) 2020-07-17 07:56:59 -06:00
Sandra Gonzales 86629d76b0
[Ingest Manager] Fix failing test conflict error (#72149)
* save kibana installation references after other updates have completed to avoid conflict error

* unskip tests

* uncomment out line

* add back await to not change things

* unskip fleet_unenroll_agent

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-17 09:24:32 -04:00
Felix Stürmer 44888d3536
[Logs UI] Fix display of dataset values in anomaly and category example rows (#71693)
This removes an unnecessary JSON encoding step of values before they are passed to the field column component used in the log entry example rows in both the Anomalies and Categories tabs.
2020-07-17 15:08:38 +02:00
Xavier Mouligneau 93be1cff8d
[SECURITY] Bug truncation on timeline (#72221)
* bring back truncated ceil + only show menu context hover text

* update unit test
2020-07-17 08:58:10 -04:00
Tiago Costa 45a4393459
skip flaky suite (#72146) 2020-07-17 13:55:51 +01:00
MadameSheema f31d592e61
updates 'External alerts' tab text (#72237) 2020-07-17 14:35:26 +02:00
Christos Nasikas b4f07de564
[Security Solution][Case] Fix connector's dropdown with conflicting requests (#72037) 2020-07-17 15:00:34 +03:00
Cauê Marcondes 19def177f4
replacing hard coded links for ela.st (#72240) 2020-07-17 13:15:15 +02:00
Tiago Costa 138c0417a7
skip flaky suite (#60865) 2020-07-17 12:11:15 +01:00
Tiago Costa 9296369bfd
chore(NA): teardown dynamic dll plugin (#72096)
* chore(NA): teardown dynamic dll plugin

* chore(NA): remove missing ts-ignore

* chore(NA): remove last mentions to the DLL machinery

* chore(NA): update notice file

* prevent duplication and searching target/public

* remove changes to es-ui code to unblock pr

* add node internals override for legacy tests bundle

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-17 11:04:14 +01:00
Larry Gregory 99e14aad76
Register navLink actions for declared applications (#72109) 2020-07-17 05:38:55 -04:00
patrykkopycinski 6164037f18
Fix value for process.hash.sha256 draggable (#72142) 2020-07-17 09:14:37 +02:00
Jen Huang 5cd1f6e562
Call setupIngest before fleet_install tests (#72214) 2020-07-16 22:42:28 -07:00
Ryland Herrick effab78a94
[Security Solution][Detections] Better toast errors (#72205)
* Add new hook to wrap the toasts service

When receiving error responses from our APIs, this gives us better toast
messages.

* Replace useToasts with useAppToasts in trivial case

* WIP: prevent infinite polling when server is unresponsive

The crux of this issue was that we had no steady state when the server
returned a non-API error (!isApiError), as it would if the server was
throwing 500s or just generally misbehaving.

The solution, then, is to addresse these non-API errors in our
underlying useListsIndex and useListsPrivileges hooks.

This also refactors those hooks to:

* collapse multiple error states into one (that's all we currently need)
* use useAppToasts for better UI

TODO: I don't think I need the changes in useListsConfig's useEffect.

* Slightly more legible variables

The only task in this hook is our readPrivileges task right now, so I'm
shortening the variable until we have a need to disambiguate it further.

* Remove unnecessary conditions around creating our index

If the index hook has an error needsIndex will not be true.

* Better toast errors for Kibana API errors

Our isApiError predicate does not work for errors coming back from
Kibana platform itself, e.g. for a request payload error.

I've added a separate predicate for that case, isKibanaError, and then a
wrapping isAppError predicate since most of our use cases just care
about error.body.message, which is common to both.

* Use new toasts hook on our exceptions modals

This fixes two issues:

* toast appears above modal overlay
* Error message from response is now presented in the toast

* Fix bug with toasts dependencies

Because of the way some of the exception modal's hooks are written, a
change to one of its callbacks means that the request will be canceled.

Because the toasts service exports instance methods, the context within
the function (and thus the function itself) can change leading to a
mutable ref.

Because we don't want/need this behavior, we store our exported
functions in refs to 'freeze' them for react.

With our bound functions, we should now be able to declare e.g.
`toast.addError` as a dependency, however react cannot determine that it
is bound (and thus that toast.addError() is equivalent to addError()),
and so we must destructure our functions in order to use them as
dependencies.

* Alert clipboard toasts through new Toasts service

This fixes the z-index issue between modals and toasts.

* Fix type errors

* Mock external dependency

These tests now call out to the Notifications service (in a context)
instead of our redux implementation.
2020-07-16 23:00:22 -05:00
spalger 55da30d17a skip flaky suite (#64696) 2020-07-16 19:11:08 -07:00
Ryland Herrick 5c0743e935
[Security Solution][Detections] Disable exceptions for Threshold and ML rules (#72137)
* Move isThresholdRule predicate into our common folder

This is very similar to isMlRule, which is already used extensively and
lives at this level.

* Disable endpoint association checkbox for ML and Threshold rules

The fullWidth and isDisabled props were not used; what we want is
disabled.

* Fix react warning about nesting buttons

This removes the AdvancedSettingsAccordion in favor of a plain
EuiAccordion with buttonContent, as that seems to be all that's needed
here.

* Disable Exceptions tab on Details for ML or Threshold rules

These rule types do not currently support exceptions.

* Fix type error

Unused import
2020-07-16 20:49:55 -05:00
Ryland Herrick 678dc309af
[Security Solution][Detections,Lists] Miscellaneous post-FF fixes (#71990)
* Overview Alerts Histogram stacking defaults to signal.rule.name

Since this is now the default for all AlertsHistograms, I've moved this
default upstream into the histogram itself.

* Replace magic strings with our constant ENDPOINT_LIST_ID

Also replaced a few unintentional uses of this string with the
non-reserved 'endpoint_list_id'.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 19:43:15 -05:00
Spencer b695d60516
[baseline/capture] use high-memory nodes with ramDisks (#71894)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-07-16 17:13:32 -07:00
spalger fead1f2d1d skip flaky suite (#77207) 2020-07-16 16:42:41 -07:00
Aaron Caldwell 63e6666b13
[Maps] Fix issue preventing TMS from rendering correctly (#71946)
* Ensure getColors selector modifies and returns the same object

* Call onSourceConfigChange on CreateSourceEditor mount

* Back out selector update

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 17:02:15 -06:00
Rashmi Kulkarni 78b39e8b9f
using test_user with minimum privs (#71988)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 14:51:56 -07:00
Yuliia Naumenko 9da8b768bf
Fixed Webhook connector doesn't retain added HTTP header settings (#71924)
* Fixed Webhook connector doesn't retain added HTTP header settings

* fixed method
2020-07-16 14:43:27 -07:00
Nicolas Chaulet ba76476110
[Ingest Manager] Do not show enrolling and unenrolling agents as online in agent counters (#71921) 2020-07-16 16:54:09 -04:00
Nathan Reese d510263666
[Maps] fix 'New Map' from getting added to recently accessed (#72125) 2020-07-16 14:25:25 -06:00
Fabien Baligand 4278e560ef
[Visualizations] Pass 'aggs' parameter to custom request handlers (#71423) 2020-07-16 14:13:35 -06:00
Chris Roberson 28189c274b
[Monitoring] Out of the box alert tweaks (#71942)
* Tweaks to thresholds and throttle periods

* Fixes

* Type fix, and more defensive against no alerts

* Remove unnecessary restrictions
2020-07-16 15:48:58 -04:00
Quynh Nguyen 7868a569eb
[ML] Fix datafeed start time is incorrect when the job has trailing empty buckets (#71976)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 14:42:34 -05:00
Nathan Reese 52597b203b
[Maps] typescript vector style phase 1 (#69994)
* [Maps] typescript vector style phase 1

* tslint

* unify Ordinal and Categorical field meta since they are mixed in real data

* field formatter type

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 13:31:43 -06:00
Spencer 5a755ddb01
Add plugin list to docs that is generated from the repo (#71731)
Co-authored-by: Stacey Gammon <gammon@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-16 12:17:39 -07:00
MadameSheema 401ad352e9
[SIEM] Bring Cypress tests back to life (#71871)
* fixes and unskips 'Detection rules, custom'

* fixes 'Export rules' test

* unksips 'Deleting prebuilt rules' test

* unskips Alerts timeline

* unskips 'Events viewer' tests

* unskips 'toggle column in timeline' tests

* unskips 'url timeline' test

* fixes Overview test

* skips flaky test
2020-07-16 21:13:55 +02:00
Frank Hassanabad c787b8adbe
[SIEM][Detection Engine][Lists] Fixes bugs, adds tests (#71880)
## Summary

* Adds the createEndpointListSchema to the create_endpoint_list_route for API boundary checks
* Adds unit tests to the requests
* Fixes a few bugs found in the find endpoints for types
* Fixes or deletes the skipped tests
* Updated TODO blocks and removed ones that are obsolete

### Checklist

Delete any items that are not applicable to this PR.

- [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-07-16 13:07:19 -06:00