Commit graph

42761 commits

Author SHA1 Message Date
Kibana Machine
3f34e71df2
[Security Solutions][Detection Engine] Fixes button group alignments in machine learning and tags (#105166) (#105169)
## Summary

See:
https://github.com/elastic/kibana/issues/104055

For more issue details. This is deemed embarrassing enough to be critical for a fix for 7.14.0 before shipping.

EUI looks to have updated its self and added a new attribute that it wants us to use called `numFIlters` which when set will show the total number of filter items before they are selected. Once selected the number and look and feel change.

```ts
numFilters
```

Before:
<img width="717" alt="Screen Shot 2021-07-09 at 5 45 08 PM" src="https://user-images.githubusercontent.com/1151048/125145520-c0fb7a80-e0de-11eb-9540-17bb999a069d.png">

After before selections:
<img width="716" alt="Screen Shot 2021-07-09 at 5 48 43 PM" src="https://user-images.githubusercontent.com/1151048/125145576-fa33ea80-e0de-11eb-8dfe-2d83849696f4.png">

After once you have selections:
<img width="720" alt="Screen Shot 2021-07-09 at 5 49 44 PM" src="https://user-images.githubusercontent.com/1151048/125145610-19327c80-e0df-11eb-8c2a-2ac2c881bc96.png">


Before:
<img width="846" alt="Screen Shot 2021-07-09 at 5 42 01 PM" src="https://user-images.githubusercontent.com/1151048/125145537-cc4ea600-e0de-11eb-92d3-6caad4897a3c.png">

After before selections:
<img width="859" alt="Screen Shot 2021-07-09 at 5 42 27 PM" src="https://user-images.githubusercontent.com/1151048/125145554-d96b9500-e0de-11eb-8abe-35a65c005d5e.png">

After once you have selections:
<img width="873" alt="Screen Shot 2021-07-09 at 5 49 36 PM" src="https://user-images.githubusercontent.com/1151048/125145616-264f6b80-e0df-11eb-9453-575b15c6001e.png">

### 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-07-10 01:04:15 -04:00
Kibana Machine
c6cc91053b
[Security Detections] Fixes ip on threshold preview button when selecting an ip data type such as source.ip (#105126) (#105160)
## Summary

See https://github.com/elastic/kibana/issues/100433 for details and test instructions.

This is considered critical and a small fix for 7.14.0 has been requested.

* Wrote Cypress test that exercises the bug
* Fixed mutation in one part of the Cypress Test
* Decided to remove the "missing" that we were telling users was "others" since missing is not the same as others. It no longer errors, but some users might be asking why we don't show "others" anymore. The reality is that we only showed "missing" which isn't adding value to the preview of what detections will end up looking like.
* Later if we want a true "others" we should implement it as a larger feature request and not a bug fix IMHO

Before you would get errors in your network panel: 
![errors_threshold](https://user-images.githubusercontent.com/1151048/125126681-b0380e00-e0b8-11eb-9f2c-a75e2909754c.png)

After you now get the `source.ip` without errors:
<img width="1074" alt="Screen Shot 2021-07-09 at 1 28 24 PM" src="https://user-images.githubusercontent.com/1151048/125127326-94813780-e0b9-11eb-9367-bb3b406ff55a.png">

### 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-07-10 02:09:00 +00:00
spalger
7e2991010d skip all discover functional tests to unblock es promotion (#104466)
(cherry picked from commit d776c0940e)
2021-07-09 18:01:30 -07:00
Kibana Machine
1f7a9e07d0
[Security Solution] Enrichment details UI cleanup (#104995) (#105157)
* Remove the "view threat intel data" button from the alert summary

This can be accomplished by clicking the tab itself; there's no real
need for this button.

* Remove section title from alert summary view

This made sense when we had both alert and threat sections, but we no
longer do.

Removes the corresponding translation, and the analogously unused title
from the defunct threat summary view.

* Smaller spacer on alert summary tab

This is distractingly large as compared to other tabs.

* Move "no enrichments" panel below our threat details table

* Remove old import

* Move inspect button inline with rest of header

* Add HR separator to top of NoEnrichmentsPanel

This should arguably be added a level above so as to keep this panel
context-agnostic, but it's currently only used in one place and will
always require the HR, so YAGNI for now.

* Adds more space between title and description on "no data" panel

It has been suggested that the NoEnrichmentsPanel should be following
the guidelines of the EuiEmptyPrompt. If we end up needing e.g. centered
text, we're better off rewriting NoEnrichmentsPanelView in terms of an
EuiEmptyPrompt.

* StyledEuiInMemoryTable has no header row height

We have never provided column names to this component. However, there is
default padding on the thead tds such that even without content they
take up vertical height.

This has resulted in some extra top-margin on historical uses of this
table (which are just the Alert Details views). However, the addition of
a sibling table (ThreatSummaryView) made the extra margin noticable,
since it made the two tables appear disjointed even though they're right
up against each other.

This fixes the issue by removing the padding, allowing the thead to take
no height.

And now that that space isn't taken up by the table header, we need to
add a little bit of space between the header and table on the Threat
Details view.

* Move test to appropriate location

The ThreatDetailsView is no longer responsible for displaying the "no
data" components, that's now a level above in EventDetails.

* Prune unused translations

These have been changed in the latest designs.

* Only add HR if panel is preceded by enrichments

We do not want an HR if there's nothing above the panel.

Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
2021-07-09 20:28:55 -04:00
Kibana Machine
44d2259fdc
[APM] Support for data streams index patterns for cloud migration (#105015) (#105153)
* [APM] Support for data streams index patterns for cloud migration (#101095)

* [APM] Update apm package version to 0.3.0 (elastic/apm-server/#5579)

Co-authored-by: Oliver Gupte <ogupte@users.noreply.github.com>
2021-07-09 20:01:03 -04:00
spalger
b61a4376ca skip another suite blocking es promotion (#104466)
(cherry picked from commit b40fc09dfc)
2021-07-09 16:40:31 -07:00
Kibana Machine
e355e7934d
[Enterprise Search] Fix Error Connecting view not displaying for auth issues (#105125) (#105150)
* Fix ent-search authentication to show the error connecting screen

Missed this in #103555

* [Misc] updoot handleConnectionError order/spacing to match

- why? because i've lost control of my life, probably

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-07-09 19:38:56 -04:00
Kibana Machine
d5a55edbe0
Fixed description on Ent Home (#105122) (#105145)
Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
2021-07-09 19:22:34 -04:00
Kibana Machine
0ee0221e6f
[ML] Fix Single Metric Viewer & Explorer annotation table actions overflow and annotations count not matching (#104955) (#105141)
* Fix annotations

* Fix translations

* Fix onclick open

* Fix label/aggregations mismatch

* Fix title

Co-authored-by: Quynh Nguyen <43350163+qn895@users.noreply.github.com>
2021-07-09 18:43:51 -04:00
Aaron Caldwell
3a1db669c8
[Maps] Fix tracking threshold alerts improper handling of elasticsearch epoch millis strings (#105010) (#105137) 2021-07-09 18:38:23 -04:00
Kibana Machine
af4510fe47
[kbn/client/ui-settings] support using uiSettings in a specific space (#105116) (#105136)
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-07-09 18:38:04 -04:00
Kibana Machine
87de5b908f
[Workplace Search] Remove users from groups views (#105108) (#105130)
* Remove user list from groups table

* Remove users table from group overview

* Lint

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-07-09 17:59:46 -04:00
Devin W. Hurley
eb8d50b20a
[RAC] [RBAC] Fix hyperlinks in typedocs for alerts client (#104975) (#105142)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-09 17:02:14 -04:00
spalger
080efede4a skip suites failing es promotion (#104466)
(cherry picked from commit ce48b73dc8)
2021-07-09 14:00:25 -07:00
Devin W. Hurley
1437f763c1
[7.x] [RAC] [RBAC] MVP RBAC for alerts as data (#100705) (#104976)
* [RAC] [RBAC] MVP RBAC for alerts as data (#100705)

An MVP of the RBAC work required for the "alerts as data" effort. An example of the existing implementation for alerts would be that of the security solution. The security solution stores its alerts generated from rules in a single data index - .siem-signals. In order to gain or restrict access to alerts, users do so by following the Elasticsearch privilege architecture. A user would need to go into the Kibana role access UI and give explicit read/write/manage permissions for the index itself.

Kibana as a whole is moving away from this model and instead having all user interactions run through the Kibana privilege model. When solutions use saved objects, this authentication layer is abstracted away for them. Because we have chosen to use data indices for alerts, we cannot rely on this abstracted out layer that saved objects provide - we need to provide our own RBAC! Instead of giving users explicit permission to an alerts index, users are instead given access to features. They don't need to know anything about indices, that work we do under the covers now.

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
Co-authored-by: Yara Tercero <yara.tercero@elastic.co>

* fixes failed integration test

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
Co-authored-by: Yara Tercero <yara.tercero@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-09 16:20:12 -04:00
Kibana Machine
69c38b6488
[APM] Make fleet plugin dependency optional (#104967) (#105114)
* fixing tutorial when fleet plugin is disabled

* addressing PR comments

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2021-07-09 15:51:21 -04:00
Tim Sullivan
8385a31905
[Reporting] Add handleSIGHUP: false to puppeteer LaunchOptions (#104992) (#105106) 2021-07-09 15:23:26 -04:00
Kibana Machine
62005235a6
[Fleet] Fix add host url validation in fleet server setup (#105072) (#105101)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-07-09 15:11:32 -04:00
Kibana Machine
01ad425083
[Security Solution] [Endpoint] Allow filtering activity log with date range (#104085) (#105093)
* use date range in search query

fixes elastic/security-team/issues/1137

* make any date selection fetch matching log

fixes elastic/security-team/issues/1137

* use a single action for updating paging info and fetching data

fixes elastic/security-team/issues/1137

* use consistent types

for some reason TS was complaining earlier with `undefined`

* reset date picker on tab load

fixes elastic/security-team/issues/1137

* refactor date pickers into a component

refs elastic/security-team/issues/1137

* clear dates on change of endpoint

fixes elastic/security-team/issues/1137

* do not show empty state if date filtering results return empty data

fixes elastic/security-team/issues/1137

* add tests

fixes elastic/security-team/issues/1137

* review changes

* update comment

refs f551b67d66

* store invalidDateRange on redux store and decouple logic from the component

review changes

* fix test

* fix lint

* review changes

* expand date picker to use the full width of the flyout

review changes

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

Co-authored-by: Ashokaditya <am.struktr@gmail.com>
2021-07-09 15:00:56 -04:00
Kibana Machine
e4551f3de0
[ML] Add integration tests for trained_models API (#104819) (#105098)
* [ML] api integration tests for get trained models endpoint

* [ML] delete ingest pipelines after tests execution

* [ML] deleteIngestPipeline method

* [ML] test for unauthorized user

* [ML] tests for model stats

* [ML] delete trained model tests

* [ML] fix typo

* [ML] fix expect package path

* [ML] get model pipelines tests

* [ML] test for aliases

* [ML] add tests for a 404 response

* [ML] fix typo

* [ML] fix typo

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-07-09 14:59:23 -04:00
Kibana Machine
075abf5d09
[App Search] Relevance Tuning: Fix unsaved changes bug (#104951) (#105092)
* Fix unsavedChanges false positive when MultiInputRows is present

- The fix for this is to change MultiInputRows from useEffect to useUpdateEffect, which prevents onChange from firing on initial mount/render (triggering updateBoostValue->unsavedChanges)

@see https://github.com/streamich/react-use/blob/master/docs/useUpdateEffect.md

* Fix precision tuner not triggering unsavedChanges

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-07-09 14:29:39 -04:00
Kibana Machine
df4cd0f3eb
Replace cmd with bash as EuiCodeBlock language (#105065) (#105089)
cmd is no longer supported by 3rd party library used by EuiCodeBlock

Co-authored-by: Vadim Yakhin <yakhin.v@gmail.com>
2021-07-09 14:16:26 -04:00
Kibana Machine
896d8a19d3
Bump fast-safe-stringify to v2.0.8 (#105066) (#105085)
Co-authored-by: Thomas Watson <w@tson.dk>
2021-07-09 14:09:33 -04:00
Alexey Antonov
86d34d4f2f
[TSVB] fix include/exclude fields appear to migrated TSVB visualization when using Group by Terms (#104848) (#105068)
* [TSVB] Include/exclude fields appear to migrated TSVB visualization when using Group by Terms

Closes: #104829

* add functional test

* fix JEST
# Conflicts:
#	test/functional/page_objects/visual_builder_page.ts
2021-07-09 13:46:18 -04:00
Kibana Machine
b3bfe0879e
Fix of the ja-JP.json not found error. (#105023) (#105076)
* Fixed `i18nrc not found ja-JP.json file` at expression_reveal_image.

* Fixed `i18nrc not found ja-JP.json file` at `screenshotMode`.

* Fixed `i18nrc not found ja-JP.json file` at `x-pack/plugins/timelines`.

Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
2021-07-09 13:37:54 -04:00
gchaps
df13fa6464
[DOCS] Fixes formatting in search sessions doc (#105077) (#105104) 2021-07-09 13:26:16 -04:00
Kibana Machine
90a1fb4d33
[TSVB] Table view - fix display of item urls (#105051) (#105064)
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-07-09 11:50:20 -04:00
Kibana Machine
3f7bd73d9c
Add additional old SO type from 7.6 to filter and test (#104913) (#104957)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-07-09 17:33:32 +02:00
gchaps
fce88bc5ee
[DOCS] Creates separate doc for security in production (#103973) (#104769)
* [DOCS] Creates separate doc for security in production

* Use Kibana attribute

* Update CSP section

* Move SSL section to the top

This is the highest priority item for securing a production installation
of Kibana.

* Add section on using secure HTTP headers

* Write intro

* [DOCS] Fixes broken link and other minor edits

* [DOCS] Changes man to manipulator

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

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-07-09 08:24:54 -07:00
Yuliia Naumenko
b964468dd8
[Alerting UI] Fixed bug when rule state was updated on Edit flyout opening: Index action set empty documents property for non history index. (#105014) (#105058) 2021-07-09 11:21:35 -04:00
Kibana Machine
901666d81f
[Reporting] First accessibility test (#104410) (#105056)
* makeAllReportingPoliciesUnmanaged -> makeAllReportingIndicesUnmanaged

* expose the reporting services on the functional services object shared with a11y

* added data-test-subjs for a11y test

* added reporting a11y test

* updated jest test

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

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-07-09 11:09:32 -04:00
Tiago Costa
6d376e734a
skip flaky suite (#105016) 2021-07-09 15:20:07 +01:00
Kibana Machine
592b6246c5
[APM] Get service name from context for alert flyout (#104103) (#105038)
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-07-09 09:21:07 -04:00
Kibana Machine
889ef64422
Fix incorrect tags after rule duplication (#104948) (#105045)
Co-authored-by: Dmitry Shevchenko <dmshevch@gmail.com>
2021-07-09 08:48:57 -04:00
Kibana Machine
3dadcf29a1
[Security Solution][Endpoint] Enrich events with ES data before rendering event filters modal (#104703) (#105041)
* Enrich events with ES data before rendering event filters modal

* Add unmounted component control check

* Fix error when closing and opening modal/flyout twice

Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-07-09 08:33:35 -04:00
Gloria Hornero
053771c9c2
[Security Solution] Test automation for upgrade, phase 2 and 3 (#104424) (#105032)
* adds upgrade cypress test

* adds new configuration and runner

* fixes typos

* fixes typecheck issue

* fixes typo

* fixes command

* fixes typo

* fixes consistency

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-09 06:51:35 -04:00
Kibana Machine
a4129a998e
[Monitoring] Add rules modal to listing page (#104328) (#105029)
* Add rules modal to listing page

* Fix tests

* minor fixes

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

Co-authored-by: Ester Martí Vilaseca <ester.martivilaseca@elastic.co>
2021-07-09 06:39:42 -04:00
Kibana Machine
fba6dad314
Fix stale validation messages on the action edit form (#104868) (#105027)
Co-authored-by: Dmitry Shevchenko <dmshevch@gmail.com>
2021-07-09 06:32:48 -04:00
Kibana Machine
aeb6336a8c
[ML] Fixing annotations table loading hang (#104825) (#105021)
Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-07-09 05:17:54 -04:00
Kibana Machine
6bf9422752
[Security Solution] add advanced policy option for Linux Malware quarantine (#104984) (#105012)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kevin Logan <56395104+kevinlog@users.noreply.github.com>
2021-07-09 00:54:12 -04:00
Kibana Machine
277e148042
[paths] Add default lookup for kibana.yml at /etc/kibana (#103934) (#105009)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-07-08 23:04:09 -04:00
Kibana Machine
339c98b61f
[Security Solution][Exceptions] Gets rid of rule exception comma delimiter for "is one of" operator (#104960) (#105006)
Co-authored-by: Davis Plumlee <56367316+dplumlee@users.noreply.github.com>
2021-07-09 02:17:27 +00:00
Kibana Machine
7e237484cb
[reporting] remove outdated todo comment (#104959) (#105007)
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-07-08 22:17:08 -04:00
Kibana Machine
8270eadc99
[Osquery] Fix 7.14 UX issues (#104257) (#105002)
Co-authored-by: Patryk Kopyciński <patryk.kopycinski@elastic.co>
2021-07-08 21:50:11 -04:00
Kibana Machine
0641f97033
[Security Solution][Endpoint] Fix permission checks for endpoint management funcionality (#104555) (#105000)
* refactor: move `UserPrivilegesContext` to `public/common`
* Add endpointPrivileges to the UserPrivileges context
* refactor `useUpgradeSecurityPackages` to use `useUserPrivileges()`
* Refactor to use `useUserPrivileges()` instead of `useIngestEnabledCheck()`
* Refactor Overview page to use `useUserPrivileges()` instead of `useIngestEnabledCheck()`
* Delete `ingest_enabled` hook and refactor tests

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2021-07-08 21:44:39 -04:00
Dave Snider
1650821a74
Remove add data button from nav (#103810) (#104962)
* Remove add data button from nav

* remove unused imports

Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>

Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>
2021-07-08 21:12:40 -04:00
Christos Nasikas
7d90bc358e
[Cases] Reset selected cases when changing filters (#104839) (#104953)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-08 20:11:49 -04:00
Kibana Machine
f0543f6ae5
[Fleet] Make Unhealthy status excluding updating agents (#104949) (#104972)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-07-08 19:55:24 -04:00
Kibana Machine
945c8cd2c4
[Fleet] Fix blank page when uninstalling outdated integration (#104938) (#104982)
* [Fleet] Fix blank page when uninstalling outdated integration

* Make redirect conditional on version mismatch

Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
2021-07-08 19:30:03 -04:00
Kibana Machine
eb7a6b7e17
[APM] Fleet migration - Set APM Server URL from Cloud plugin (#104907) (#104918) (#104969)
Co-authored-by: Oliver Gupte <ogupte@users.noreply.github.com>
2021-07-08 19:29:47 -04:00