Commit graph

15122 commits

Author SHA1 Message Date
Anton Dosov 7984745a9d
Don't trigger auto-refresh until previous refresh completes (#93410) 2021-04-08 13:00:11 +02:00
hardikpnsp d39701fc97
[Telemetry] enforce import export type (#96487)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-08 06:37:01 -04:00
Mike Côté 81ba969cfa
Skip rendering empty add action variables button as disabled (#96342)
* Skip rendering empty add action variables button

* Fix jest tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-08 05:24:16 -04:00
spalger f9317281d1 skip suite blocking es promotion (#96515) 2021-04-08 02:09:29 -07:00
Justin Ibarra bc14f2415d
[Detection Rules] Resolves regression where Elastic Endgame rules would warn about unmapped timestamp override field (#96394)
related to https://github.com/elastic/detection-rules/pull/1082

## Summary

Endgame promotion rules in Kibana/7.12 are at version 5 and have timestamp_override defined (which should not be). These same rules are at version 4 in the detection-rules repo 7.12 branch and kibana/master and timestamp_override is not defined. These updates are targeted for 7.12.1

There most likely was an issue with the maze of backports and interlaced updates.

To fix the rules, they need to be reconciled across:

detection-rules 7.12 & main
kibana 7.12.1 and master
bump detection-rules/7.12 to v6 -> PR to kibana/master -> backport to 7.12.1
### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)


### 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-04-07 23:53:02 -06:00
Shahzad 391e92ead3
[Exploratory view] Use index patterns for formatting (#96280) 2021-04-08 07:16:23 +02:00
Ross Wolf 93965343e5
[Fleet] Install security_rule assets as saved objects (#95885)
* [Fleet] Install security_rule assets as saved objects

* Add security-rule to update_assets.ts

* Update UUIDs for security_rule asset

* Change .type to match the saved object type not the asset type

* Add saved object mapping for security-rule

* Make SO non-hidden

* Fix SO mapping for security-rule

* Make security-rule a non-hidden asset
2021-04-08 00:52:10 -04:00
Garrett Spong d5b3829210
[Security Solution][Detections] Fixes Closing Alerts Cypress Test (#96523)
## Summary

As identified in https://github.com/elastic/kibana/pull/96505#issuecomment-815392671, this fixes the flakiness in the `Closing alerts` cypress test. Method used was to just delete the rule after the initial batch of alerts were generated. Alternatively we could add a function for disabling the rule (didn't see one in there), but the outcome is the same, no more alerts generated while the test is being performed. 🙂 

> Passing locally, though upon further inspection, this test is definitely going to be flakey as it's checking counts on alerts as they move through different states and there are new alerts that keep coming in (hence the count mis-match in the above failure). Potential fixes would be to use an absolute daterange to after the first round of alerts were generated, or just stop generating alerts before performing the alert state changes.


##### Before:
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/113952824-ae1d9500-97d3-11eb-9021-6737544b9c50.png" />
</p>


##### After:

<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/113958216-ed50e380-97dd-11eb-9d22-d1c6aafc97d2.png" />
</p>
2021-04-08 00:25:47 -04:00
spalger 0cf31ae22f skip suite block es promotion (#96515)
(cherry picked from commit f06be93a40)
2021-04-07 18:59:01 -07:00
Garrett Spong d63fbb19cd
[Security Solution][Detections]Fixes Rule Management Cypress Tests (#96505)
## Summary
Fixes two cypress tests:

> Deleting prebuilt rules "before each" hook for "Does not allow to delete one rule when more than one is selected"
https://github.com/elastic/kibana/issues/68607

This one is more of a drive around the pot-hole fix as we were waiting for the Alerts Table to load when we really didn't need to. Removed unnecessary check.
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/113932347-b9ab9480-97b0-11eb-8e07-5f3e0c4b6c78.png" />
</p>

> Alerts rules, prebuilt rules Loads prebuilt rules
https://github.com/elastic/kibana/issues/71300

This one was fixed with a `.pipe()` and `.should('not.be.visible')` to ensure the click was successful. Also removed unnecessary check on the Alerts Table loading that was present here as well too..
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/113932285-ac8ea580-97b0-11eb-90e1-618c510d33a7.png" />
</p>
2021-04-07 20:57:24 -04:00
spalger fc9f97e03b skip suites failing es promotion (#96515)
(cherry picked from commit 7fdf7e1d79)
2021-04-07 16:10:19 -07:00
Yuliia Naumenko c2d5fa1dda
[Actions] Added action configuration settings maxResponseContentLength and responseTimeout. (#96355)
* [Actions] Added action configuration settings `maxResponseContentLength` and `responseTimeout` which define max response content size (in bytes) and awaiting timeout for action executions based on axios requests.

* replaced pasceDuration with moment

* fixed due to comments

* renamed internal options
2021-04-07 15:06:44 -07:00
Nathan L Smith 8d2d2ad864
Replace EuiPanel with EuiCard when using beta badges (#96147)
In elastic/eui#4649 the `betaBadgeLabel` and related props have been removed from `EuiPanel` and it's now recommended to use an `EuiCard` instead.

Replace these in APM and Observability plugins and update stories so examples can be viewed.
2021-04-07 16:51:05 -05:00
Constance e6e3b16ee1
[Enterprise Search] Change last breadcrumb to inactive/non-linked breadcrumb (#96489)
* Update our EUI breadcrumb helper to skip generating links for the last breadcrumb in the list

* Fix useEuiBreadcrumbs tests

- add a describe block to make it clear we're testing link behavior in non-last breadcrumbs
- add a helper that automatically adds a last breadcrumb so that link generation still works

* Add comment/note as to why I didn't add last-breadcrumb-specific logic to useGenerateBreadcrumbs
2021-04-07 17:18:36 -04:00
Melissa Alvarez 71c326c8bf
handle runtime fields in validation step (#96340) 2021-04-07 15:43:06 -04:00
Patrick Mueller ad06d16beb
[actions] adds proxyBypassHosts and proxyOnlyHosts Kibana config keys (#95365)
resolves https://github.com/elastic/kibana/issues/92949

This PR adds two new Kibana config keys to further customize when the proxy
is used when making HTTP requests.  Prior to this PR, if a proxy was set
via the `xpack.actions.proxyUrl` config key, all requests would be
proxied.

Now, there's a further refinement in that hostnames can be added
to the `xpack.actions.proxyBypassHosts` and `xpack.actions.proxyOnlyHosts`
config keys.  Only one of these config keys can be used at a time.

If the target URL hostname of the HTTP request is listed in the
`proxyBypassHosts` list, the proxy won't be used.

If the target URL hostname of the HTTP request is **NOT** listed in the
`proxyOnlyHosts` list, the proxy won't be used.

Depending on the customer's environment, it may be easier to list the hosts to
bypass, or easier to list the hosts that should only be proxied, so they can
choose either method.
2021-04-07 15:20:47 -04:00
David Sánchez 21f38afd27
[SECURITY SOLUTION] Add new exception list type and feature flag for event filtering (#96037)
* New exception list type for event filtering
* New feature flag for event filtering
2021-04-07 15:01:54 -04:00
Thomas Neirynck 324c6c05a4
[Maps] Support query-time runtime fields (#95701) 2021-04-07 15:00:55 -04:00
Zacqary Adam Xeper c8e23ad440
[Fleet] Fixes to preconfigure API (#96094) 2021-04-07 13:07:39 -05:00
Davey Holler 8e1bd9ccf3
App Search Polish (#96345)
* Button adjustments to Engine Overview page

* Subdued preview panel color

* Vertically aligns "manage fields" and "preview"

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-07 10:37:14 -07:00
Søren Louv-Jansen f123084961
[APM] Remove dynamic index pattern caching (#96346)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-07 19:30:15 +02:00
Nicolas Chaulet 22f7f17fdf
[Fleet] Move fleet server indices creation out of Kibana (#96338) 2021-04-07 13:07:35 -04:00
Scotty Bollinger 92b659dae0
[Workplace Search] Add AccountHeader to Personal dashboard (#96353)
* Revert change to wrap setContext in useEffect

A recommendation was made to wrap the setContext call in a previous PR, which lets the app know if the context is org or account, in a useEffect call, for potential performance reasons. Unfortunately, this causes the lifecycle to change so that changing routes from org to personal dashboard does not register the change in time. This commit changes it back to a working state.

* Add constants and routes for Account nav

* Add AccountHeader component

* Add header to layout and fix height

The main layout stylesheet, https://github.com/elastic/kibana/blob/master/x-pack/plugins/enterprise_search/public/applications/shared/layout/layout.scss gives a static height that includes the main Kibana navigation. The height with the account nav only is added to the existing privateSourcesLayout css class

* Refactor test
2021-04-07 13:01:26 -04:00
spalger 6b9ba10958 Revert "[Telemetry] enforce import export type (#96199)"
This reverts commit ac46802830.
2021-04-07 09:50:36 -07:00
Paul Tavares 9a0c73e515
[Security Solution][Endpoint] Endpoint Event Filtering List, Test Data Generator and Loader (#96263)
* Added new const to List plugin for new Endpont Event Filter list
* Data Generator for event filters ++ script to load event filters (WIP)
* refactor `generate_data` to use `BaseDataGenerator` class
2021-04-07 12:36:28 -04:00
spalger 752308f6d8 skip flaky suite (#96372) 2021-04-07 09:16:50 -07:00
hardikpnsp ac46802830
[Telemetry] enforce import export type (#96199)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-07 17:16:39 +01:00
Jason Stoltzfus 818a740033
[App Search] Added a query performance rating to the Result Settings page (#96230) 2021-04-07 11:56:31 -04:00
Yuliia Naumenko 76ed8dbeab
[Alerting UI] Changed alerting UIs use new rule APIs. (#96018)
* [Alerting UI] Changed alerting UIs use new rule APIs.

* added unit tests

* fixed types

* fixed types

* fixed types

* fixed due to comments
2021-04-07 07:54:12 -07:00
ymao1 bb109b533c
[Actions] Hiding time field selector if no field with date mapping in index in Index Connector flyout (#96080)
* Hiding time field selector if no field with date mapping in index

* Fixing types check

* Updating tooltip

* PR fixes
2021-04-07 10:44:12 -04:00
Walter Rafelsberger f945f3a425
[ML] Transforms: Wizard displays warning callout for source preview when used with CCS against clusters below 7.10. (#96297)
The transforms UI source preview uses fields to search and retrieve document attributes. The feature was introduced in 7.10. For cross cluster search, as of now, when a search using fields is used using cross cluster search against a cluster earlier than 7.10, the API won't return an error or other information but just silently drop the fields attribute and return empty hits without field attributes.

In Kibana, index patterns can be set up to use cross cluster search using the pattern <cluster-names>:<pattern>. If we identify such a pattern and the search hits don't include fields attributes, we display a warning callout from now on.
2021-04-07 16:39:11 +02:00
Melissa Alvarez 7f4ec48ce6
[ML] Data Frame Analytics: add accuracy and recall stats to results view (#96270)
* add accuracy and recall to classification results

* update accuracy tooltip content
2021-04-07 10:32:20 -04:00
Dario Gieselaar 64470829de
[APM] Optimized type checking for API tests (#96388)
Closes #95634.
2021-04-07 15:17:04 +02:00
Jean-Louis Leysens 4d43a4f31d
[Rollup] Migrate to new ES client (#95926)
* initial pass at es client migration

* fixed potential for not passing in an error message and triggering an unhandled exception

* reworked ad hoc fixing of error response

* delete legacy client file and remove use of legacyEs service

* remove unused import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-07 14:49:44 +02:00
Liza Katz 7584b728c6
[Search Sessions] Monitoring hardening part 1 (#96196)
* Decrease default pageSize to 100
Set default strategy
Don't create sessions when disabled
Clear monitoring task when disabled
Use concatMap to serialize session checkup

* ts

* ts

* ts

* Update x-pack/plugins/data_enhanced/server/search/session/session_service.ts

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

* Search sessions are disabled

* Clear task on server start

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
2021-04-07 15:36:55 +03:00
Shahzad 6f7a7e4755
[Uptime] Migrate uptime query bar to global kuery bar (#93889) 2021-04-07 11:46:16 +02:00
Shahzad d815403953
[Uptime] Fixed pagination styling (#95940)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-07 11:21:49 +02:00
Yulia Čech 011b234d15
Added readonly action in cold phase (#96036)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-07 11:16:12 +02:00
Tiago Costa 532f38f091
skip flaky suite (#96362) 2021-04-07 03:46:47 +01:00
Clint Andrew Hall 43baacd246
Creating a Labs service for Presentation Solutions (#95435) 2021-04-06 21:06:49 -05:00
Cauê Marcondes f1d6629321
[APM] exceptions are encapsulated on Kibana logs(#96343)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-06 19:02:56 -04:00
Quynh Nguyen 8051fa91d8
[ML] Fix runtime mappings not copy-able in Transform wizard (#95996)
* [ML] Fix transform runtime mappings not copy-able

* [ML] Fix histogram not updating after change

* [ML] Fix isRuntimeMappings imports

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-06 15:47:58 -05:00
James Rucker 4610764426
Fix reauthenticate links for OneDrive and SharePoint (#96271)
For both OneDrive and SharePoint we define a service_type that has an
underscore in the middle (one_drive and share_point). This fixes the
route definitions so sources of these connector types can be
reauthenticated.
2021-04-06 12:19:23 -07:00
renovate[bot] c18e3c8c3b
Update dependency @elastic/charts to v28 (master) (#96163) 2021-04-06 14:17:50 -05:00
Michael Marcialis 6b9ff48306
[Lens] Fix Chart Switcher Icon Color Contrast (#96146)
* add new lns prefixed classes to target icon colors

* correct groupPosition prop on visual options

* account for icon accent color contrast

* switch to ternary operator

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-06 14:51:15 -04:00
Yara Tercero 92b9482875
[Security Solution][Exceptions] - Moves remaining exceptions builder logic into lists plugin (#95266)
## Summary

Moves part of the exceptions UI out of the security solution plugin and into the lists plugin. In order to keep PRs (relatively) small, I am moving single components at a time. This should also then help more easily pinpoint the source of any issues that come up along the way.

The next couple PRs will focus on the exception builder. This one in particular is focused on moving over the `ExceptionBuilderComponent` which deals with rendering numerous exception items and their entries.

Quick Summary:
- `x-pack/plugins/security_solution/public/common/components/exceptions/builder/` → ` x-pack/plugins/lists/public/exceptions/components/builder/`
  - Corresponding unit test file moved as well 
  - Updated security solution exception builder to pull `ExceptionBuilderComponent` from lists plugin
2021-04-06 20:26:15 +02:00
Melissa Alvarez 40cbb1fe79
[ML] Data Frame Analytics: adds functional tests for runtime fields support (#96262)
* add basic runtime mapping functional tests to analyics

* confirm runtime mapping added correctly.
2021-04-06 12:06:36 -04:00
Xavier Mouligneau 177322fd9e
[jest/securitySolution] Switch to jest-environment-jsdom (#96255)
* remove testEnvironment from jest config

* cleanup all cases

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-06 12:06:14 -04:00
Chris Cowan 91b727f412
[Metrics UI] Observability Overview Host Summary (#90879)
* [Metrics UI] Observability Overview Host Summary

* Adding UI elements

* Adding logos

* Changing the size of the request

* Change to new ECS fields for network traffic

* Adding logos to HostLink component

* Round seconds

* fixing data handler test

* Fixing test for metrics_overview_fetchers

* Adding types for SVG to observability

* Adding i18n support to table labels

* removing unused translations

* move back to host.network.(in,out).bytes

* Adding changes to source from #95334

* Fixing source type

* Removing unintentional change.

* Maybe, fixing types

* removing svg typings

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-06 08:38:12 -07:00
Clint Andrew Hall b066e9714d
Convert components to use React.lazy for bundling (#96185)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-06 10:31:18 -05:00