Commit graph

36915 commits

Author SHA1 Message Date
Wylie Conlon
374ccfd66f
[Lens] Show runtime fields in field list and improve performance (#79167)
* [Lens] Simplify request to determine existing fields

* Remove duplicate values
2020-10-02 14:18:01 -04:00
Jonathan Buttner
92ff5178c6
[Security Solution][EPM] Reenabling the ingest and endpoint tests (#79290)
* Reenabling the ingest and endpoint tests

* Fixing list test and reenabling security functional tests
2020-10-02 14:15:03 -04:00
Robert Oskamp
819ccf1247
Adjust extend_es_archiver to handle additional cases (#79308)
This PR enables the extend_es_archiver to recognize additional indices like .kibana_1 as well as a list of indices.
2020-10-02 20:14:42 +02:00
Thomas Neirynck
86cb97adf6
[Maps] Simplify IDynamicStyle-api (#79217) 2020-10-02 14:04:31 -04:00
Thomas Neirynck
85528d0ecd
[Maps] Register gold+ feature use (#79011) 2020-10-02 14:04:03 -04:00
Nick Partridge
e9fd3902c5
upgrade @elastic/charts to v23.0.0 (#79226)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 19:48:40 +02:00
Alejandro Fernández Gómez
2899e83df8
[Logs UI] Remove legacy singletons (#77743)
Removes the `npStart` legacy singleton used during the migration to the new platform. The singleton was used in API calls to access the `http.fetch` service. To remove the singleton we have injected `fetch` as a dependency in all functions.
2020-10-02 18:57:50 +02:00
Spencer
bb4ad196ea
normalize paths before printing them into the generated plugin list (#79232)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-02 09:50:49 -07:00
Ryan Keairns
d9915fdee0
Re-style and re-order top menu buttons (#79206)
* Re-style and re-order top menu buttons

* Update snapshot due to removed fill prop

* Fix link order for Maps
2020-10-02 11:47:20 -05:00
Alejandro Fernández Haro
7afb8b4d7b
[Usage Collection] [schema] alerts (#78933) 2020-10-02 17:45:47 +01:00
Marco Liberati
d679624532
[Lens] Fix open custom ranges saved issue (#78915)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 18:41:40 +02:00
Devon Thomson
6364c14ffd
Panel Description Tooltip Design Change (#79213)
* wrapped Embeddable Panel title in EuiTooltip and centered description icon
2020-10-02 12:31:08 -04:00
Marta Bondyra
fccfad24cb
[Lens] remove test warnings about improper HTML structure (#79251)
* [Lens] remove test warnings about improper HTML structure
2020-10-02 17:18:20 +02:00
Alejandro Fernández Haro
f398b49200
[Usage Collection] [schema] actions (#78832) 2020-10-02 16:03:42 +01:00
Marshall Main
46af5fcc2d
[Security Solution][Detections] Enrich shell signals with fields common to all building blocks (#79130)
* Enrich shell signals with fields common to all building blocks

* PR comments + additional unit test
2020-10-02 10:10:38 -04:00
Bohdan Tsymbala
95bf8750cd
Refactored store code to group properties related to location so that would be easy to introduce a new view type parameter. (#79083) 2020-10-02 16:00:09 +02:00
Ryan Keairns
a7d9e2f481
Improved empty state for nav search (#79123)
* Improved empty state for nav search

* Updates tests to include required props

* Update empty state text
2020-10-02 08:39:37 -05:00
Tiago Costa
0628cfecf4
skip flaky suite (#79249) 2020-10-02 14:30:32 +01:00
Paul Tavares
79eb9b7b7a
Use process.executable instead of process.path (#79216) 2020-10-02 08:53:55 -04:00
Larry Gregory
b9a79836f8
Grouped features for role management (#78152)
* Grouped features for role management

* address PR feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 08:45:28 -04:00
Søren Louv-Jansen
ea6bec6c9b
[APM] Use history.replace to preserve back-button functionality (#78978) 2020-10-02 14:33:33 +02:00
MadameSheema
b01140fc2e
improves eql test (#79014)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 13:52:03 +02:00
ymao1
09b0b6630a
Rearranged PagerDuty action params so non-optional params are at the top (#79026) 2020-10-02 07:40:47 -04:00
Tim Roes
70dac72ad3
Move legacy plugins to appropriate teams (#79078)
* Move legacy plugins to appropriate teams

* More cleanup
2020-10-02 13:39:38 +02:00
PavithraCP
94ef651d7b
[Lens]Do not enable histogram mode for multiple un-stacked bar series (#78525) 2020-10-02 13:16:46 +02:00
Pete Hampton
e52884cfa2
[7.10][Telemetry] Display collected security event sample (#78963)
* Add security example to usage data opt in panel.

* Update translations.

* Fix docs.

* Fix broken type.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 10:28:37 +01:00
Matthias Wilhelm
d772c8ca95
[Discover] Change context query to prevent duplicates (#77014) 2020-10-02 11:22:41 +02:00
Patryk Kopyciński
bd9a9a7a2b
[Security Solution] Refactor react-beautiful-dnd render props (#78128) 2020-10-02 10:45:53 +02:00
Søren Louv-Jansen
4ddcd1d2a6
[APM] Fix anomalies not showing up on transaction charts (#76930)
* [APM] Fix anomalies not showing up on transaction charts

* Added API tests to check transaction groups charts for anomaly data

* Improve test names and assertions from PR feedback

* Updated the transaction groups chart API to make `environment` a
required param while making `uiFilters` optional

* updates the basic API tests for transaction_groups/charts with the
required `environment` param

* makes uiFIltersES default to [] on core setup and removes SetupUIFilters type

* fixes vertical shade

* - replaces uiFiltersES with esFilter & uiFilters and cleans up related code around these
- deduplicates the required environment in the transaction_groups/charts API

* updates basic apm_api_integration tests

* pr feedback

* updates api test snapshots with correct anomaly data

* removed environment query param from useTransactionCharts and ensures
it's included in uiFilters returned from useUrlParams

Co-authored-by: Oliver Gupte <olivergupte@gmail.com>
2020-10-02 00:45:50 -07:00
Stratoula Kalafateli
1b61cc6b5d
[Functional] Add retry on custom formatter test (#78729)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 09:03:08 +03:00
Ashik Meerankutty
e92a4ab4bf
[APM] Service Inventory Updated the EuiBadge to use the behind_text vars instead of the base colors for the health status badges (#77844)
* Use behind_text colors in health status

* Separated badge color usage from getSeverityColor
2020-10-01 21:04:22 -05:00
Nathan Reese
6c015cfbef
Convert VectorLayer to typescript (#78490)
* [maps] convert VectorLayer to TS

* more tslint fixes

* clean up

* more tslint fixes

* more tslint fixes

* remove unneeded casts

* remove unneeded VectorStyle casts

* revert changes to layer.getQuery

* fix

* update tile layer constructor

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 19:04:26 -06:00
Phillip Burch
1841495322
[Metrics UI] Override anomaly detection partition field (#79214)
* Add ability to override datafeeds and job config for partition field

* Remove debug

* UX cleanup

* Fix types, delete dead code

* Fix types
2020-10-01 18:54:46 -05:00
Tiago Costa
e5d8d49164
chore(NA): assures a single version for the same dependency across the entire project (#78825)
* chore(NA): script to check for multiple version of same dependency

* chore(NA): remove multiple versions for the same dependency

* chore(NA): hook single_version_dependencies script into the CI

* chore(NA): remove grunt from the CI hook integration

* chore(NA): update kbn pm dist

* chore(NA): fix typechecking

* chore(NA): update code to run under last extract-zip version

* fix(NA): multiple versions of the same type dependency

* move validation to bootstrap (#13)

Co-authored-by: spalger <spalger@users.noreply.github.com>

* chore(NA): todo to remove logic to validate single version deps once we move into a single package.json

* chore(NA): remove verify dependency versions jenkins task

* chore(NA): update kbn pm dist file

* chore(NA): remove last mention to verify_dependency_versions.sh fom tasks.groovy

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 00:46:00 +01:00
Spencer
0ee253e9e0
[optimizer] strip proptypes from plugin bundles in production (#79221)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-10-01 16:43:13 -07:00
Frank Hassanabad
d6c712842d
[Security Solution][Detection Engine] Adds threat matching to the rule creator (#78955)
## Summary

This adds threat matching rule type to the rule creator.

Screen shot of creating a threat match

<img width="1023" alt="Screen Shot 2020-09-30 at 3 31 09 PM" src="https://user-images.githubusercontent.com/1151048/94742158-791b1c00-0332-11eb-9d79-78ab431322f0.png">

---

Screen shot of the description after creating one

<img width="1128" alt="Screen Shot 2020-09-30 at 3 29 32 PM" src="https://user-images.githubusercontent.com/1151048/94742203-8b955580-0332-11eb-837f-5b4383044a13.png">

---

Screen shot of first creating a threat match without values filled out

<img width="1017" alt="Screen Shot 2020-09-30 at 3 27 29 PM" src="https://user-images.githubusercontent.com/1151048/94742222-95b75400-0332-11eb-9872-e7670e917941.png">

Additions and bug fixes:
* Changes the threat index to be an array
* Adds a threat_language to the REST schema so that we can use KQL, Lucene, (others in the future)
* Adds plumbing for threat_list to work with the other REST endpoints such as PUT, PATCH, etc...
* Adds the AND, OR dialog and user interface

**Usage**
If you are a team member using the team servers you can skip this usage section of creating threat index. Otherwise if you want to know how to create a mock threat index, instructions are below.

Go to the folder:
```ts
/kibana/x-pack/plugins/security_solution/server/lib/detection_engine/scripts
```

And post a small ECS threat mapping to the index called `mock-threat-list`:
```ts
./create_threat_mapping.sh
```

Then to post a small number of threats that represent simple port numbers you can run:
```ts
./create_threat_data.sh
```

However, feel free to also manually create them directly in your dev tools like so:

```ts
# Posts a threat list item called some-name with an IP but change these out for valid data in your system
PUT mock-threat-list-1/_doc/9999
{
  "@timestamp": "2020-09-09T20:30:45.725Z",
  "host": {
    "name": "some-name",
    "ip": "127.0.0.1"
  }
}
```

```ts
# Posts a destination port number to watch
PUT mock-threat-list-1/_doc/10000
{
  "@timestamp": "2020-09-08T20:30:45.725Z",
  "destination": {
    "port": "443"
  }
}
```

```ts
# Posts a source port number to watch
PUT mock-threat-list-1/_doc/10001
{
  "@timestamp": "2020-09-08T20:30:45.725Z",
  "source": {
    "port": "443"
  }
}
```

### Checklist

- [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)
- [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
- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)
- [ ] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)
- [ ] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
2020-10-01 16:31:00 -06:00
Patrick Mueller
117b5771dc
[Alerting] formalize alert status and add status fields to alert saved object (#75553)
resolves https://github.com/elastic/kibana/issues/51099

This formalizes the concept of "alert status", in terms of it's execution, with
some new fields in the alert saved object and types used with the alert client
and http APIs.

These fields are read-only from the client point-of-view; they are provided in
the alert structures, but are only updated by the alerting framework itself.
The values will be updated after each run of the alert type executor.

The data is added to the alert as the `executionStatus` field, with the
following shape:

```ts
interface AlertExecutionStatus {
  status: 'ok' | 'active' | 'error' | 'pending' | 'unknown';
  lastExecutionDate: Date;
  error?: {
    reason: 'read' | 'decrypt' | 'execute' | 'unknown';
    message: string;
  };
}
```
2020-10-01 18:06:26 -04:00
Jen Huang
5f187307c2
Fix condition for filtering to installed packages (#79205) 2020-10-01 14:50:03 -07:00
Tyler Smalley
7211f78ce1
Bumps Jest related packages (#78720)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-01 14:38:51 -07:00
Yuliia Naumenko
63ff0606df
Extended Email action configuration with hasAuth property to identify if the connector require user credentials. Improved UX for Email connector (#78235)
* Extended Email action configuration with hasAuth property to identify if the connector require user credentials. Improved UX for Email connector

* Fixed failing tests and comments

* Fixed type check and reverted logic of Add user and password switch button

* Fixed due to the latest design requirenments

* Fixed due to review comments
2020-10-01 13:57:28 -07:00
Shahzad
8406e04a42
Fix long tasks query (#79099) 2020-10-01 22:49:31 +02:00
Angela Chuang
3078908093
[Security Solution] Searchstrategy integration (#78147)
* init tests

* add integration test for topNflow search strategy

* add integration tests

* add more tests

* more tests

* fix types

* fix types

* fix integration test

* fix types

* rm grapgql

* fix type

* fixup

* fix test error

* fix integration test

* skip failing test

* fix integration

* skip failing test

* skip failing test

* fix integration tests for kpi network

* fix integration test

* fix integration test

* fix import

* remove additional data

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 21:46:13 +01:00
Lee Drengenberg
0a7462dc4a
move apps lower in tree, add metricbeat dashboard screenshot test (#79001) 2020-10-01 15:35:36 -05:00
Caroline Horn
d0f8e5cbea
Fix z-index of KQL Suggestions dropdown (#79184)
Fix from #4084
2020-10-01 15:49:14 -04:00
Spencer
12d0125024
[babel] remove unused/unneeded babel plugins (#79173)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-01 12:23:45 -07:00
Lukas Olson
a8e3c8ac78
[Search] Fix timeout upgrade link (#79045) 2020-10-01 11:56:50 -07:00
Devon Thomson
e08f6a38f6
Always Show Embeddable Panel Header in Edit Mode (#79152)
* Always show header in edit mode
2020-10-01 14:52:28 -04:00
nnamdifrankie
46084cbbe8
[Ingest]: add more test for transform index (#79154) 2020-10-01 14:50:40 -04:00
Walter Rafelsberger
bad6eab792
[ML] DF Analytics: Collapsable sections on results pages (#76641)
- Fixes cell color coding based on influence score for outlier detection results page data grid. (Part of #77046)
- Introduces expandable sections (<ExpandableSection />). In contrast to plain accordions, the main idea of this component is that it should also provide some sort of useful summary when collapsed instead of just being an expandable title. For example, the "Analysis" section is collapsed by default, but still offers information like analysis type, source and destination index. This concept should allow us to keep the analytics results pages usable with more content (additional results, evaluations, visualizations) being added over time.
- The "Analysis" section is a reuse of the expandable row from the analytics jobs list. Some design adjustments have been made to make it usable in both places.
2020-10-01 20:27:22 +02:00
Jen Huang
b3c37cf94c
[Fleet] Fix agent policy change action migration (#79046)
* Fix agent policy change action migration for encrypted `data` property

* Parse & re-stringify `config`->`policy` data
2020-10-01 11:09:59 -07:00