Commit graph

40402 commits

Author SHA1 Message Date
Vadim Dalecky
773f90d924
RFC: URL Service (TTL: expired) (#95416) (#97432)
* docs: ✏️ start URL Service RFC

* docs: ✏️ improe short URL example

* docs: ✏️ add summary, basic examples and motivation sections

* docs: ✏️ fill end sections of rfc

* feat: 🎸 start "Detailed design" section

* docs: ✏️ add HTTP endpoints section

* docs: ✏️ use table layout

* docs: ✏️ cleanup various text parts

* feat: 🎸 add redirect route GET endpoints

* docs: ✏️ add alternatives

* docs: ✏️ update examples

* docs: ✏️ update client interfaces

* docs: ✏️ update HTTP endpoints

* docs: ✏️ update url generator references

* docs: ✏️ add note about short URL migration

* docs: ✏️ add Peter's clarifications

* docs: ✏️ fix typos

* docs: ✏️ remove short url create() method

* docs: ✏️ update redirect endpoints

* docs: ✏️ add note about locator usage

* docs: ✏️ make paramsVersion required

* docs: ✏️ add goals section

* docs: ✏️ add suggested bullet points
2021-04-19 06:09:18 -04:00
Ashokaditya
3b6fdb9e8b
[Security Solution] Breaks very long hostnames so they are readable (#97253) (#97420)
* Breaks very long hostnames so they are readable

fixes elastic/kibana/issues/96282

* use utility class instead

review change
2021-04-19 06:03:59 -04:00
Kibana Machine
2f32bf5fbe
[Exploratory view] integerate page views to exploratory view (#97258) (#97419)
Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-04-19 05:36:31 -04:00
CJ Cenizal
262e983ac2
Fix typo in license_api_guard README name and import http server mocks from public interface (#97334) (#97415)
* Reject basic minimum licenses.
2021-04-19 01:41:40 -04:00
Pierre Gayvallet
0bbd4980e6
Avoid mutating KQL query when validating it (#97081) (#97411) 2021-04-18 19:29:52 -04:00
Pierre Gayvallet
27583f24f9
Add description as title on tag badge (#97109) (#97410) 2021-04-18 16:55:51 -04:00
Pierre Gayvallet
0e6f5ef917
Remove legacy ES client usages in home and xpack_legacy (#97359) (#97409)
* Home plugin: remove usages of the legacy ES client

* remove legacy es client usage in xpack_legacy
2021-04-18 16:52:39 -04:00
Dario Gieselaar
0a753d2c4f
Rule registry bundle size (#97251) (#97405) 2021-04-18 21:50:04 +02:00
Dario Gieselaar
0c81ea5c8b
[RAC] Populate Observability alerts table with data from alerts indices (#96692) (#97399)
* Set up Observability rule APIs

* Populate alerts table with data from API

* Move field map types/utils to common

* Format reason/link in alert type

* Format reason/link in alert type

* Fix issues with tsconfigs

* Storybook cleanup for example alerts

* Use `MemoryRouter` in the stories and `useHistory` in the component to get the history
* Replace examples with ones from "real" data
* Use `() => {}` instead of `jest.fn()` in mock registry data

* Store/display evaluations, add active/recovered badge

* Some more story fixes

* Decode rule data with type from owning registry

* Use transaction type/environment in link to app

* Fix type issues

* Fix API tests

* Undo changes in task_runner.ts

* Remove Mutable<> wrappers for field map

* Remove logger.debug calls in alerting es client

* Add API test for recovery of alerts

* Revert changes to src/core/server/http/router

* Use type imports where possible

* Update limits

* Set limit to 100kb

Co-authored-by: Nathan L Smith <smith@nlsmith.com>

Co-authored-by: Nathan L Smith <smith@nlsmith.com>
2021-04-18 19:02:36 +02:00
Sonja Krause-Harder
1f9c76b2cf
[Fleet] Finer-grained error information from install/upgrade API (#95649) (#97400)
* Intercept installation errors and add meta info.

* Adjust mock.

* Catch errors in all steps of install/upgrade.

* Adjust handler for direct package upload.

* Don't throw not-found errors on assets during rollback.

* Correctly catch errors from _installPackage()

* Propagate error from installResult in bulk install case.

* Add tests for rollback.

* Remove unused code.

* Skipping test that doesn't test what it says.

* Fix and reenable test.
2021-04-18 12:52:54 -04:00
Kibana Machine
031750d9c9
[Partial Results] Move other bucket into Search Source (#96384) (#97397)
* Move inspector adapter integration into search source

* docs and ts

* Move other bucket to search source

* test ts + delete unused tabilfy function

* hierarchical param in aggconfig.
ts improvements
more inspector tests

* fix jest

* separate inspect
more tests

* jest

* inspector

* Error handling and more tests

* put the fun in functional tests

* code review

* Add functional test for other bucket in search example app

* test

* test

* ts

* test

* test

* ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-04-18 07:58:16 -04:00
Matthew Kime
884e931484
Index pattern field editor - Add warning on name or type change (#95528) (#97386)
* add warning on name or type change

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-17 11:21:05 -04:00
Tiago Costa
fb4568a650
skip flaky suite (#97387) 2021-04-17 15:53:12 +01:00
Kibana Machine
b522c8c68e
[Asset Management] Agent picker follow up (#97357) (#97389)
Co-authored-by: Bryan Clement <bclement01@gmail.com>
2021-04-17 08:56:13 -04:00
spalger
85b42da49d skip flaky suite (#97382)
(cherry picked from commit e321f57f64)
2021-04-16 22:29:21 -07:00
Kibana Machine
4ae0c1f868
[Security Solutions] Fixes flake with cypress tests (#97329) (#97381)
## Summary

Fixes some recent flakeyness with Cypress tests
* Adds cypress.pipe() on button clicks around the area of flakes
* Adds an alerting threshold to the utilities so we can wait for when an exact number of alerts are available on a page
* Changes the alerts to not run again with 10 seconds, because if a test takes longer than 10 seconds, the rule can run a second time which can invalidate some of the text when running checks when timeline or other components update on their button clicks.

### Checklist

- [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

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-04-16 18:04:25 -04:00
Mikhail Shustov
7e97b438a0
minimize number of so fild asserted in tests. it creates flakines when implementation details change (#97374) (#97379)
# Conflicts:
#	test/plugin_functional/test_suites/saved_objects_management/find.ts
2021-04-16 16:44:23 -04:00
spalger
ded0d670d1 skip flaky suite (#97355)
(cherry picked from commit 1cbdb26cea)
2021-04-16 12:11:37 -07:00
Kibana Machine
90c6fda3e4
[Search Sessions] Client side search cache (#92439) (#97376)
* dev docs

* sessions tutorial

* title

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Update dev_docs/tutorials/data/search.mdx

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Code review

* client cache

* mock utils

* improve code

* Use cacheOnClient in Lens

* mock

* docs and types

* unit tests!

* Search response cache + tests

* remove cacheOnClient
evict cache on error

* test ts

* shouldCacheOnClient + improve tests

* remove unused

* clear subs

* dont unsubscribe on setItem

* caching mess

* t

* fix jest

* add size to bfetch response @ppisljar
use it to reduce the # of stringify in response cache

* ts

* ts

* docs

* simplify abort controller logic and extract it into a class

* docs

* delete unused tests

* use addAbortSignal

* code review

* Use shareReplay, fix tests

* code review

* bfetch test

* code review

* Leave the bfetch changes out

* docs + isRestore

* make sure to clean up properly

* Make sure that aborting in cache works correctly
Clearer restructuring of code

* fix test

* import

* code review round 1

* ts

* Added functional test for search request caching

* test

* skip before codefreeze

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Liza Katz <lizka.k@gmail.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-04-16 15:09:58 -04:00
Tyler Smalley
948847cc71 Skip test to try and stabilize master
https://github.com/elastic/kibana/issues/97378

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-04-16 10:58:14 -07:00
Xavier Mouligneau
d652903743
happy it is fix (#97313) (#97375) 2021-04-16 13:27:29 -04:00
Pierre Gayvallet
ad6dc34cf7
[SavedObjects] Add aggregations support (#96292) (#97361)
* step 1 to add aggs in the find function of saved object

* setp 2 - add specific unit test to aggs + fix bug found during integrations

* step 3 - add security api_integration arounds aggs

* fix types

* unit test added for aggs_utils

* add documentation

* fix docs

* review I

* doc

* try to fix test

* add the new property to the saved object globaltype

* fix types

* delete old files

* fix types + test api integration

* type fix + test

* Update src/core/server/saved_objects/types.ts

Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>

* review I

* change our validation to match discussion with Pierre and Rudolph

* Validate multiple items nested filter query through KueryNode

* remove unused import

* review + put back test

* migrate added tests to new TS file

* fix documentation

* fix license header

* move stuff

* duplicating test mappings

* rename some stuff

* move ALL the things

* cast to aggregation container

* update generated doc

* add deep nested validation

* rewrite the whole validation mechanism

* some cleanup

* minor cleanup

* update generated doc

* adapt telemetry client

* fix API integ tests

* fix doc

* TOTO-less

* remove xpack tests

* list supported / unsupported aggregations

* typo fix

* extract some validation function

* fix indent

* add some unit tests

* adapt FTR assertions

* update doc

* fix doc

* doc again

* cleanup test names

* improve tsdoc on validation functions

* perf nit

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-16 06:47:41 -04:00
Kibana Machine
02b138b2f3
[kbnClient] fix basePath handling and export reponse type (#97277) (#97353)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-04-16 03:22:09 -04:00
Ryland Herrick
01d2ba4e12
[Timeline] Add Indicator Match Timeline Template (#95840) (#97351)
* added threat-match timeline template

* added indicator match timeline template

* updated name to threat match

* updated name to threat match

* changed file name to threat.json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Andrew Pease <7442091+peasead@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-16 01:14:03 -04:00
Tyler Smalley
f2316b8aac skip flaky suite (#91360) 2021-04-15 22:05:16 -07:00
Kibana Machine
66830327f1
[Security Solution][Detections] ML Rules accept multiple ML Job IDs (#97073) (#97349)
* Adds helper to normalize legacy ML rule field to an array

This will be used on read of rules, to normalize legacy rules while
avoiding an explicit migration.

* Fix our detection-specific ML search function

Luckily this was just a translation layer to our anomaly call, and the
underlying functions already accepted an array of strings.

* WIP: Run rules against multiple ML Job IDs

We don't yet support creation of rules with multiple job ids, either on
the API or the UI, but when we do they will work.

Note: the logic was previously to generate an error if the underlying
job was not running, but to still query and generate alerts. Extending
that logic to multiple jobs: if any are not running, we generate an
error but continue querying and generating alerts.

* WIP: updating ml rule schemas to support multiple job IDs

* Simplify normalization method

We don't care about null or empty string values here; those were
holdovers from copying the logic of normalizeThreshold and don't apply
to this situation.

* Move normalized types to separate file to fix circular dependency

Our use of NonEmptyArray within common/schemas seemed to be causing the
above; this fixes it for now.

* Normalize ML job_ids param at the API layer

Previous changes to the base types already covered the majority of
routes; this updates the miscellaneous helpers that don't leverage those
shared utilities.

At the DB level, the forthcoming migration will ensure that we always
have "normalized" job IDs as an array.

* Count stopped ML Jobs as partial failure during ML Rule execution

Since we continue to query anomalies and potentially generate alerts, a
"failure" status is no longer the most accurate for this situation.

* Update 7.13 alerts migration to allow multi-job ML Rules

This ensures that we can assume string[] for this field during rule
execution.

* Display N job statuses on rule details

* WIP: converts MLJobSelect to a multiselect

Unfortunately, the SuperSelect does not allow multiselect so we need to
convert this to a combobox. Luckily we can reuse most of the code here
and remain relatively clean.

Since all combobox options must be the same (fixed) height, we're
somewhat more limited than before for displaying the rows. The
truncation appears fine, but I need to figure out a way to display the
full description as well.

* Update client-side logic to handle an array of ML job_ids

* Marginally more legible error message

* Conditionally call our normalize helper only if we have a value

This fixes a type error where TS could not infer that the return value
would not be undefined despite knowing that the argument was never
undefined. I tried some fancy conditional generic types, but that didn't
work.

This is more analogous to normalizeThresholdObject now, anyway.

* Fix remaining type error

* Clean up our ML executor tests with existing contract mocks

* Update ML Executor tests with new logic

We now record a partial failure instead of an error.

* Add and update tests for new ML normalization logic

* Add and update integration tests for ML Rules

Ensures that dealing with legacy job formats continues to work in the
API.

* Fix a type error

These params can no longer be strings.

* Update ML cypress test to create a rule with 2 ML jobs

If we can create a rule with 2 jobs, we should also be able to create a
rule with 1 job.

* Remove unused constant

* Persist a partial failure message written by a rule executor

We added the result.warning field as a way to indicate that a partial
failure was written to the rule, but neglected to account for that in the
main rule execution code, which caused a success status to immediately
overwrite the partial failure if the rule execution did not otherwise
fail/short-circuit.

Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
2021-04-16 00:41:00 -04:00
Kibana Machine
a644417ef6
[Security Solution][Detections] Adds Nested CTI row renderer (#96275) (#97347)
* Move alert-specific mocks to more declarative mock file

* Add placeholder interface for ECS threat fields

* Test and implement CTI row renderer

The display details are not yet implemented, but those will be fleshed
out in the ThreatMatchRow component.

* Pass full fields data to our row renderers

This data is not used by any existing row renderers and so this commit
is mostly just plumbing that data through.

This is necessary, however, for our new threat match row renderer as it
requires nested fields, which cannot be retrieved through the mechanism
that retrieves the existing row renderer data. However, these nested
fields are available, if requested, through this other data structure,
hence this plumbing.

For now to minimize changes I'm marking this as an optional field;
however in reality a value will always be present.

* Rewrite existing row renderer in terms of flattened data

Updates logic, tests and mocks accordingly.

* Moving logic into discrete files

* helpers
* explicit fields file, which will hopefully be part of the renderer API
  at some point
* parent component to split data into "rows" as defined by our renderer
* row component for stateless presentation of a single match

* Register threat match row rendere

Adds tentative copy, example row, and accompanying mock data.

* WIP: Rendering draggable fields but hit the data loss issue with nested fields being flattened

* WIP: implementing row renderer against new data format

I haven't yet deleted the old (new?) unused path yet. Cleanup to come.

* Updating based on new data

* Rewrites isInstance logic for new data as helper, hasThreatMatchValue
* Updating types and tests
  * Adds to the previously empty ThreatEcs

* Revert "Pass full fields data to our row renderers"

This reverts commit 19c93ee0732166747b5472433cd5fc813638e21b.

We ended up extending the existing data (albeit from the fields
response!).

* Fix draggables

* adds contextId and eventId to pass to draggable
* We don't have a order-independent key for each individual
  ThreatMatchRow, due to matched.id not being mapped/returned in the
  fields response
* Fixes up a few things related to using the new data format

* Move indicator field strings to constants

* Fix example data for CTI row renderer

* Adds missing Threat ECS types

* Move CTI field constants to common folder

In order to use these in both the row renderer and the server request,
we need to move them to common/

* Remove redundant CTI fields from client request

These are currently hardcoded on the backend of the events/all query
(via TIMELINE_EVENTS_FIELDS); declaring them on both ends is arguably
confusing, and we're going with YAGNI for now.

* Add missing graphQL type

This was causing type errors as this enum exists both here and in
common/, and I had only updated one of them.

* Updates tests

One is still failing due to an outdated test subject, but I expect this
to change after an upcoming meeting so leaving it for now.

* Split ThreatMatchRow into subcomponents

One for displaying match details, and another for indicator details

The indicator details will be sparse, so there's going to be some
conditional rendering in there.

* Make CTI row renderer look nice

* Adds translations for copy
* Fixes most of our layout woes with more flexbox!
* Conditional rendering of indicator details based on data
* tests

* Make indicator reference field an external link

Leverages the existing FormattedFieldValue component, with one minor
tweak to add this field to the URL allowlist.

* Back to consistent horizontal spacing, here

The draggable badges are a little odd in that their full box isn't
indicated until hover, making the visual weight a little off.

* Add hr as a visual separator between each match "row" of the row renderer

* Fix tests broken due to addition of a new row renderer

These tests are all implicitly testing the list of row renderers.

* Full-width hr

At certain container widths, a half-width hr is not sufficient.

* More descriptive constant

Obviates the need for the accompanying comments.

* More realistic data

Also ensures less traffic to urlhaus ;)

* Remove useless comment

* Add threat_match row renderer type to GQL client

Gennin' beanz

* Ensure contextId is unique for each CTI subrow

We need to add the row index to our contextId to ensure that our
draggables work correctly for multiple rows, since each row will
necessarily have the same eventId and timelineId.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
2021-04-15 23:51:02 -04:00
Kibana Machine
5ede358912
[Fleet] Use 'hosted agent policy' naming in UI & API messages (#97287) (#97346)
## Summary

### What this PR _does_ change
 - [x] Replace all UI & API instances of "managed policy" with "hosted agent policy" #93504
 - [x] Replace all UI & API instances of "unmanaged policy" with "regular agent policy" #93504
 - [x] Update most variable names containing `managed` to `hosted`

<details><summary>screenshots</summary>

<img width="489" alt="Screen Shot 2021-04-15 at 10 54 01 AM" src="https://user-images.githubusercontent.com/57655/114898051-cac35980-9ddf-11eb-9c55-3fb5c0211c63.png">
<img width="339" alt="Screen Shot 2021-04-15 at 11 40 47 AM" src="https://user-images.githubusercontent.com/57655/114898053-cac35980-9ddf-11eb-8c60-3459aed3db6c.png">
<img width="714" alt="Screen Shot 2021-04-15 at 11 40 59 AM" src="https://user-images.githubusercontent.com/57655/114898054-cac35980-9ddf-11eb-912a-623eba9c3860.png">
</details>

### What this PR _does not_ change
  - [ ] The `is_managed` property of the agent policy saved object*
  - [ ] The updated error messages in https://github.com/elastic/kibana/issues/92591

<details><summary>*why not change the <code>is_managed</code> property?</summary>

<p>Changing the property will require a migration from 7.12. That's not a problem, but we haven't decided on <a href="https://github.com/elastic/kibana/issues/93504#issuecomment-790060997">a new name/approach</a> yet. Rather than update to <code>is_hosted: boolean</code> now and potentially something like <code>managed_by: enum</code> later, we'll update it when we have a decision.

<p><strong>TL;DR:</strong> It's a trivial update to make later and a minuscule amount of debt to pay until then. Less than cost of doing it twice.
 
</details>

### 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

Co-authored-by: John Schulz <john.schulz@elastic.co>
2021-04-15 23:11:30 -04:00
Melissa Alvarez
9970e49689
[7.x] [ML] Data Frame Analytics: Ensure creation and results views display nested fields correctly (#96905) (#97286)
* [ML] Data Frame Analytics: Ensure creation and results views display nested fields correctly (#96905)

* create analytics field service

* remove unnecessary field filter. update types

* create common base class for newJobCapabilites classes for AD and DFA

* fix column schema for histogram

* update endpoint to be consistent with AD job caps

* add unit test for removeNestedFieldChildren helper function

* removes obsolete const

* skip flaky suite to be consistent with master
2021-04-15 20:40:50 -04:00
Kibana Machine
ba5cdf2ee7
[ci/baseline] check public API doc count to populate baseline metrics (#97320) (#97340)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-04-15 20:23:07 -04:00
Zacqary Adam Xeper
7b7e25d37f
[Fleet] Add latest package flag and remove force flag (#97289) (#97333)
* [Fleet] Add latest package flag and remove force flag

* Fix installing latest package when old package is still installed
2021-04-15 20:16:13 -04:00
CJ Cenizal
84d8a7d26d
Extract License service from CCR and Watcher into license_api_guard plugin in x-pack (#95973) (#97332)
* Localize error messages.
# Conflicts:
#	.github/CODEOWNERS
2021-04-15 20:12:35 -04:00
Zacqary Adam Xeper
034a9521ee
[Fleet] Add ability to specify which integration variables should be configurable (#97163) (#97331) 2021-04-15 20:09:14 -04:00
Kibana Machine
c79a4d9abc
[ML] security_network module - fix type of defaultIndexPattern (#97096) (#97327)
This PR fixes the defaultIndexPattern type in the security_network module definition.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-04-15 23:40:00 +00:00
Nathan Reese
88691b2d87
[Maps][File upload] fix layer in preview mode shows different results after uploading geojson file when feature-count exceeds ES-search limit (#97157) (#97325)
* [Maps][File upload] fix layer in preview mode shows different results after uploading geojson file when feature-count exceeds ES-search limit

* i18n clean up

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-15 19:27:30 -04:00
Kibana Machine
9ebff33653
[Fleet] Remove fleet agent routes and related services (#97206) (#97326)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-04-15 23:27:20 +00:00
Kibana Machine
64d0df665d
Use EuiThemeProvider in lists plugin tests and stories (#96129) (#97027)
Remove `getMockTheme` and use `EuiThemeProvider` from the kibana_react plugin.

Use the CSF-style decorators with `EuiThemeProvider` in the stories.

No functional changes, but should be less code to maintain.

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-04-15 19:15:00 -04:00
Kibana Machine
8aa89d5927
chore(NA): upgrade lmdb-store to 1.2.4 (#97275) (#97321)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-04-15 23:11:45 +00:00
Marco Vettorello
e6c2163de1
Update dependency @elastic/charts to v28.2.0 (master) (#97005) (#97319)
* Update dependency @elastic/charts to v28.2.0

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-15 18:50:36 -04:00
Kibana Machine
9c84c9ae11
[Workplace Search] Add ErrorReasons fix from ent-search (#97299) (#97318)
Ports https://github.com/elastic/ent-search/pull/3393 to Kibana

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-04-15 22:37:05 +00:00
Kibana Machine
249818d45a
[Actions][Telemetry] Counting number of alert history connectors in use (#97063) (#97300)
* Counting number of alert history connectors in use

* Telemetry for preconfigured alert history config enabled

* Updating telemetry mappings

* Updating tests

* Adding descriptions to new telemetry fields

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-04-15 21:26:34 +00:00
Stacey Gammon
0a2799d09d
Track API stats as part of ci (#95733) (#97306)
* Track stats and add extra output information

* Update api docs output

* Clean up id names

* update api docs

* Consolidate error messages and fix a bug

* Update docs

* Update get_declaration_nodes_for_plugin.ts

* Fix bug with removeBrokenLinks not being recursive

* Update docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	api_docs/data.json
#	api_docs/data_index_patterns.json
#	api_docs/data_search.json
#	api_docs/reporting.json
2021-04-15 16:47:21 -04:00
Nathan Reese
57bce4967a
Remove field type filtering from IndexPatternSelect (#97035) (#97302)
* Remove field type filtering from IndexPatternSelect

* remove unused import

* api doc updates

* update jest snapshots

* another fix for jest test

* review feedback

* tslint

* update jest snapshot for changes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-15 16:44:54 -04:00
Matthias Wilhelm
7a14e4d613
[Discover] Unskip doc navigation functional test (#96948) (#97304) 2021-04-15 16:40:21 -04:00
Kibana Machine
1c84ba66c9
[Usage Collection/Cloud Provider] Fix isReady bug (#97279) (#97297)
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-04-15 20:21:22 +00:00
Kibana Machine
1d09f16f45
Adds Network ML module with four ML jobs for ECS network data (#96480) (#97272)
* network module

adds the network module with four ml jobs for the 7.13 release

* Update datafeed_high_count_network_denies.json

json formatting

* update test

added the security_network module to the list

* renames

module name change to security_network / Security: Network

* formatting

change hyphen char to underscores

* fixes and name changes

fixes to df queries, descriptions. created_by param

* update tests

tests need the security_network module added

* formatting

change hyphens to underscores

* descriptions

format descriptions

* Update datafeed_high_count_network_events.json

indentation fixes

* Update x-pack/plugins/ml/server/models/data_recognizer/modules/security_network/manifest.json

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update x-pack/plugins/ml/server/models/data_recognizer/modules/security_network/ml/high_count_network_denies.json

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

* Update datafeed_high_count_network_events.json

change to a filter

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Lisa Cawley <lcawley@elastic.co>

Co-authored-by: Craig Chamberlain <randomuserid@users.noreply.github.com>
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2021-04-15 19:38:09 +00:00
Kibana Machine
027ce47f35
[Detection Rules] Remove empty values in threshold.field array for threshold rules (#97111) (#97291)
## Issues
related to https://github.com/elastic/detection-rules/issues/1097
related to https://github.com/elastic/detection-rules/pull/1099

## Summary

`threshold.field` is an array that currently requires at least one value. An empty string `""` was required if no value was supplied. Instead, this needs to be replaced with no string and just an empty array.
### 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)

Co-authored-by: Justin Ibarra <brokensound77@users.noreply.github.com>
2021-04-15 15:20:48 -04:00
Kibana Machine
0d43431138
[Graph] Fix fields clearing within the Editor (#96767) (#97288)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-04-15 19:04:58 +00:00
Phillip Burch
34e0074b20
[Metrics UI] Add anomalies tab to enhanced node details (#96967) (#97285)
* Adapt the anomalies table to work in overlay

* Wire up the onClose function

* Make "show in inventory" filter waffle map

* Remove unused variable

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-15 14:53:07 -04:00
Kibana Machine
d26c41a690
fix test leak (#97082) (#97281)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-04-15 14:17:32 -04:00