Commit graph

5553 commits

Author SHA1 Message Date
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
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
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
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
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
Devon Thomson
52223da44f
prep state transfer for passing embeddables by value to editor and back (#69991)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-26 12:55:12 +01:00
Gidi Meir Morris
1ab5b4ab8b
[alerting] migrates the old alerting consumer to be alerts (#69982)
This PR migrates all old alerts with the `alerting` consumer to have `alerts` instead.
This is because in 7.9 we changed the feature ID and we need these to remain in sync otherwise the RBAC work (https://github.com/elastic/kibana/pull/67157) will break old alerts.
2020-06-26 12:04:42 +01:00
Cauê Marcondes
41ecf39539
[APM]Create API to return data to be used on the Overview page (#69137)
* Adding apm data fetcher

* removing error rate

* chaging observability dashboard routes

* APM observability fetch data

* fixing imports

* adding unit test

* addressing PR comments

* adding processor event in the query, and refactoring theme

* fixing ts issues

* fixing unit tests
2020-06-26 11:11:42 +02:00
Marta Bondyra
8448ae8b4b
[Lens] Fix delete button position in dimension panel for long labels (#69495) 2020-06-26 09:50:13 +02:00
Joe Reuter
67e48527e7
[Lens] Add toolbar api (#69263) 2020-06-26 09:38:35 +02:00
Nathan Reese
be3886b77f
[Maps] avoid using MAP_SAVED_OBJECT_TYPE constant when defining URL paths (#69723)
* [Maps] avoid using MAP_SAVED_OBJECT_TYPE constant when defining URL paths

* rename methods

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 20:25:05 -06:00
Nathan Reese
0465e86bf3
[Maps] Fix icon palettes are not working (#69937)
* [Maps] Fix icon palettes are not working

* unit test mapbox icon-image expression

* fix unit test expect statements
2020-06-25 20:20:59 -06:00
Nicolas Chaulet
7163c678bd
[Ingest Manager] Fix typo in constant name (#69919) 2020-06-25 20:32:29 -04:00
Tim Sullivan
e143905223
[Reporting] ReportingStore module (#69426)
* Add store class

* fix tests

* fix the createIndex bug

* add reportingstore test

* change function args

* nits

* add test for automatic index creation failure recovery
2020-06-25 14:52:30 -07:00
Josh Dover
77df036558
Add featureUsage API to licensing context provider (#69838) 2020-06-25 15:28:48 -06:00
Zacqary Adam Xeper
3b9bbdb1a0
Fix uncaught typecheck merge conflict (#70001) 2020-06-25 15:03:09 -05:00
Rudolf Meijering
61a69f3825
Use TS to discourage SO mappings with dynamic: false / dynamic: true (#69927)
* Use TS to discourage SO mappings with dynamic

* Some unrelated docs changes
2020-06-25 21:44:57 +02:00
Robert Austin
c7aec6ec08
Rename Resolver types to include 'Resolver' (#69926)
Include the word 'Resolver' in some Resolver specific types in order to
improve readability and ease of auto-importing.
2020-06-25 14:54:05 -04:00
István Zoltán Szabó
d25ced2dd3
[ML] Changes create DFA job page title (#69925) 2020-06-25 19:37:25 +02:00
Steph Milovic
4eafb8e1b0
[Security Solution] [Timeline] fix bug for filter manager #69870 2020-06-25 11:32:15 -06:00
Søren Louv-Jansen
86895ef89f
[APM] Add callout to inform users of high cardinality in unique transaction names (#69112)
* [APM] Add callout

Showing a callout to inform the user we have detected a high cardinality in unique transaction names and enabling them how to fix it.

* Changed color and icon

* Updated copy and styling

* Check number of returned buckets

* Add translations and docs

* Update docs link

Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>

* Fix tests

Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>
2020-06-25 19:11:47 +02:00
Zacqary Adam Xeper
71ea1a05c3
[Metrics UI] Prefill alerts from the global dropdown (#68967)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 12:00:58 -05:00
Aaron Caldwell
40c746e3fd
[Maps] Remove maps-telemetry saved object as it is no longer in use (#69871) 2020-06-25 10:38:53 -06:00
Gidi Meir Morris
68cf857193
[Encrypted Saved Objects] Adds support for migrations in ESO (#69513)
Introduces migrations into Encrypted Saved Objects.

The two main changes here are:
1. The addition of a createMigration api on the EncryptedSavedObjectsPluginSetup.
2. A change in SavedObjects migration to ensure they don't block the event loop.
2020-06-25 17:23:31 +01:00
patrykkopycinski
ef496ff6fa
[SIEM] Replace WithSource with useWithSource hook (#68722) 2020-06-25 18:08:17 +02:00
nnamdifrankie
a854067fb0
[Endpoint]EMT-451: add ability to filter endpoint metadata based on presence of unenrolled events (#69708)
[Endpoint]EMT-451: add ability to filter endpoint metadata based on presence of unenrolled events
2020-06-25 11:50:16 -04:00
Xavier Mouligneau
ff3ee41e79
rename old siem kibana config to securitySolution (#69874)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-06-25 11:30:25 -04:00
Robert Austin
eb5afccfd0
Remove unused Resolver code (#69914)
* embeddable
* embeddable factory
* a file called 'sample'
* resolver/index (it was just importing and re-exporting stuff)
2020-06-25 11:20:18 -04:00
Cauê Marcondes
9d9df2b6c1
[Observability] Fixing dynamic return type based on the appName (#69894)
* fixing generic return type

* addressing pr comments
2020-06-25 17:19:38 +02:00
Candace Park
1daa2f4a54
[SECURITY SOLUTION][INGEST] Task/endpoint list tests (#69419)
endpoint func tests for endpoint details to ingest, edit datasource to policy, bug fix for security link
2020-06-25 11:10:39 -04:00
Dario Gieselaar
589d6ffd22
[APM] Catch annotations index permission error and log warning (#69881)
Relates to #69642. If the user doesn't have the appropriate privileges for the annotations index, instead of failing with a 500, we now catch the error and log a warning to the console.
2020-06-25 16:55:46 +02:00
Paul Tavares
8ff45caa76
[Endpoint][Ingest Manager] minor code cleanup (#69844)
* Ingest: Rename datasource Layout prop to `onCancel`
* Endpoint: Policy list - swap use of endpoint package hook for redux middleware
* Endpoint: Add tests cases for `sendGetEndpointSecurityPackage()` method
* Endpoint: add policy list store tests for new action
2020-06-25 10:51:05 -04:00
Alejandro Fernández
14ac056be9
[Logs UI] Logs ui context menu (#69915) 2020-06-25 16:27:17 +02:00
Yara Tercero
f7acbbe7a1
[SIEM][Detection Engine] - Update DE to work with new exceptions schema (#69715)
* Updates list entry schema, exposes exception list client, updates tests

* create new de list schema and unit tests

* updated route unit tests and types to match new list schema

* updated existing DE exceptions code so it should now work as is with updated schema

* test and types cleanup

* cleanup

* update unit test

* updates per feedback
2020-06-25 09:47:05 -04:00
Brent Kimmel
0ef7bb84bc
PR: Provide limit warnings to user when API limits are reached. (#69590)
* Provide facilties to raise limit warnings for user when API limits are reached.
2020-06-25 09:38:16 -04:00