Commit graph

47774 commits

Author SHA1 Message Date
Felix Stürmer 34b22578d6
[Logs UI] [Metrics UI] Remove deprecated alias config entries (#115974)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-27 15:20:19 +02:00
Paul Tavares c566e048e8
make EndpointPrivileges object immutable (#116299) 2021-10-27 09:07:19 -04:00
Paul Tavares 8998655fcb
Fix driver to the policy details loading state (#116208) 2021-10-27 09:05:40 -04:00
Byron Hulcher 0381326ede
Retrieve search results on Relevance Tuning page whenever precision or query is changed (#116316) 2021-10-27 08:52:14 -04:00
Nathan Reese 3b3c4b2f4a
[maps] Use desaturated map tiles instead of bright map tiles by default (#116179)
* [maps] default to desaturated tiles in light mode

* fix jest and functional tests

* eslint

* update migrations version expect

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-27 06:34:07 -06:00
Dima Arnautov 37632f1798
[ML] Nodes overview for the Model Management page (#116361)
* [ML] Nodes overview for the Model Management page  (#115772)

* [ML] trained models tab

* [ML] wip nodes list

* [ML] add types

* [ML] add types

* [ML] node expanded row

* [ML] wip show memory usage

* [ML] refactor, use model_memory_limit for dfa jobs

* [ML] fix refresh button

* [ML] add process memory overhead

* [ML] trained models memory overview

* [ML] add jvm size, remove node props from the response

* [ML] fix tab name

* [ML] custom colors for the bar chart

* [ML] sub jvm size

* [ML] updates for the model list

* [ML] apply native process overhead

* [ML]add adjusted_total_in_bytes

* [ML] start and stop deployment

* [ML] fix default sorting

* [ML] fix types issues

* [ML] fix const

* [ML] remove unused i18n strings

* [ML] fix lint

* [ML] extra custom URLs test

* [ML] update tests for model provider

* [ML] add node routing state info

* [ML] fix functional tests

* [ML] update for es response

* [ML] GetTrainedModelDeploymentStats

* [ML] add deployment stats

* [ML] add spacer

* [ML] disable stop allocation for models with pipelines

* [ML] fix type

* [ML] add beta label

* [ML] move beta label

* [ML] rename model_size prop

* [ML] update tooltip header

* [ML] update text

* [ML] remove ts ignore

* [ML] update types

* remove commented code

* replace toast notification service

* remove ts-ignore

* remove empty panel

* add comments, update test subjects

* fix ts error

* update comment

* fix applying memory overhead

* Revert "fix applying memory overhead"

This reverts commit 0cf38fbead.

* fix type, remove ts-ignore

* add todo comment

(cherry picked from commit 605e9e2d3d)

* updates for the latest elasticsearch client

* hide allocated models when missing

* [ML] Update jest test mock

Co-authored-by: Quynh Nguyen <quynh.nguyen@elastic.co>
2021-10-27 11:29:57 +02:00
Shahzad 98231f45ac
[Uptime] Uptime index config using kibana.yml (#115775)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-27 10:15:21 +02:00
Devon Thomson 0b2dcdf408
[Controls] Dashboard Integration (#115991)
Create filters when controls change. Integrated controls on dashboard behind lab
2021-10-27 03:55:55 -04:00
Tyler Smalley 910a5cae5f skip flaky suite (#104260) 2021-10-26 22:30:55 -07:00
Chenhui Wang 306a7cb0f4
Include Files in GitHub UI (#115956) 2021-10-27 12:16:05 +08:00
Tyler Smalley 4b25b00fde skip flaky suite (#116060) 2021-10-26 18:00:25 -07:00
Catherine Liu bacd7f91dd
[Canvas] By-Value Embeddables (#113827)
* [Canvas] Generic embeddable function (#104499)

* Created generic embeddable function

    Fixed telemetry

    Updates expression on input change

    Fixed ts errors

Store embeddable input to expression

Added lib functions

Added comments

Fixed type errors

Fixed ts errors

Clean up

Removed extraneous import

Added context type to embeddable function def

Fix import

Update encode/decode fns

Moved embeddable data url lib file

Added embeddable test

Updated comment

* Fix reference extract/inject in embeddable fn

* Simplify embeddable toExpression

* Moved labsService to flyout.tsx

* Added comment

* [Canvas] Adds Save and Return Workflow (#111411)

* [Canvas] Adds editor menu to Canvas (#113194)

* Merge existing embeddable input with incoming embeddable input (#116026)

* [Canvas] Extract and inject references for by-value embeddables (#115124)

* Extract/inject references for by-value embeddables in embeddable function

Fixed server interpreter setup

Register external functions in canvas_plugin_src plugin def

* Fixed ref name in embeddable.inject

* Fixed ts errors

* Fix missing type error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 17:25:06 -07:00
Tyler Smalley 01292cec67 Skip failing test (#115366)
https://github.com/elastic/kibana/issues/115366

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-26 17:23:24 -07:00
Patryk Kopyciński 82caede4fa
[Osquery] Fix live query search doesn't return relevant results for agents (#116332) 2021-10-27 01:04:26 +01:00
Caroline Horn 5666bd79fd
[Integrations] Added link in old Add Data description and fixed alignment in cards (#116213) 2021-10-26 19:46:51 -04:00
Yuliia Naumenko fac628623e
[Actions] Extended ActionTypeRegistry with connector validation to validate config with secrets (#116079)
* [Actions] Extended ActionTypeRegistry with connector validation to validate config with secrets

* fixed typecheck

* added tests

* more tests

* email validation fix

* fixed typecheck

* fixed typecheck

* added tests

* fixed typecheck

* fixed test

* fixed due to comments

* fixed test

* fixed test

* fixed typecheck
2021-10-26 16:06:05 -07:00
Tiago Costa ebcc0070ba skip flaky suite (#109329)
(cherry picked from commit 21973b58a8)
2021-10-26 22:23:06 +00:00
Xavier Mouligneau 852a728229
Grant access to machine learning features when base privileges are used (#115444) 2021-10-26 18:15:44 -04:00
Tyler Smalley 1827cf2479 Skipping failing test (#84957)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-26 13:58:13 -07:00
Madison Caldwell 117efdf87f
[RAC][Security Solution] Adds migration to new SecuritySolution rule types (#112113)
* Initial commit

* Properly handle signal history

* Fix #95258 - cardinality sort bug

* Init threshold rule

* Create working threshold rule

* Fix threshold signal generation

* Fix tests

* Update mappings

* ALERT_TYPE_ID => RULE_TYPE_ID

* Add tests

* Fix types

* Adds RAC rule type migration

* Fix threshold tests (remove outputIndex)

* Add threshold rule type to ruleTypeMappings

* Add kbn-securitysolution-rules package for sharing with alerting framework

* Fix type errors

* Fix find_rules tests

* First round of test fixes

* Fix issues from merge conflicts

* Use ruleDataClient getReader() for reading

* Fixes to 'generating_signals' tests

* Remove more refs to legacy schema

* Linting

* Quick type fix

* Bug fixes

* Add saved query rule type

* Linting

* Fix types

* Signal generation tests

* Test updates

* Update some more refs

* build_alert tests

* Cleanup

* Ref updates

* Revert "Ref updates"

This reverts commit 4d1473d6b0.

* Update status field

* Test fixes

* Another test

* Got a little too aggressive with search/replace

* let's see where we're at

* Fix

* Test fixes

* cleanup

* Fix cases API integration test config, flaky DE tests

* Move flattenWithPrefix to package / skip signal migration tests

* Fix unit tests

* Use new schema for bulk rule creation

* event: { kind } => event.kind

* Fix signal migration API tests

* Fix ml integration test

* Fix threat match integration tests

* Fix ML rule type tests and add correct producer to all rule types

* Update threat match API integration test

* Remove dupe properties

* Type fix

* Fix ML producer in functional test

* Fix generating_signals tests

* Remove usage of RuleDataClient-based execution log client

* Don't check output index version if rule registry enabled

* Fix bulk duplicate rule

* Fix duplicate rule test

* Fix readPrivileges and timestamp check logic

* Fixes for eql and exceptions tests... disable open_close_signals

* Type fixes / keyword test fixes

* Additional test fixes

* Unit test fixes + signal -> kibana.alert

* Test fixes for exceptions

* Fix read_resolve_rules test

* Various test fixes with marshallmain

* Sort search results

* Fix create_rules tests

* Disable writer cache for integration tests

* Disable writer cache for cases integration tests

* Fix types in rule_data_plugin_service

* Fix ordering in exceptions tests

* Remove rule_registry.enabled flag

* Fix signals migration tests

* Don't check signals index before creation

* Fix cypress config

* Fix type error

* create_migrations tests

* Skip flaky test

* Helpful comment

* Fixes from merge conflicts

* Pretend that signals index exists

* Fix type errors

* Skip flaky tests

* Fix threat matching test

* Clean up

* Reverting default ruleRegistry experimental flag (breaks unit tests)

* Reenable rule registry experimental feature by default

* Execute DE rule migration in 8.0

Co-authored-by: Marshall Main <marshall.main@elastic.co>
2021-10-26 16:56:40 -04:00
Tyler Smalley f92cbbcd7d skip flaky suite (#115366) 2021-10-26 13:45:24 -07:00
Jason Skowronski cf75735da2
[Fleet] Marking API spec as experimental (#116331) 2021-10-26 13:41:35 -07:00
debadair 0e3dcc65dd
[Docs] Cleaning up the versions in the upgrade paths. Closes #116223 (#116228)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 13:30:47 -07:00
Tim Sullivan 3b8766fe95
[Reporting] Suppress debug logs in the mock logger (#116012)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 13:29:54 -07:00
Zacqary Adam Xeper f389b74203
[Metrics UI] Clear threshold alert groups state when filterQuery changes (#116205) 2021-10-26 15:21:43 -05:00
Tobias Stadler cd3ec12128
[Cases] Fixed typo (#116042)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 23:09:29 +03:00
Lukas Olson eb74b86ca4
[data.search.session] Use locators instead of URL generators (#115681)
* [data.search.session] Use locators instead of URL generators

* Add migration

* Fix/update tests

* Fix types

* Fix test setup

* Update docs

* Fix version :)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 12:30:11 -07:00
Tim Sullivan 1211149038
[Reporting] Fix screenshot diagnostics (#116199)
* [Reporting] Fix screenshot diagnostics

* update snapshots

* fix test

* tersify test assertions

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 20:29:31 +01:00
Patryk Kopyciński f6dd54a00a
[Osquery] Fix 7.16.0 BC1 issues (#116074) 2021-10-26 20:14:03 +01:00
Tyler Smalley 645cecdf1f
[bazel] Remove Bazel cache for now (#116351)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-26 12:04:17 -07:00
spalger 960b037f81 Revert "[ML] Nodes overview for the Model Management page (#115772)"
This reverts commit 605e9e2d3d.
2021-10-26 13:52:01 -05:00
Thom Heymann 99d07acfce
Interactive setup functional tests (#115274) 2021-10-26 19:03:00 +01:00
Xavier Mouligneau e185afefa2
Register "minimal" feature privileges regardless of the current license level (#115992)
* bring minimal-* privilege up

* Fix api_integration for minimal_

* attempt to fix minimal_ UI

* fix tests

* Update x-pack/plugins/security/server/authorization/privileges/privileges.test.ts

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* fix tests

* fix es-lint

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
2021-10-26 18:49:01 +01:00
Nick Peihl 38a634d543
Use Elastic Maps Service v8.0 (#116217) 2021-10-26 18:43:36 +01:00
Dima Arnautov 605e9e2d3d
[ML] Nodes overview for the Model Management page (#115772)
* [ML] trained models tab

* [ML] wip nodes list

* [ML] add types

* [ML] add types

* [ML] node expanded row

* [ML] wip show memory usage

* [ML] refactor, use model_memory_limit for dfa jobs

* [ML] fix refresh button

* [ML] add process memory overhead

* [ML] trained models memory overview

* [ML] add jvm size, remove node props from the response

* [ML] fix tab name

* [ML] custom colors for the bar chart

* [ML] sub jvm size

* [ML] updates for the model list

* [ML] apply native process overhead

* [ML]add adjusted_total_in_bytes

* [ML] start and stop deployment

* [ML] fix default sorting

* [ML] fix types issues

* [ML] fix const

* [ML] remove unused i18n strings

* [ML] fix lint

* [ML] extra custom URLs test

* [ML] update tests for model provider

* [ML] add node routing state info

* [ML] fix functional tests

* [ML] update for es response

* [ML] GetTrainedModelDeploymentStats

* [ML] add deployment stats

* [ML] add spacer

* [ML] disable stop allocation for models with pipelines

* [ML] fix type

* [ML] add beta label

* [ML] move beta label

* [ML] rename model_size prop

* [ML] update tooltip header

* [ML] update text

* [ML] remove ts ignore

* [ML] update types

* remove commented code

* replace toast notification service

* remove ts-ignore

* remove empty panel

* add comments, update test subjects

* fix ts error

* update comment

* fix applying memory overhead

* Revert "fix applying memory overhead"

This reverts commit 0cf38fbead.

* fix type, remove ts-ignore

* add todo comment
2021-10-26 18:39:37 +01:00
Brian Seeders c200c44347
[buildkite] Add Docker CI Group to flaky test job (#116307) 2021-10-26 18:35:58 +01:00
Larry Gregory 5a9e170d4b
Remove the legacy audit logger (#116191)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 18:32:17 +01:00
Mikhail Shustov 40674b53be
Enable APM agent (#116283)
* update APM agent to version with v8 client support

* enable APM agent back
2021-10-26 18:28:46 +01:00
Nathan Reese adace71ee5
[maps] add support for mvt _key property (#116204)
* [maps] add support for mvt _key property

* return property value, not key name

* eslint

* eslint

* fix jest test and update expect for second geo grid tile API test

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 11:08:43 -06:00
Sergi Massaneda 109e0e71c7
[Security Solutions] Improve deep links generation by capabilities (#116274)
* deep links structure changed

* feature on child deep links not required
2021-10-26 17:50:48 +01:00
Nathan Reese aa17c1b509
[maps] re-enable x-pack/test/functional/apps/maps/documents_source/top_hits·js (#115392)
* [maps] re-enable x-pack/test/functional/apps/maps/documents_source/top_hits·js

* remove comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 10:45:14 -06:00
Nathan Reese c40d3db6b6
[Maps] remove ecommerce map saved object from home plugin (#116295) 2021-10-26 10:44:14 -06:00
Thomas Neirynck 4a988dc5e3
[Maps] Remove proxyElasticMapsServiceInMaps (#116184)
Removes the map.proxyElasticMapsServiceInMaps yml setting.
2021-10-26 12:16:29 -04:00
Joe Portner 3c9a6564e8
Prevent legacy url conflicts (#116007) 2021-10-26 17:15:41 +01:00
Andrew Goldstein 9911883ba4
[Security Solution] Prevents the Status badge from stretching in the Alert Details flyout (#116237)
## [Security Solution] Prevents the `Status` badge from stretching in the Alert Details flyout

This PR fixes <https://github.com/elastic/kibana/issues/115709> to prevent the `Status` badge from stretching in the Alert Details flyout.

### Screenshots

**Before:**

![before](https://user-images.githubusercontent.com/4459398/138806049-895317b6-2990-43f6-b978-dab1711494a5.png)

After Chrome `95.0.4638.54`:

![after-chrome](https://user-images.githubusercontent.com/4459398/138806164-ce802982-5c5a-4a30-a906-1583e2ba9939.png)

After Firefox `93.0`:

![after-firefox](https://user-images.githubusercontent.com/4459398/138806249-152a6b33-f1b9-4a5b-8607-8da29689d599.png)

After Safari `15.0`:

![after-safari](https://user-images.githubusercontent.com/4459398/138806320-45202b3a-1f84-4a4f-8fd0-107523597a22.png)

### Details

The fix overrides the default value of `EuiFlexGroup`'s `alignItems` prop, which has a default value of `stretch`, per the image below:

![EuiFlexGroup_alignItems](https://user-images.githubusercontent.com/4459398/138805941-96e06533-8df7-447c-bb74-9278a06d39db.png)
2021-10-26 09:46:01 -06:00
Giorgos Bamparopoulos b17e01dd9a
[APM] Set level for all registered deprecations (#116272) 2021-10-26 16:42:32 +01:00
Gil Raphaelli 6f779c6d17
use separate token for APM (#116315) 2021-10-26 08:35:26 -07:00
Giorgos Bamparopoulos dc77c89e84
Update dependencies overview route to use backendName as a query param (#115226)
* Update dependencies overview route to use backendName as a query param

* Remove backendName from context

* Move backendMetadataFetch call to the place that is used and remove ApmBackendContext

* Update API routes and tests

* Add redirect from the old route
2021-10-26 16:35:08 +01:00
Mark Hopkin 3d47a03489
change save integration button text (#116267) 2021-10-26 16:19:18 +01:00
Gil Raphaelli 0dff7d0223
APM project automation (#116306) 2021-10-26 11:16:04 -04:00