Commit graph

34135 commits

Author SHA1 Message Date
Gidi Meir Morris d3a0ab3db0
fixed eslint for alerting (#70171)
Fixed eslint in the alerting project
2020-06-29 18:00:58 +01:00
Joel Griffith c53f036f5d
Ensure that security is enabled before doing user authentication checks (#70127)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 09:26:11 -07:00
Mikhail Shustov 4fe60c4a0d
fix config update for root context (#70168)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 18:13:00 +02:00
Luke Elmers 851e7ff9b8
[data.search.aggs] Remove fieldFormats from AggConfig & AggConfigs (#69762) 2020-06-29 10:10:34 -06:00
Brian Seeders 462bf1520f skip flaky suite (#69617) 2020-06-29 11:48:39 -04:00
Vadim Dalecky 9f6ad5a8d8
"Explore underlying data" in-chart action kibana.yml flag (#70045)
* refactor: 💡 rename folder to "explore_data"

* style: 💄 check for "share" plugin in more semantic way

"explore data" actions use Discover URL generator, which is registered
in "share" plugin, which is optional plugin, so we check for its
existance, because otherwise URL generator is not available.

* refactor: 💡 move KibanaURL to a separate file

* feat: 🎸 add "Explore underlying data" in-chart action

* fix: 🐛 fix imports after refactor

* feat: 🎸 add start.filtersFromContext to embeddable plugin

* feat: 🎸 add type checkers to data plugin

* feat: 🎸 better handle empty filters in Discover URL generator

* feat: 🎸 implement .getUrl() method of explore data in-chart act

* feat: 🎸 add embeddable.filtersAndTimeRangeFromContext()

* feat: 🎸 improve getUrl() method of explore data action

* test: 💍 update test mock

* fix possible stale hashHistory.location in discover

* style: 💄 ensureHashHistoryLocation -> syncHistoryLocations

* docs: ✏️ update autogenerated docs

* test: 💍 add in-chart "Explore underlying data" unit tests

* test: 💍 add in-chart "Explore underlying data" functional tests

* test: 💍 clean-up custom time range after panel action tests

* chore: 🤖 fix embeddable plugin mocks

* chore: 🤖 fix another mock

* test: 💍 add support for new action to pie chart service

* feat: 🎸 add kibana.yml to disable in-chart "explore data" actio

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 17:47:08 +02:00
Larry Gregory 28b70923df
Consolidate capabilities check for Stack Management (#69437)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 11:43:43 -04:00
Pierre Gayvallet fe1c508d8d
Move and rename legacy elasticsearch client (#69797)
* move last snapshot to inline

* move legacy files to legacy subfolder

* move request types out of legacy

* export Headers from http instead of elasticsearch

* renaming - first pass

* renaming - second pass

* fix core mocks

* adapt new calls

* update generated doc

* fix IT test mocks

* fix new usages
2020-06-29 17:43:31 +02:00
Nathan Reese 3347c8b9df
remove no longer required div wrapper around ValidatedDualRange (#70188)
* remove no longer required div wrapper around ValidatedDualRange

* tslint
2020-06-29 09:37:16 -06:00
spalger 848c239bff disable page load metrics task in baseline job too 2020-06-29 08:34:44 -07:00
patrykkopycinski 821aa9903b
Bump react-router (#69608) 2020-06-29 16:55:38 +02:00
Nicolas Chaulet 6e9972e693
[Ingest Manager] expose method to get agent and list agents to other plugins (#70087) 2020-06-29 10:51:30 -04:00
Corey Robertson f47b3e50c7
[Canvas] Update Canvas Plugin documentation (#65910)
* Update Canvas Plugin documentation

* Small fix

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/README.md

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>
2020-06-29 10:39:49 -04:00
Daniil Suleiman 19bda1fcee
Reactify visualize app (#67848)
* Reactify visualize app

* Fix typescript failures after merging master

* Make sure refresh button works

* Subscribe filter manager fetches

* Use redirect to landing page

* Update savedSearch type

* Add check for TSVB is loaded

* Fix comments

* Fix uiState persistence on vis load

* Remove extra div around TableListView

* Update DTS selectors

* Add error handling for embeddable

* Remove extra argument from useEditorUpdates effect

* Update comments, fix typos

* Remove extra div wrapper

* Apply design suggestions

* Revert accidental config changes

* Apply navigating to dashboard

* Apply redirect legacy urls

* Apply incoming changes

* Apply incoming changes

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 17:21:49 +03:00
Dario Gieselaar dbdc3cd01a
[APM] Run API tests as restricted user (#70050) 2020-06-29 16:17:32 +02:00
Sandra Gonzales 81022a3206
[Ingest Manager] rollover data stream when index template mappings are not compatible (#69180)
* rollover data stream when index template mappings are not compatible

* update error messages

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 10:01:59 -04:00
Shahzad 64e87cd6b5
[Uptime] Use ML Capabilities API to determine license type (#66921)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 15:36:59 +02:00
Sonja Krause-Harder e91594aeb9
[Ingest Manager] Use DockerServers service in integration tests. (#69822)
* Partially disable test files.

* Use DockerServers in EPM tests.

* Only run tests when DockerServers have been set up

* Reenable ingest manager API integration tests

* Pass new test_packages to registry container

* Enable DockerServers tests in CI.

* Correctly serve filetest package for file tests.

* Add helper to skip test and log warning.

* Reenable further file tests.

* Add developer documentation about Docker in Kibana CI.

* Document use of yarn test:ftr

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-29 15:24:11 +02:00
Nathan L Smith 8e57db696a
[APM] Use licensing from context (#70118)
* [APM] Use licensing from context

We added the usage of `featureUsage.notifyUsage` from the licensing plugin in #69455.

This required us to use `getStartServices to add `licensing` to `context.plugins`.

In #69838 `featureUsage` was added to `context.licensing`, so we don't need to add it to `context.plugins`.
2020-06-29 08:23:52 -05:00
Pierre Gayvallet 7e5cff4be9
[GS] add application result provider (#68488)
* add application result provider

* remove empty contracts & cache searchable apps

* fix types
2020-06-29 15:17:00 +02:00
Alison Goryachev 3571100bcc
[CCR] Fix reducer function when finding missing privileges (#70158) 2020-06-29 08:31:59 -04:00
Wylie Conlon 40ff82d779
[Lens] Fix broken test (#70117) 2020-06-27 08:20:29 +02:00
Angela Chuang f4e7f14ffe
[SIEM] Import timeline fix (#65448)
* fix import timeline and clean up

fix unit tests

apply failure checker

clean up error message

fix update template

* add unit tests

* clean up common libs

* rename variables

* add unit tests

* fix types

* Fix imports

* rename file

* poc

* fix unit test

* review

* cleanup fallback values

* cleanup

* check if title exists

* fix unit test

* add unit test

* lint error

* put the flag for disableTemplate into common

* add immutiable

* fix unit

* check templateTimelineVersion only when update via import

* update template timeline via import with response

* add template filter

* add filter count

* add filter numbers

* rename

* enable pin events and note under active status

* disable comment and pinnedEvents for template timelines

* add timelineType for openTimeline

* enable note icon for template

* add timeline type for propertyLeft

* fix types

* duplicate elastic template

* update schema

* fix status check

* fix import

* add templateTimelineType

* disable note for immutable timeline

* fix unit

* fix error message

* fix update

* fix types

* rollback change

* rollback change

* fix create template timeline

* add i18n for error message

* fix unit test

* fix wording and disable delete btn for immutable timeline

* fix unit test provider

* fix types

* fix toaster

* fix notes and pins

* add i18n

* fix selected items

* set disableTemplateto true

* move templateInfo to helper

* review + imporvement

* fix review

* fix types

* fix types

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2020-06-27 04:53:53 +01:00
Candace Park 684289d6e3
[SECURITY SOLUTION][INGEST] UX update for ingest manager edit/create datasource for endpoint (#70079)
[security solution][ingest]UX update for ingest manager edit/create datasource for endpoint
2020-06-26 20:25:01 -04:00
Ahmad Bamieh 266f853b0b
[Telemetry] Collector Schema (#64942)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-27 02:52:26 +03:00
Kevin Logan 5236335d63
[Endpoint] Add Endpoint empty states for onboarding (#69626) 2020-06-26 18:08:07 -04:00
Michael Olorunnisola 5c8df21ca0
Hide unused resolver buttons (#70112)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 17:38:02 -04:00
Andrew Goldstein 295ac7ef12
[Security] Investigate in Resolver Timeline Integration (#70111)
## [Security] `Investigate in Resolver` Timeline Integration

This PR adds a new `Investigate in Resolver` action to the Timeline, and all timeline-based views, including:

- Timeline
- Alert list (i.e. Signals)
- Hosts > Events
- Hosts > External alerts
- Network > External alerts

![investigate-in-resolver-action](https://user-images.githubusercontent.com/4459398/85886173-c40d1c80-b7a2-11ea-8011-0221fef95d51.png)

### Resolver Overlay

When the `Investigate in Resolver` action is clicked, Resolver is displayed in an overlay over the events. The screenshot below has placeholder text where Resolver will be rendered:

![resolver-overlay](https://user-images.githubusercontent.com/4459398/85886309-10f0f300-b7a3-11ea-95cb-0117207e4890.png)

The Resolver overlay is closed by clicking the `< Back to events` button shown in the screenshot above.

The state of the timeline is restored when the overlay is closed. The scroll position (within the events), any expanded events, etc, will appear exactly as they were before the Resolver overlay was displayed.

### Case Integration

Users may link directly to a Timeline Resolver view from cases via the `Attach to new case` and `Attach to existing case...` actions show in the screenshot below:

![case-integration](https://user-images.githubusercontent.com/4459398/85886773-e3587980-b7a3-11ea-87b6-b098ea14bc5f.png)

![investigate-in-resolver](https://user-images.githubusercontent.com/4459398/85885618-daff3f00-b7a1-11ea-9356-2e8a1291f213.gif)

When users click the link in a case, Timeline will automatically open to the Resolver view in the link.

### URL State

Users can directly share Resolver views (in saved Timelines) with other users by copying the Kibana URL to the clipboard when Resolver is open.

When another user pastes the URL in their browser, Timeline will automatically open and display the Resolver view in the URL.

### Enabling the `Investigate in Resolver` action

In this PR, the `Investigate in Resolver` action is only enabled for events where all of the following are true:

- `agent.type` is `endpoint`
- `process.entity_id` exists

### Context passed to Resolver

The only context passed to `Resolver` is the `_id` of the event (when the user clicks `Investigate in Resolver`)

### What's next?

- @oatkiller will replace the placeholder text shown in the screenshots above with the actual call to Resolver in a separate PR
- I will follow-up this PR with additional tests
- The action text `Investigate in Resolver` may be changed in a future PR
- Hide the `Add to case` action in timeline-based views (it's currently visible, but disabled)
2020-06-26 15:36:51 -06:00
Andrea Del Rio 59925daff5
[Discover] Improve styling of graphs in sidebar (#69440) 2020-06-26 13:21:51 -07:00
Chris Cowan 938733e862
[Metrics UI] Fix EuiTheme type issue (#69735)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 12:55:36 -07:00
Brian Seeders e4aaed6926 skip failing suite (#70104) (#70103) 2020-06-26 15:06:49 -04:00
Paul Tavares 0bdff15297
[ENDPOINT] Hide the Timeline Flyout while on the Management Pages (#69998)
* hide timeline on Management pages
* adjust managment page view styles
* Added additional tests for validating no timeline button on management views
* centralize API Path responses and reuse across some tests
* Fix state being reset incorrectly
2020-06-26 14:59:13 -04:00
Christos Nasikas 6808903d57
[SIEM][CASE] Persist callout when dismissed (#68372) 2020-06-26 21:31:41 +03:00
Yara Tercero e4043b736b
[SIEM][Exceptions] - Cleaned up and updated exception list item comment structure (#69532)
### Summary

This PR is a follow up to #68864 . That PR used a partial to differentiate between new and existing comments, this meant that comments could be updated when they shouldn't. It was decided in our discussion of exception list schemas that comments should be append only. This PR assures that's the case, but also leaves it open to editing comments (via API). It checks to make sure that users can only update their own comments.
2020-06-26 14:15:35 -04:00
Nathan Reese 8aa2206e04
[Maps] remove indexing state from redux (#69765)
* [Maps] remove indexing state from redux

* add indexing step

* tslint

* tslint fixes

* tslint item

* clear preview when file changes

* review feedback

* use prevState instead of this.state in setState

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 12:12:35 -06:00
CJ Cenizal 497dfc7af3
Add API integration test for deleting data streams. (#70020) 2020-06-26 10:59:59 -07:00
MadameSheema 1c9c0fc339
renames SIEM to Security Solution (#70070) 2020-06-26 19:58:51 +02:00
Dmitry Lemeshko 6ebf56ba66
Adding saved_objects_page in OSS (#69900)
* add savedObjects own PO

* fix usage

* simplify functions

* fix test

* fix title parsing

* add missing await

* improve parsing

* wait for table is loaded

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 19:02:30 +02:00
Marta Bondyra 7440eea3dc
[Lens] Use accordion menus in field list for available and empty fields (#68871) 2020-06-26 18:43:35 +02:00
Anton Dosov 3ac5bc5323
Dynamic uiActions & license support (#68507)
This pr adds convenient license support to dynamic uiActions in x-pack.
Works for actions created with action factories & drilldowns.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 18:33:32 +02:00
Angela Chuang 100a5fd18b
[SIEM] Update readme for timeline apis (#67038)
* update doc

* update unit test

* remove redundant params

* fix types

* update readme

* update readme

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 17:12:21 +01:00
John Dorlus 4845bef181
Fixed issue where promise chain was broken. (#70004)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 11:59:50 -04:00
Walter Rafelsberger eea33a0db2
[ML] Transforms: Adds functional tests for transform cloning and editing. (#69933)
Adds functional tests for transform cloning and editing.
2020-06-26 17:03:00 +02:00
Marta Bondyra 2a68dc7c6b
[Lens] Last used Index pattern is saved to and retrieved from local storage (#69511) 2020-06-26 16:33:09 +02:00
Jean-Louis Leysens c8089a5aa2
[Ingest Pipelines Editor] First round of UX improvements (#69381)
* First round of UX tweaks

- Fixed potential text overflow issue on descriptions
- Removed border around text input when editing description

* Updated the on-failure pipeline description copy

* Properly encode URI component pipeline names

* use xjson editor in flyout

* also hide the test flyout if we are editing a component

* add much stronger dimming effect when in edit mode

* also added dimming effect to moving state

* remove box shadow if dimmed

* add tooltips to dropzones

* fix CITs after master merge

* fix nested rendering of processors tree

* only show the tooltip when the dropzone is unavaiable and visible

* keep white background on dim

* hide controls when moving

* fix on blur bug

* Rename variables and prefix booleans with "is"

* Remove box shadow on all nested tree items

* use classNames as it is intended to be used

* Refactor SCSS values to variables

* Added cancel move button

- also hide the description in move mode when it is empty
- update and refactor some shared sass variables
- some number of sass changes to make labels play nice in move
  mode
- changed the logic to not render the buttons when in move mode
  instead of display: none on them. The issue is with the tooltip
  not hiding when when we change to move mode and the mouse event
  "leave" does get through the tooltip element causing tooltips
  to hang even though the mouse has left them.

* Fixes for monaco XJSON grammar parser and update form copy

- Monaco XJSON worker was not handling trailing whitespace
- Update copy in the processor configuration form

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 16:25:50 +02:00
Kevin Qualters 9ebf41c77c
[Endpoint] use rbush to only render to DOM resolver nodes that are in view (#68957)
* [Endpoint] use rbush to only render resolver nodes that are in view in the DOM

* Add related events code back

* Change processNodePositionsAndEdgeLineSegments selector to return a function that takes optional bounding box

* Refactor selectors to not break original, and not run as often

* Memoize rtree search selector, fix tests

* Update node styles to use style hook, update jest tests

* Fix type change issue in jest test
2020-06-26 09:42:10 -04:00
Aleh Zasypkin f1a1178328
Upgrade elliptic dependency (6.5.26.5.3). (#70054) 2020-06-26 15:15:02 +02:00
Alejandro Fernández Haro ae7e9d9ad5
[License Management] Do not break when telemetry.enabled:false (#69711)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 13:57:17 +01:00
Xavier Mouligneau 09e3f75bc3
[SECURITY] Redirect app/security to app/security/overview (#70005)
* redirect app/security to app/security/overview

* missing re-naming initialization

* add unit test for intialization value of indicesExists

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 08:56:09 -04:00
Vadim Dalecky 684aa68f17
"Explore underlying data" in-chart action (#69494)
* refactor: 💡 rename folder to "explore_data"

* style: 💄 check for "share" plugin in more semantic way

"explore data" actions use Discover URL generator, which is registered
in "share" plugin, which is optional plugin, so we check for its
existance, because otherwise URL generator is not available.

* refactor: 💡 move KibanaURL to a separate file

* feat: 🎸 add "Explore underlying data" in-chart action

* fix: 🐛 fix imports after refactor

* feat: 🎸 add start.filtersFromContext to embeddable plugin

* feat: 🎸 add type checkers to data plugin

* feat: 🎸 better handle empty filters in Discover URL generator

* feat: 🎸 implement .getUrl() method of explore data in-chart act

* feat: 🎸 add embeddable.filtersAndTimeRangeFromContext()

* feat: 🎸 improve getUrl() method of explore data action

* test: 💍 update test mock

* fix possible stale hashHistory.location in discover

* style: 💄 ensureHashHistoryLocation -> syncHistoryLocations

* docs: ✏️ update autogenerated docs

* test: 💍 add in-chart "Explore underlying data" unit tests

* test: 💍 add in-chart "Explore underlying data" functional tests

* test: 💍 clean-up custom time range after panel action tests

* chore: 🤖 fix embeddable plugin mocks

* chore: 🤖 fix another mock

* test: 💍 add support for new action to pie chart service

Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2020-06-26 14:26:35 +02:00