Commit graph

2642 commits

Author SHA1 Message Date
Tiago Costa d6b41ff7bf
chore(NA): moving @kbn/config into bazel (#99199) 2021-05-04 23:04:55 +01:00
Frank Hassanabad 08d7e1c723
[Security Solutions] (Phase 1) Initial checkin with kbn package security-utils added (#99151)
## Summary

Good place for one off utils to use and reduce/remove the circular deps we have between security_solutions, lists, and anywhere else we have them for different utils.

Phase 1: Adds kbn package of `kbn-securitysolution-utils` through lift and shift
Phase 2: Deprecated the functions
Phase 3: Removes the functions in favor of using the `kbn-securitysolution-utils`
Phase 4+: Adds more and removes dependencies/copies across plugins within the security solution. Maybe we break things out by domain later as this grows in size.

- [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
2021-05-04 15:43:37 -06:00
gchaps ebc5b90123
[DOCS] Fixes error in examples for migrating plugin code (#99261)
* [DOCS] Fixes error in examples for migrating plugin code

* [DOCS] Fixes error in docs update
2021-05-04 14:36:51 -07:00
Frank Hassanabad bcde9e2b15
[Security Solutions] (Phase 1) Copies io-ts shared utilities into kibana/packages (#98999)
## Summary

We are removing duplicated code in sections of plugins into the kibana/packages folder. This is phase 1 of 4+ where:

Phase 1: Lift and shift the io-ts code into `kibana/packages/kbn-securitysolution-io-ts-utils`
Phase 2: Deprecate the utils across plugins any copied code
Phase 3: Replace the deprecated types with the ones in here where we can. [Strangle pattern](https://martinfowler.com/bliki/StranglerFigApplication.html)
Phase 4+: (potentially) consolidating any duplication or everything altogether with the `kbn-io-ts-utils` project

### 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
2021-05-04 13:19:10 -06:00
Anton Dosov fda2ad4575
[Search Sessions] Fix search sessions docs link (#98918) 2021-05-04 10:46:45 +02:00
ymao1 582c6c7ae3
[Alerting][Docs] Adding query to identify long running rules to docs (#98773)
* Adding query to identify long running rules to docs

* Wording suggestsion from PR review

* Adding event.provider to query. Allowing copy to console

* Adding note for system privileges

* Adding runtime field to query

* Removing extra dollar sign

* PR fixes
2021-05-03 19:18:13 -04:00
Jonathan Budzenski c7977614ed
[docs/build] Update build dependencies list (#98545)
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-03 17:04:34 -05:00
Tiago Costa 4af6e9c691
chore(NA): moving @kbn/analytics into bazel (#98917)
* chore(NA): moving @kbn/analytics into bazel

* chore(NA): fix type check for package migration

* chore(NA): fix type check for package migration

* chore(NA): fix type check for package migration

* chore(NA): separate type generating from server code

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-05-03 22:34:53 +01:00
Tim Sullivan 1ce0cf6f5d
Reporting/Docs: update version of reporting_user deprecation (#98988) 2021-05-03 10:35:12 -07:00
Anton Dosov ff3badd80d
[Search Sessions] adjust docs for 7.13 changes (#98919)
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-05-03 11:22:07 +02:00
Tiago Costa 788bf329b1
chore(NA): moving @kbn/eslint-plugin-eslint into bazel (#98926)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-30 22:31:38 +01:00
Jonathan Budzenski 3d8f1b1b3b
[packages] Move @kbn/legacy-logging to Bazel (#98810) 2021-04-30 14:34:37 -05:00
Tiago Costa 93ed44d2d4
chore(NA): moving @kbn/eslint-import-resolver-kibana into bazel (#98798) 2021-04-30 20:14:18 +01:00
Frank Hassanabad af228f0f20
[Security Solutions] (Phase 1) Adds an application cache called metrics entities and integrates it within Security Solutions behind a feature flag (#96446)
## Summary

Phase 1 of a multi-phase cautious approach for adding an experimental application cache for Kibana solutions called `metric_entities` and integrates it within Security Solutions.

Phase 1 is putting experimental support into the application without breaking existing features. Lots of TODO's, conversations and a possible RFC from phase 1 to phase 2 approach. Some features are missing, but for phase 1 the general idea and code is all there.

To enable this first phase after checking out the branch add this to your `kibana.dev.yml`

```yml
xpack.metricsEntities.enabled: true
xpack.securitySolution.enableExperimental: ['metricsEntitiesEnabled']
```

Then go into Stack Management -> Advanced Settings (Under Security Solutions) and set the enabled to true like so:
<img width="1229" alt="Screen Shot 2021-04-08 at 2 21 02 PM" src="https://user-images.githubusercontent.com/1151048/114091276-b3cbb700-9875-11eb-9083-5c1d91dd20ed.png">

Next go to the security_solutions page and you will see it being activated and you will have these transforms running if you look under stack management:
<img width="1710" alt="Screen Shot 2021-04-29 at 2 00 27 PM" src="https://user-images.githubusercontent.com/1151048/116611174-4a2e4e00-a8f3-11eb-9e15-55cb504dfb2a.png">

On the hosts page, network, page, etc... You can see them being activated when you have no query/filter and you click on request:
<img width="1405" alt="Screen Shot 2021-04-29 at 2 01 28 PM" src="https://user-images.githubusercontent.com/1151048/116611274-6a5e0d00-a8f3-11eb-9998-9f5b3d1c5c63.png">

You will see in the request the index patterns all starting with `estc_xyz*`

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

We have lots of TODO's but no concrete docs with this just yet.
- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials

Behind a feature flag and this isn't there yet.
- [ ] [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
2021-04-30 12:36:06 -06:00
Lisa Cawley 23b832b6ab
Use doc link services in CCR (#98436)
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
2021-04-30 09:04:54 -07:00
Brandon Morelli bab9065f3d
docs: update service overview for comparison (#98843) 2021-04-30 08:03:32 -07:00
Nathan Reese ff8f4fb2a5
[Maps] 7.13 doc updates (#98687)
* [Maps] 7.13 doc updates

* tooltip updates

* clean up

* Update docs/maps/search.asciidoc

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

* Update docs/maps/search.asciidoc

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

* Update docs/maps/vector-tooltips.asciidoc

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

* review feedback

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-04-30 08:45:31 -06:00
Pierre Gayvallet 05e2ab4df1
Add upsert support for savedObjects update (#98712)
* Add upsert support for savedObjects update

* fix types

* update generated docs

* update docs

* fix types

* do not use update attributes for upsert
2021-04-30 11:10:50 +02:00
gchaps 41ded7a8a2
[DOCS] Updates saved searches doc (#97936)
* [DOCS] Updates saved searches doc

* [DOCS] Adds info on adding a saved search to a dashboard

* [DOCS] Fixes silly typo

* Update docs/discover/save-search.asciidoc

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>

* Update docs/discover/save-search.asciidoc

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>

* Update docs/discover/save-search.asciidoc

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>

* [DOCS] Incorporates review feedback

* [DOCS] Updates doc per review comments

* [DOCS] Fixes description of saved query

* [DOCS] Incorporates review comments

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>
2021-04-29 10:26:34 -07:00
gchaps 7ef187ec89
[DOCS] Updates images and text in Discover (#98694)
* [DOCS] Updates images and text in Discover

* [DOCS] Edits after walkthrough

* [DOCS] Fixes typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-29 10:25:50 -07:00
Tiago Costa 1f15c6a1ad
chore(NA): moving @elastic/eslint-config-kibana into bazel (#98648)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-29 17:20:52 +01:00
Steph Milovic 2d5ff8ab70
[Security Solution] [Cases] Cases UI Plugin for RAC (#97646)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: David Sánchez <davidsansol92@gmail.com>
Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: Dmitry <dzmitry.lemechko@elastic.co>
2021-04-29 07:41:46 -04:00
Matthias Wilhelm 58d4164b6c
[Discover][doc] Add view document (#92472)
*  Adds info about the doc viewer of Discover
* Merges with the context view doc

Co-authored-by: Gail Chappell <gail.chappell@elastic.co>
2021-04-29 10:47:17 +02:00
Tiago Costa f690c60517
chore(NA): moving @kbn/dev-utils into bazel (#98496)
* chore(NA): moving @kbn/dev-utils into bazel

* docs(NA): updated generated plugin list
2021-04-28 23:46:33 +01:00
Patrick Mueller b31f4a1a97
[actions] adds config allowing per-host networking options (#96630)
resolves: https://github.com/elastic/kibana/issues/80120

Adds a new Kibana configuration key xpack.actions.customHostSettings which
allows per-host configuration of connection settings for https and smtp for
alerting actions. Initially this is just for TLS settings, expandable to other
settings in the future.

The purpose of these is to allow customers to provide server certificates for
servers accessed by actions, whose certificate authority is not available
publicly. Alternatively, a per-server rejectUnauthorized: false configuration
may be used to bypass the verification step for specific servers, but require it
for other servers that do not have per-host customization.

Support was also added to allow per-host customization of ignoreTLS and
requireTLS flags for use with the email action.
2021-04-28 15:26:47 -04:00
Liza Katz 02ac599569
[Search] return full IKibanaSearchResponse from fetch$ (#98268)
* return full object from fetch$

* jest

* fun-ctional tests

* jest

* functional

* test

* test

* tesssst

* Update src/plugins/data/common/search/search_source/fetch/request_error.ts

Co-authored-by: Michael Dokolin <dokmic@gmail.com>

* Update src/plugins/data/common/search/expressions/esaggs/request_handler.test.ts

Co-authored-by: Michael Dokolin <dokmic@gmail.com>

* ts

* ts

* ts

* Revert "Update src/plugins/data/common/search/search_source/fetch/request_error.ts"

This reverts commit ab182e84ed.

Co-authored-by: Michael Dokolin <dokmic@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-28 21:49:47 +03:00
Brandon Morelli 7963313e93
docs: remove apm_user (#98401) 2021-04-28 10:57:21 -07:00
Tiago Costa fb34ba0337
chore(NA): moving @kbn/logging into bazel (#98564)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-28 16:01:22 +01:00
Anton Dosov 18dd767cae
[Search] Unify search plugin step 2 — Search Interceptor (#97845)
Unify search interceptor
Deprecate TimeoutErrorMode.UPGRADE
2021-04-28 14:08:01 +02:00
Jorge Sanz 66a1aff924
[Maps] Updated documentation for Elastic Maps Server 7.13 (#98310)
Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-04-28 14:02:35 +02:00
Yuliia Naumenko 33f47ba590
[Connectors][API] Updated connectors with isMissingSecrets flag (#98223)
* [Connectors][API] Updated connectors with enabledAfterImport flag

* fixed functional tests

* added new field to connectors API docs

* added update unit test

* fixed test

* renamed enableAfterImport to isMissingSecrets

* removed onExport

* revert the logic of true/false for isMissingSecrets

* fixed test

* fixed tests

* added unit test

* fixed docs

* fixed import text and button labels

* fixed import text

* fixed text
2021-04-27 14:14:01 -07:00
Alejandro Fernández Haro 6ed93c3571
[Telemetry] Remove all usages of any (#98338) 2021-04-27 21:45:19 +02:00
Mikhail Shustov afc4aef9d5
Cleanup UI settings client API (#98248)
* remove unused overrideLocalDefault method

* remove unused getSasved$ method

* fix dashboard unit test

* update docs

* fix Security Solution unit test
2021-04-27 20:01:07 +02:00
Tiago Costa 7c043dc3de
chore(NA): moving @kbn/apm-config-loader into bazel (#98323)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-27 18:44:41 +01:00
Domenico Andreoli 35bd88e754
[DOCS] Fix development tests table (#98309)
* Fix visualization of consecutive inline code blocks
* Remove trailing '_' from the correct script name
2021-04-27 10:12:23 -07:00
Kaarina Tungseth 6c46e4107c
[DOCS] Drilldown docs changes for 7.13 (#98390) 2021-04-27 09:32:02 -05:00
Stratoula Kalafateli 2372700483
[Docs] TSVB supports url drilldowns on 7.13+ (#98460) 2021-04-27 17:31:16 +03:00
ymao1 b544be6ff2
[Alerting] Return 400 Bad Request errors when creating/enabling/updating rules using API key authentication (#98088)
* Catching API key creation errors and throwing bad request errors instead

* Catching API key creation errors and throwing bad request errors instead

* Adding warning to docs

* Updating error messages

* Updating tests

* Updating warning wording in docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-27 07:46:35 -04:00
Caroline Horn f07ebc822f
Reducing wrapping divs from RenderingService (#97017)
* Reducing wrapping divs from RenderingService

* Applying more styles to .kbnAppWrapper

Some being temporary and will need a better solution when introducing the page layout component

* Almost fixing tests for rendering service

Can’t figure out how to have a optional Observable
`Received: "kbnAppWrapper class-name”`

* Adding some comments

* [Dashboard] Using the APP_WRAPPER_CLASS

* fix test & ts types

* Fixin a few more tests that were using `.app-wrapper`

* Creating docs for new var and cleaning up some selectors

* Fixing reporting

* Fixing banner position and truncation

* Fixed CSS error in loading screen and jump in animation

* Fixing selectors in Canvas

* Remove unused var

* Added `APP_WRAPPER_CLASS` export from `server` and updated reporting to use it

* Fix monitoring icon clicks

* move APP_WRAPPER_CLASS definition to src/core/common

* Fixing Monitoring snapshots and wrapper class

* Moved `APP_WRAPPER_CLASS` utils but exported from `public` and `server`

* Remove old folder

* Fix dashboard test by only showing HR in edit mode

Co-authored-by: pgayvallet
Co-authored-by:  tsullivan
2021-04-26 16:06:06 -04:00
Tiago Costa e3d52fc598
chore(NA): moving @kbn/expect into bazel (#98322) 2021-04-26 20:09:08 +01:00
Josh Dover 48523e5066
Add support for /api/status before Kibana completes startup (#79012)
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-26 11:59:14 -04:00
Joe Reuter deb62d4479
Disable context menu "Explore underlying data" by default (#98039) 2021-04-26 13:20:43 +02:00
Tiago Costa a304bb3577
chore(NA): moving @elastic/safer-lodash-set into bazel (#98187) 2021-04-23 21:28:37 +01:00
Tiago Costa 00940dd0f5
chore(NA): moving @kbn/babel-code-parser into bazel (#97675)
* chore(NA): moving @kbn/babel-code-parser into bazel

* docs(NA): missing docs about new package

* chore(NA): removing quiet arg

* chore(NA): fix packages build srcs

* chore(NA): change source order on tinymath

* chore(NA): add babelrc

* chore(NA): clear package build migration

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-23 17:48:48 +01:00
Yulia Čech 5d0af1cd36
[Cloud plugin] Added README text (#97999)
* Added README text

* Update x-pack/plugins/cloud/README.md

Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>

* Updated README.md

* Updated docs build

Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-23 17:08:22 +02:00
Gidi Meir Morris 1dd5e1f13d
Expands docs on List rule types API (#97608)
Corrected docs for List rule types API
2021-04-23 10:58:07 +01:00
Michael Dokolin 49a18483d3
Refactor execution service to use observables underneath (#96065)
* Refactor execution service to use observables underneath
* Fix canvas plugin to initialize workspace after assets
* Update expression functions implementations to resolve observables instead of promises
2021-04-22 20:36:25 +02:00
Tiago Costa a8a8289b20
chore(NA): chore(NA): moving @kbn/utils into bazel (#97833)
* chore(NA): chore(NA): moving @kbn/utils into bazel

* chore(NA): run kbn-test integration test with preserve-symlinks
2021-04-22 17:55:38 +01:00
Tiago Costa 4fbb48daea
chore(NA): chore(NA): moving @kbn/std into bazel (#97771) 2021-04-21 20:50:05 +01:00
gchaps e6e36102f0
[DOCS] Reorganizes concepts and discover sections (#97019)
* [DOCS] Reorganizes concepts and discover sections

* [DOCS] Updates time filter and saved query sections

* Update docs/discover/save-search.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* [DOCS] Updates time filter and saved query doc

* [DOCS] Updates images

* [DOCS] Adds missing images

* [DOCS] Minor edits

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
2021-04-21 11:02:00 -07:00