Commit graph

45481 commits

Author SHA1 Message Date
Yara Tercero 9fa41d1aef
[Security Solution] - Updating UI to work with new kibana privileges abstraction on alerts (#108961)
## Summary

Holy moly. 

What is happening in this PR? 🤷🏽‍♀️ Let's break it down:
- Added a package `@kbn/alerts` - another one?! ...yes
  - This is meant to add shared hooks and components around alerts as data
  - `useGetUserAlertsPermissions` - accepts the Kibana capabilities object and returns whether the user has `read` and `crud` alerts privileges
  - `AlertsFeatureNoPermissions` - component displayed when user does not have alerts privileges
- UI changes for user with NO alerts privileges
  - `Alerts` tab hidden in security solution side navigation
  - `Alerts` tab hidden in rule details page  
- UI changes for user with alerts READ ONLY privileges
  - alerts checkboxes hidden in alerts table
  - alerts bulk actions hidden in alerts table
2021-08-18 14:48:31 -04:00
Vadim Yakhin 25a167a534
Limit the height of icon and logo on branding page (#109123)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 14:17:39 -04:00
Dario Gieselaar 2e5eb5ce66
[APM] Prevent infinite loop when updating time range (#109043)
Closes #108983.
2021-08-18 12:26:44 -05:00
Liza Katz fd676afb9c
text improvement (#109111) 2021-08-18 19:21:26 +02:00
Mikhail Shustov b53b2cdc35
[Elasticsearch] remove legacy es client (#107619)
* remove legacy es client

* update docs

* uninstall elasticsearch package

* fix global_search tests

* ad-hoc fix to address bazel failure. authored by Tiago

* update docs

* remove elasticsearch import. errors are muted with @ts-ignore

* Update WORKSPACE.bazel

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>

* update docs

* fix problem when dev mock already mocked client

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-08-18 19:18:05 +02:00
Chris Donaher fa8e53f9f0
Security Telemetry Usage Telemetry Counters (#108735)
* added UsageCounter to SecuritySolution app to be passed to telemetry and other plugins as needed

* Add counters for payloads and helpers for naming

* Fixed some typing issues

* Fixed eslint errors

* Still more eslint fixes

* Missed an eslint fix again

* Incorrect import order

* Addressed some review comments

* Added unit test for UsageCounter inside TaskSender

* Fixed some import checks

* incrementCounter unittest needs questionmark to handle undefined case

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 11:06:04 -06:00
Nathan Reese 7be0bb9c78
Abort full screen in dashboard and maps when user clicks back button (#108747)
* [Maps] reverse geocoding tutorial

* reverse geocoding step

* add final step

* use dash delemiter instead of underscore in file name

* add float to step 3 so its on the same page

* add into to step 3

* Abort full screen in dashboard and maps when user clicks back button

* remove doc changes from another PR

* remove change in file heading

* tslint and fix unit test

* eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 11:01:47 -06:00
Tiago Costa d9c1677f4b
chore(NA): adds 7.16 into backportrc (#109128) 2021-08-18 17:37:52 +01:00
Alexey Antonov 31c7b81a94
[TSVB] Fix Markdown variables are not available on the first rendering (#108836)
* [TSVB] Markdown variables are not available on the first rendering

Closes: #108721

* Update editor_controller.tsx

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 12:33:45 -04:00
mgiota ed78d4b700
[RAC][Observability] temporarily hide severity column (#109004)
* [RAC][Observability] temporarily hide severity column

* remove severity from flyout & rename Trigerred to last updated

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 12:01:42 -04:00
Kevin Logan 28772d7db4
[Security Solution] Correct the spelling of behavior in Endpoint policy config (#108969)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 11:26:06 -04:00
Michael Marcialis 336b099eec
Home Page Style Tweaks (#108989)
* balance solutions

* clean up solution changes

* change footer button size

* update management section

* apply max-width to management items

* remove right side items from page header

* add data content update

* illustration poc

* add data content updates per feedback

* img size and alignment

* moved shared images to shared assets folder

* more solutions clean up

* rm unneeded import

* remove references to subtitle and appDescriptions

* update tests and snapshots

* more test and snapshot updates

* restore solution sort order

* ts and jest fixes; thx catherine!

* i18n fixes

* use new `KibanaPageTemplateSolutionNavAvatar` comp

* change solution imgs from png to svg

* update tests and snapshots

* rm spacer and update snapshots

* account for flex margin changes in img offset

* Change "Kibana" overview page text to "Analytics"

* update overview icon to match hp changes

* update snapshots

* center justify solutions and update snapshots

* update snapshots

* title case dev tools and stack management

* update text and snapshots

* fix merge error

* apply caroline's suggested style tweaks

* clean up css and update snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 16:25:44 +01:00
Sergi Massaneda ff58841d89
added defaultColumns property to default security solutions timeline (#109086)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 17:17:53 +02:00
Ece Özalp a2b8b22929
[CTI] bring back skipped cypress tests (#108978) 2021-08-18 11:14:52 -04:00
Liza Katz 6a1a1afd3a
[Data cleanup] Remove geo filters (#109097)
* Remove geo bounding box and geo polygon filters

* delete geo filters

* delete geo filters

* geo

* remove geo docs
2021-08-18 17:08:42 +02:00
Tim Roes 92dcef9f26
Hide "Manage Searches" if insufficient permissions (#109099) 2021-08-18 17:04:58 +02:00
Marshall Main 05d1e326a4
[RAC][Security Solution] Remove ALERT_RULE_ID in favor of ALERT_RULE_UUID (#108922)
* Remove ALERT_RULE_ID in favor of ALERT_RULE_UUID

* Update snapshot

* KEVINNN

* fix test

* Add back home.disableWelcomeScreen=true

* Only disable welcome screen in security solution cypress tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 10:37:14 -04:00
Jean-Louis Leysens 8f7e10aaba
[Reporting][Revert] Deprecate v1 report types (#109058) 2021-08-18 08:36:21 -04:00
Stratoula Kalafateli 74b2a3c383
[Lens] Add retry to drag and drop to fix flakiness (#108657)
* [Lens] Add retry to drag and drop to fix flakiness

* Unskip test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 15:27:02 +03:00
Scotty Bollinger a2be619c98
Fix a bug where role mappings not populated (#109008)
This fixes a bug where adding or deleting a role mapping resulted in the table not being updated. The issue stems from the fact that a copy of the mappings called “items” is created with loca state in the component for filtering before passing to EuiBasicTable. The issue is that this works fine on initial load, but the copy of items is never updated on subsequent renders. The solution is to update the items each time roleMappings is updated.
2021-08-18 09:21:04 -03:00
mgiota 8d92668d20
[Observability RAC] add filter for value action (#108648)
* filter for value

* code clean up

* fix i18n tests

* fix type errors

* revert changes to reason field to make reason field clickable again

* [RAC Observability] fix reason field

* fix type issues

* filter my kibana.alert. status on load (will refactor)

* refactor filter for alert status on load

* remove rest params

* fix eslint errors

* hard code alert status for now, will be fixed in another PR

* move filter_for button in a separate file

* fix errors

* comply with kibana i18n guideines

* simpler implementation for default filtering

* fix syntax error

* fix type errors

* fix eslint errors

* fix eslint errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 13:41:39 +02:00
Xavier Mouligneau e4bf6140fb
[SECURITY SOLUTION] [RAC] bug actions padding (#109029)
* wip

* match design for selecting grid view

* wip to integrate event rendered view

* wip

* integration of the event rendered

* fix perPage action on Euibasic table

* Add bulding block background color to EventRenderedView

* styling

* remove header

* fix types

* fix unit tests

* use memo for listProps

* fix styling + add feature flag

* review I

* fix merge

* change the gutter size

* fix bugs

* fix alert consumers

Co-authored-by: Pablo Neves Machado <pablo.nevesmachado@elastic.co>
Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
2021-08-18 07:37:40 -04:00
Domenico Andreoli 2592e36c15
Realign cypress/ccs_integration with cypress/integration (#109048)
cypress/ccs_integration is a subset/fork of cypress/integration and already tends to be left behind.

Situation is expected to improve once proper signaling of failing tests is reported to #security-solution-slack-testing.

For the moment, let's keep aligning manually.
2021-08-18 06:34:52 -04:00
Uladzislau Lasitsa bc7b2f9c59
Switching between some aggregations in bucket section for sibling aggregations breaks the visualization. (#108693)
* share between aggs only field and base params: json, label, time shift.

* Fix some remarks

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 12:42:30 +03:00
Kerry Gallagher fd1bf565f6
[RAC] Update alert status column in alerts table (#108695)
* Update alert status in alerts table
2021-08-18 10:13:28 +01:00
Diana Derevyankina d810c51aab
Failing test: Chrome UI Functional Tests.test/functional/apps/visualize/_tsvb_markdown·ts - visualize app visualize ciGroup12 visual builder markdown should render mustache list (#108651)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-18 11:27:00 +03:00
Candace Park 7a1ece68a2
[Security Solution][Endpoint][TrustedApps] Update trusted apps ui (#108583) 2021-08-18 03:49:06 -04:00
Ignacio Rivas 1d98cb6512
[Upgrade Assistant] Overview page redesign (#106521) 2021-08-18 09:12:55 +02:00
Davis Plumlee fc1a2bbd1b
[Security Solution][Detection Alerts] Changes in-progress status to acknowledged (#107972) 2021-08-18 02:12:16 -04:00
Walter Rafelsberger 2908ecef3b
[ML] APM Latency Correlations UX improvements/fixes (#108860)
- Tweak label for log log chart data series for all transactions.
- Show tip to drag to select a range in the Trace samples distribution chart panel.
- Change the selected range label and clear selection option to `EuiBadge` with click action and tooltip on hover 'Clear selection'.
- Move the 'current sample' annotation to the bottom axis to not overlap with the 95p annotation marker.
- Move the help popover to the top of the panel.
- Move the refresh/cancel option to the right of the progress bar.
- Always display the table for correlations.
- Show improved empty state using the `EuiEmptyPrompt` for the correlations table when no significant correlations are found.
- Fix Filter behaviour: when clicking on the filter item, jump to show top of page where the filter bar is evident, and reset the correlation tabs and show the Trace Samples tab
- Fix updating the log log chart and correlation service when the user changes the kquery or time span.
2021-08-17 23:35:21 -04:00
Yuliia Naumenko 85ff87e811
[Event Log] Added Kibana version to eventLog ECS log entries. (#108476)
* [Event Log] Added Kibana version to eventLog ECS log entries.

* fixed due to comments

* fixed due to comments

* fixed version to be numbers only

* fixed type checks

* fixed type checks

* fixed generated ecs for version

* moved varsion field to event log fixed fields

* fixed type checks

* fix event log function tests

Co-authored-by: Patrick Mueller <pmuellr@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 20:05:20 -07:00
Devin W. Hurley c3ccda942a
[RAC] [RBAC] working find route for alerts as data client (#107982)
Addition of a find api to the alerts client to authorize requests using RBAC, updates alerts histograms to use new API on alerts page, updates new alerts aggs data table on alerts page, and updates alerts histogram on overview page.
2021-08-17 22:54:01 -04:00
renovate[bot] f21115f821
Update dependency @elastic/charts to v34 (master) (#108766)
* Update dependency @elastic/charts to v34
* tentative fix for heatmap legend items, to be fixed in patch before `7.15`

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: nickofthyme <nick.ryan.partridge@gmail.com>
2021-08-17 21:05:23 -05:00
Kyle Pollich b1253db197
[Fleet] Improve API logic for package policy upgrades (#108924)
* Improve API logic for package policy upgrades

- Allow dry runs to be invoked for non-installed package versions
- Re-use existing validation service for validating package policies
  following an attempted dry run or upgrade

See https://github.com/elastic/kibana/issues/106048#issuecomment-899747732 for more details

Ref #106048

* Fix input overriding in dry run/upgrade APIs

* Fix i18n

* Fix types

* Fix var merge logic
2021-08-17 21:43:55 -04:00
Melissa Alvarez 4e0375f626
[ML] Transforms: replace deprecated EuiCodeEditor (#108310)
* replace deprecated EuiCodeEditor in transform

* update jest snapshot

* add aria label and move data attribute to parent element for testing

* update jest snapshot for aria label

* update functional tests
2021-08-17 20:38:12 -04:00
Davey Holler 869c4b0d8f
Putting the deduplication controls inside a datapanel. (#109002) 2021-08-17 20:04:44 -04:00
Jonathan Budzenski 19308576f3 flaky test - fix issue reference 2021-08-17 18:09:32 -05:00
John Dorlus c373e48156
Added tests for dot notation processors. (#107340)
* Added tests for dot notation processors.

* Fixed nits in PR.

* Fixed linting issues.
2021-08-17 19:09:08 -04:00
Cauê Marcondes 338577a01c
[APM] Enable JVM metrics for the Ruby Agent running on a JVM (jRuby) (#108933)
* showing JVM when jruby

* return empty when there's no hits

* renaming
2021-08-17 19:06:35 -04:00
Jonathan Budzenski 3d15d9e0df skip flaky suite. #108193 2021-08-17 18:05:45 -05:00
Ece Özalp 448ada669c
[CTI] add hover to threat summary items on alert summary flyout (#108996) 2021-08-17 19:04:49 -04:00
Patryk Kopyciński 754b79f08a
[Cases] Add Lens markdown plugin (#96703) 2021-08-17 15:49:44 -07:00
Jonathan Budzenski e9136e2ce9
[build/x-pack] Exclude scss, test files and fixtures (#108986) 2021-08-17 18:17:29 -04:00
Lukas Olson 0f0a33c737
Fix search warnings with sample data (#108825)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 15:15:47 -07:00
Oliver Gupte 5815c4d3f4
[APM] Replaces the transaction events fallback callout with an info badge (#108925)
* [APM] Replaces the transaction events fallback callout with an info badge (#108830)

* PR feedback and test fix
2021-08-17 18:10:05 -04:00
Caroline Horn 59ec89bfbe
[NoDataPage] Updating the default messages (#108799)
* [NoDataPage] Updating the default messages and reusing `title` as default `button` label
  * Update default description for agent
* Overview page i18n and snaps
2021-08-17 17:59:15 -04:00
Marshall Main edfb98104c
[RAC][Rule Registry] Fix bug where namespaces with dashes could cause conflicts (#107991)
* Fix bug where namespaces with dashes could cause conflicts

* Missing word in comment

* Apply logic changes to consolidated RuleData implementation
2021-08-17 17:57:03 -04:00
Tiago Costa 5d404fff6b
chore(NA): moving @kbn/legacy-logging to babel transpiler (#108703) 2021-08-17 22:24:48 +01:00
Xavier Mouligneau 3013e10eda
[SECURITY SOLUTION] [RAC] Event rendered view (#108644)
* wip

* match design for selecting grid view

* wip to integrate event rendered view

* wip

* integration of the event rendered

* fix perPage action on Euibasic table

* Add bulding block background color to EventRenderedView

* styling

* remove header

* fix types

* fix unit tests

* use memo for listProps

* fix styling + add feature flag

* review I

* fix merge

* change the gutter size

Co-authored-by: Pablo Neves Machado <pablo.nevesmachado@elastic.co>
Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
2021-08-17 17:04:35 -04:00
Quynh Nguyen 09e8cfd305
[ML] Replace APM error rate table with failed transactions correlations (#108441)
* [ML] Refactor with new table

* [ML] Fix types, rename var

* [ML] Remove duplicate action columns

* [ML] Finish renaming for consistency

* [ML] Add failure correlations help popover

* [ML] Add failure correlations help popover

* [ML] Extend correlation help

* Update message

* [ML] Delete old legacy correlations pages

* [ML] Address comments, rename

* [ML] Revert deletion of latency_correlations.tsx

* [ML] Add unit test for getFailedTransactionsCorrelationImpactLabel

* [ML] Rename & fix types

* [ML] Fix logic to note include 0.02 threshold

* [ML] Refactor to use state handler

* [ML] Fix hardcoded index, columns, popover

* [ML] Replace failed transaction tab

* [ML] Fix unused translations

* [ML] Delete empty files

* [ML] Move beta badge to be inside tab content

Co-authored-by: lcawl <lcawley@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 15:47:31 -05:00