Commit graph

44989 commits

Author SHA1 Message Date
Madison Caldwell 8f9086b4c2
[RAC][Security Solution] Add base Security Rule Type (#105096)
* injects bulkCreate and wrapHits to individual rule executors

* WIP create_security_rule_type_factory based on Marshall's work in #d3076ca54526ea0e61a9a99e1c1bce854806977e

* removes ruleStatusService from old rule executors, fixes executor unit tests

* fixes rebase

* Rename reference_rules to rule_types

* Fix type errors

* Fix type errors in base security rule factory

* Additional improvements to types and interfaces

* More type alignment

* Fix remaining type errors in query rule

* Add validation / inject lists plugin

* Formatting

* Improvements to typing

* Static typing on executors

* cleanup

* Hook up params for query/threshold rules... includes exceptionsList and daterange tuple

* Scaffolding for wrapHits and bulkCreate

* Add error handling / status reporting

* Fixup alert type state

* Begin threshold

* Begin work on threshold state

* Organize rule types

* Export base security rule types

* Fixup lifecycle static typing

* WrapHits / bulk changes

* Field mappings (partial)

* whoops

* Remove redundant params

* More flexibile implementation of bulkCreateFactory

* Add mappings

* Finish query rule

* Revert "Remove redundant params"

This reverts commit 87aff9c810.

* Revert "whoops"

This reverts commit a7771bd392.

* Fixup return types

* Use alertWithPersistence

* Fix import

* End-to-end rule mostly working

* Fix bulkCreate

* Bug fixes

* Bug fixes and mapping changes

* Fix indexing

* cleanup

* Fix type errors

* Test fixes

* Fix query tests

* cleanup / rename kibana.rac to kibana

* Remove eql/threshold (for now)

* Move technical fields to package

* Add indexAlias and buildRuleMessageFactory

* imports

* type errors

* Change 'kibana.rac.*' to 'kibana.*'

* Fix lifecycle tests

* Single alert instance

* fix import

* Fix type error

* Fix more type errors

* Fix query rule type test

* revert to previous ts-expect-error

* type errors again

* types / linting

* General readability improvements

* Add invariant function from Dmitrii's branch

* Use invariant and constants

* Improvements to field mappings

* More test failure fixes

* Add refresh param for bulk create

* Update more field refs

* Actually use refresh param

* cleanup

* test fixes

* changes to rule creation script

* Fix created signals count

* Use ruleId

* Updates to bulk indexing

* Mapping updates

* Cannot use 'strict' for dynamic setting

Co-authored-by: Marshall Main <marshall.main@elastic.co>
Co-authored-by: Ece Ozalp <ozale272@newschool.edu>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 12:48:07 -04:00
Marta Bondyra bcb16c1b86
[Lens] moving store loading to middleware (#106872) 2021-08-03 18:37:15 +02:00
Corey Robertson 91e64e0afa
Fix bug with expression reference extraction (#107309)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 12:30:36 -04:00
CJ Cenizal acb90020ff
Index Management ES JS client migration followup (#107463)
* Improve Index Management ts-expect-error annotations.
* Add steps for testing legacy index template mappings types to Index Management README.
* Rename component template API route handler files to follow pattern used elsewhere.
2021-08-03 09:16:59 -07:00
Byron Hulcher 1750ebb951
[App Search] Crawler Overview: Migrate Crawl Requests Table, Add Domains Table empty state (#107436)
* New CrawlRequest type

* Add crawlRequests value to CrawlerOverviewLogic

* New CrawlRequestsTable component

* Added CrawlRequestsTable to CrawlerOverview

* Hide the CrawlRequest table when there are no domains or crawl requests for an engine

* Add an empty state for CrawlerOverview when there are no domains

* Remove unused import

* Fix AddDomainLogic tests

* Apply suggestions from code review

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

* Fix capitalization

* Clarify test expectations

* Use noItemsMessage prop for CrawlRequestsTable empty state

* Refactor crawl requests logic

* Fix heading sizes

* Remove unused variable

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-08-03 12:16:39 -04:00
Patrick Mueller 76881a241d
[actions] change cloud icon usage for the customHostSettings connector settings (#107481)
Adds the cloud icon to `xpack.actions.customHostSettings[n].ssl.verificationMode` and removes it from `xpack.actions.customHostSettings[n].ssl.rejectUnauthorized`, in the actions configuration documentation.  The doc was written before `verificationMode` was added and `rejectUnauthorized` was deprecated.
2021-08-03 12:06:45 -04:00
Kyle Pollich 3555e74dc0
[Fleet] Remove references to legacy Elasticsearch types (#107519)
* Remove references to legacy elasticsearch types

* Fix types

* Fix more types
2021-08-03 11:58:20 -04:00
Stacey Gammon 899a6f3f11
Fix the API docs bug, where optional functions on interfaces were losing their children. (#107236)
* Fix the bug and update tests

* update api docs

* Fix tests
2021-08-03 11:58:03 -04:00
Spencer 3d8a2cfcf1
[cli-dev-mode] get values from completed state subjects (#107428)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 08:37:10 -07:00
Mark Hopkin 48a97f6d18
[Fleet] Agent policy search, support simple text filter. (#107306)
* feat: fall back to simple search on parse error

* fix: simplify query

* lint: fix docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 16:16:17 +01:00
Ravi Kesarwani 5cd7358834
Update SM doc for alert per object (#107420)
Update stack monitoring doc to account for alert notification now being send for each node, index, or cluster based on the rule type, instead of always per cluster (PR# 102544)
2021-08-03 10:30:55 -04:00
Joey F. Poon 14f66b54e0
[Security Solution] add transform failed warning banner on endpoints … (#107248) 2021-08-03 09:15:55 -05:00
Nathan L Smith b1a0c7dd93
Jest and Storybook fixes for observability plugin (#106255)
* Get rid of all the Jest console warnings
* Make sure none of the observability storybook pages throw errors (whether they all work correctly or are useful is another matter, but they all load now.)
2021-08-03 09:15:36 -05:00
Ahmad Bamieh 6d145c807c
[l10n] remove a couple of unused translations (#106977)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 17:04:16 +03:00
Aleh Zasypkin ed28155165
Implement interactiveSetup plugin server side functionality: setup layout (#105222) 2021-08-03 15:52:11 +02:00
Yuliia Naumenko ff2a5a8566
[Actions] Fixed broken link for ServiceNow docs (#107480) 2021-08-03 06:44:25 -07:00
Stratoula Kalafateli e3572e306b
[Visualizations] Fixes the wrong desciption of the kibana.json file (#107503) 2021-08-03 16:42:57 +03:00
Dmitry Shevchenko fddd9d7992
Implement RuleExecutionLog (#103463) 2021-08-03 15:25:26 +02:00
Andrew Kroh 4b4525ab05
[Fleet] Remove subseconds from event.ingested (#104044)
The `event.ingested` field is added to all documents ingested via
Fleet plus Agent. By removing the subseconds we can be better compression
of the values in Elasticsearch.

The primary user of `event.ingested` today is the the Security Detection Engine
as a tie-breaker in search_after, but once it moves to the using the
point-in-time API the need for precision will be lessened because PIT has
an implicit tie-breaker.

Relates #103944
Relates https://github.com/elastic/beats/issues/22388

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 08:47:50 -04:00
Tiago Costa 11c32c3de1
chore(NA): moving @kbn/i18n to babel transpiler (#107447) 2021-08-03 12:55:04 +01:00
Dario Gieselaar cee5bc6f41
[APM] Add throughput, error rate charts to backend detail page (#107379) 2021-08-03 12:36:20 +02:00
Dario Gieselaar 66b951c07c
[APM] Use 7.x compatible archive for API tests (#107367) 2021-08-03 06:29:06 -04:00
Vadim Kibana 0df0255bbf
Make url saved object in SO app clickable (#106646) 2021-08-03 12:03:42 +02:00
Tre 8f16ad3657
[Archive Migration] Swap es archiver for kbn archiver - Canvas app (#102533)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 10:40:03 +01:00
Tre 837eca1e32
[Archive Migration] x-pack..discover/feature_controls/security (#107156)
* [Archive Migration] x-pack..discover/feature_controls/security

Migrate x-pack..discover/feature_controls/security

* Drop fields stanza.

Signed-off-by: Tre' Seymour <wayne.seymour@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 10:37:31 +01:00
Stratoula Kalafateli 4d3aed52a1
[Visualizations] Adds dimensionName in datatable meta info (#107265)
* [Visualizations] Adds dimensionName in datatable meta info

* Delete unused file

* fix i18n

* Another fix of i18n

* Fix translations

* Remove double types

* Fix types

* Another type fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 12:05:55 +03:00
Pablo Machado 402702d55b
[Security solution] [RAC] Add checkbox control column to t-grid (#107144)
* Add checkbox control column to t-grid

* Add unit tests

* Update translations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 09:31:14 +02:00
Liza Katz 7af1ec246d
[Data] Align deprecation messages (#107175)
* Move more utils to package and cleanup API

* docs and imports

* better imports

* change comment

* Better docs

* typos

* typo

* Align deprecation messages

* fixes

* casting

* Code review

* Update meta_filter.ts

* Update types.ts

* Deprecate by 8.1

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 09:18:44 +02:00
Tiago Costa a923d9e091
chore(NA): moving @kbn/monaco to babel transpiler (#107461) 2021-08-03 02:40:19 +01:00
Zacqary Adam Xeper 26c1dae0df
[Stack Monitoring] Convert first half of server/lib folder to Typescript (#106327)
* TS convert top-level files

* Fix ccs_utils

* TS convert beats folder

* Add missing types file

* TS covert cluster folder

* TSify details folder

* TSify top level of nodes folder

* TSify elasticsearch nodes folder

* TSify elasticsearch shards folder

* TSify APM folder

* Fix type errors

* Fix failing typechecks and tests

* Fix more failing checks and tests

* Fix typecheck

* Fix typecheck

* Restore lodash get to logstash

* Fix fetching logstash cluster

* Restore lodash get to get_clusters_from_request

* Fix typecheck

* Fix detect_reason

* Fix get_kibanas_for_clusters

* Simplify kibanaUuids in get_kibanas_for_clusters

* Revert "Simplify kibanaUuids in get_kibanas_for_clusters"

This reverts commit 99597b09d7.

* Simplify kibanaUuids

* Fix test fixture
2021-08-03 10:33:59 +09:00
Clint Andrew Hall 5533a4061f
[canvas] Create Embeddables Service; remove legacy service (#107351) 2021-08-02 21:29:17 -04:00
Catherine Liu cc9d69ebc6
Fixed import for buildQueryFilter helper function (#107321)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 20:12:58 -04:00
Marius Dragomir f0e9210302
add accept alerts option (#107414)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 18:03:35 -04:00
Tiago Costa 24c85b51ca
chore(NA): moving @kbn/test to babel transpiler (#107455) 2021-08-02 22:35:43 +01:00
Tiago Costa 78a54fb985
chore(NA): moving @kbn/typed-react-router-config to babel transpiler (#107437) 2021-08-02 22:35:13 +01:00
Clint Andrew Hall 303526ffdb
[canvas] Create Expressions Service; remove legacy service (#107350) 2021-08-02 17:10:38 -04:00
Casper Hübertz 5707178b8e
[Observability] Change Resource links and labels (#107155)
* [Observability] Change labels
* [Observability] Add link to quick start videos
2021-08-02 23:05:33 +02:00
ymao1 1334622833
Removing legacy es client from alerting test (#107152)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 15:26:53 -04:00
Matthew Kime 9d47c6a9ec
STYLEGUIDE reference .md => .mdx (#107440)
Path to styleguide needs to be updated.
2021-08-02 14:05:58 -05:00
Kaarina Tungseth d699d165b5
[DOCS] Adds runtime fields vs formula to Lens (#107419)
* [DOCS] Adds runtime fields vs formula to Lens

* Moved up in list

* Review comment

* Comments from Graham
2021-08-02 13:56:40 -05:00
Jonathan Budzenski 91bb2c5b57
[kbn/pm] Remove legacy build code (#107217) 2021-08-02 13:53:27 -05:00
Tyler Smalley f3a17a80b4
[docs] Include information on supplying array config options (#107258)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-08-02 11:43:46 -07:00
Scotty Bollinger 571c5c41b6
[Workplace Search] Fix a11y issues for Workplace Search dashboards (#107240)
* Add “Actions” table header to tables

- Also adds missing i18n to SourcesTable
- Replaces bespoke TableHeader component with EUI comonents
- TableHeader is only used in one other place, GroupUsersTable, and that component itself is no longer used. Will delete both in a separate PR

* Refactor ViewContentHeader and ContentSection

Before using EuiTitle for sizing, we used conditional headings. We now only need to know if this is the top-level ViewContentHeader or nested in a ContentSection. ContentSections will use h3 and the top-level ViewContentHeader will use h2. The Personal Dashboard does not have an h1 tag, so we will add an h1 in the sidebar on those pages.

* Add some i18n

* Change headings to be semantically correct

- Removed unnecessary strong tag from heading
- Replaces instances of EuiText wrapping headings with EuiTitle
- For the Content Source Overview, spans were used for chldren of h6’s since h6 has special styling and there is no h7

* Add labels

* Hide Action header from Personal dashboard org sources

* Fix icon label

AXE was complaining because the text (name of the source) was the same as the alt text. Added ‘ logo’ to differentiate

* - Configured Sources list
- Connect instance heading
Also removes unused imports from 16d089acfd (diff-a4761afc86544a299d0129b749e3001625f5b194b95ebc31303824f8f95f4381)

Will create a separate PR to clean up this code more.

* Add roles to Personal Dashboard

* Update Platinum Feature badge for a11y

After discussion, it was determined to remove all custon styles and use the 'accent' built-in color for this badge

* Fix failing tests

* Flip boolean from isPersonal to isOrganization

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 14:40:33 -04:00
Clint Andrew Hall 01eb6c7430
[canvas] Create Reporting Service; remove legacy service (#107352)
* [canvas] Create Reporting Service; remove legacy service

* Fix merge mistake
2021-08-02 14:20:12 -04:00
Oliver Gupte 100ab8b615
[APM] Adds custom tabs with new UI extension point 'package-policy-edit-tabs' (#107400)
* [APM] Adds custom tabs with new UI extension point 'package-policy-edit-tabs' (#106440)

* fixes linting error
2021-08-02 14:10:22 -04:00
Byron Hulcher afb5044f56
[App Search] Add multi-step validation to the Crawler Add Domain Form (#107251)
* New types

* Add crawlDomainValidationToResult to crawler utils

* Add domainValidationStateToPanelColor and domainValidationFailureResultChange to add domain utils

* New ValidationStateIcon component

* New ValidationStepPanel component

* New AddDomainValidation component

* Add AddDomainValidation to AddDomainForm

* Updates to AddDomainLogic to support multi-step validation

* i18n-itize all text

* Update AddDomainFormSubmitButton to use new allowSubmit selector

* Added displayValidation selector to AddDomainLogic

* Clean up AddDomainLogic tests

* Clean-up crawlDomainValidationToResult tests

* Clean-up AddDomainForm tests

* Clean-up ValidationStepPanel component and tests

* Clean-up AddDomainLogic tests
2021-08-02 13:44:03 -04:00
Sergi Massaneda 3832aeb608
[RAC] [TGrid] Field Browser migrated to modal (#106541)
* tGid header using EuiDataGrid

* useFetchIndex migrated and column_headers refactor

* removed useless mock

* add badges translations

* i18n translations keys fixed

* code format

* filter default columns not present in field browser

* reset button to initial columns

* cleaning

* dependencies moved

* fix functional test with missing data service

* remove unused code (unrelated)

* fieldBrowser integration with security solutions timeline

* lint and translations cleaned

* timeline toolbar removed for merge & some test fixes

* type fix

* type fixes

* timeline static default colums

* limit size temporary increase

* limit size temporary increase

* field browser migrated to modal

* field browser header remaned to search

* commented code removed

* toolbar index removed

* security solutions field browser button custom styles

* bring back FieldsBrowserContainer

* UI fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 19:28:27 +02:00
CJ Cenizal 3491f05e95
Migrate Index Management and enrichers to the new ES JS client (#105863)
* Destructure index API request bodies consistently.
* Remove unnecessary calls to encodeURIComponent on the server.
* Migrate routes to handleEsError. Delete wrapEsError helpers. Remove unused isEsError and parseEsError dependencies. Remove isEsError from es_ui_shared.
* Update tests and migrate API integration tests.
* Clarify test details in CCR README. Update Index Management README with steps for testing Cloud-managed index templates and steps for testing indices and data streams that contain special characters.
2021-08-02 10:20:54 -07:00
Tim Sullivan 5e8b24230a
[Reporting] add version to all export types job params (#106137)
* add version to csv params

* fix ts

* fix api tests

* use kibana version from packageInfo

* use kibana version from packageInfo

* clean up ide warnings

* utility to log and set a default params version

* fix baseparams ts

* update snapshot

* check version in enqueue job

* add temporary ts-ignore for canvas

* clarify comment

* fix hardcoded version in png_pdf_panel

* clarify the UNVERSIONED_VERSION variable with a comment

* fix canvas jest test

* fix ts in example app

* fix types

* send version param to canvas util for job params

* update jest snapshot

* Update utils.test.ts

* fix snapshot

* remove browserTimezone and version from integration boilerplate

* wip ensure version is always populated in job params inside of the service

* wip2

* wip3

* wip4

* wip5

* wip6

* update note

* update example plugin

* wip7

* improve tests

* fix dynamic job params

* better testing

* improve enqueue_job test

* more tests

* fix types

* fix types

* fix example ts

* simplify props

* fix test

* --wip-- [skip ci]

* consolidate baseparams back into one interface

* fix rison encoding of apiClient param

* clean up

* reorganize imports

* back out functional change

* fix 400 error in download csv

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-02 13:00:37 -04:00
Stacey Gammon 81fd64c838
Remove line numbers from the json files (#107158)
* Stop tracking line numbers

* Updated api docs

* Fix type error and update tests

* wrap label in encodeURIComponent for the links

* Update docs after encodeUriComponent change
2021-08-02 12:57:22 -04:00