Commit graph

4001 commits

Author SHA1 Message Date
Lisa Cawley
05b392a862
[DOCS] Revise case API examples for consistent tone (#133456) 2022-06-06 08:48:11 -07:00
Lisa Cawley
9ca93a552c
[DOCS] Clarify case duration (#133552)
Co-authored-by: Eric Davis <eric.davis@elastic.co>
2022-06-06 08:45:38 -07:00
Brandon Morelli
f120dfb77d
docs: APM spaces (#132071)
* docs: APM spaces

* docs: use filtered aliases instead

* docs: a brief note on namespaces

* docs: alphabetize the list

* Update docs/apm/apm-spaces.asciidoc

Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>

Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2022-06-02 15:06:00 -04:00
Lukas Olson
e921693c50
Adds get all REST API to data views (#131683)
* Adds get all API to data views

* Move size to query params

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Use ids/titles instead of entire object

* Add docs

* Add integration test

* Fix docs

* Update docs

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-02 10:00:19 -07:00
Lisa Cawley
2d7a77448e
Add openAPI specifications for cases configure endpoint (#133265) 2022-06-02 08:47:24 -07:00
Gerard Soldevila
ee34153e5b
Add migrations.discardUnknownObjects flag (#132167)
* Add migrations.ignoreUnknownObjects flag

* Misc enhancements following PR comments, fix UTs

* Fix validation

* Make check_for_unknown_docs flag-agnostic. Misc enhancements

* Minor fixes

* Fix UTs

* misc doc updates

* Simplify excludeOnUpgradeQuery helper methods

* Improve unknown type detection, improve e2e tests

* Fix tests

* Simplify queries for unknown types, use "missing:" in agg

* Unify logic from unknown_object_types and check_for_unknown_docs

* Small code enhancements

* Update FTs datasets mappings, ensure saved object type is a "keyword"

* Undo changes in non-related type

* Fix UTs

* Fix imports that change with new packages

* Rollback unnecessary mapping changes

* Update docs/setup/upgrade/resolving-migration-failures.asciidoc

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

Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
2022-06-02 11:06:07 +02:00
Pierre Gayvallet
6cb2898d2e
[package arch] Move Core's browser-side injectedMetadata service into packages (#133298)
* Create the injected-metadata packages

* already rename the thing

* move ALL the things

* fix mocks

* start fixing mock imports

* lint

* a few more

* update generated doc

* lint
2022-06-02 08:49:40 +02:00
Pierre Gayvallet
9b75efdd1e
Introduce the @kbn/core-base-* core packages (#132502)
* Introduce the `@kbn/core-server-internal-base` package

* adapt more usages

* fix more imports

* fix import order

* remove jest config because no tests

* update generated doc

* add core nested directory to ignore snake_case list

* add internal-base packages for common and public

* move CoreContext to @kbn/core-public-internal-base

* adapt a few imports

* update generated doc

* use export type

* update generated doc again

* review comments

* import more types from packages

* fix merge conflicts

* update bazel package folders to new structure

* add empty new packages

* add internal packages

* Remove empty packages for now

* actually export stuff

* Add CoreService to client-side package

* adapt client-side usages of CoreService

* adapt server-side usages of CoreService

* Adapt server-side PluginName usages

* Adapt server-side CoreContext usages

* Adapt client-side CoreContext usages

* Adapt server-side ServiceConfigDescriptor usages

* fix some other imports

* fix last (?) server-side errors

* update generarted doc
2022-06-01 13:19:49 +02:00
Lisa Cawley
d512c3a9e5
Add openAPI specifications for cases _find endpoint (#131761) 2022-05-31 15:46:21 -07:00
Jack
4b1a049559
[Security Solution] Create security solution kubernetes experimental page and kubernetes_security plugin (#131858)
* Add kubernetes link on nav sidebar

* Create new plugin for k8s vis page

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Paulo Henrique <paulo.scape@gmail.com>
2022-05-31 11:40:37 -04:00
Jeramy Soucy
891e21230c
Adds documentation of alternate kibana yml usage. (#132578)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-31 13:10:35 +02:00
Yaroslav Kuznietsov
76d671514f
[Canvas] Keyboard shortcut popup. (#133069)
* Added the possibility to hide the help menu without hiding the KeyboardShortcutsDoc panel.

* Added the ability to hide the menu on click on its content.


Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-30 22:20:24 +03:00
Pierre Gayvallet
a044026920
Adapt internal core imports to use @kbn-logging (#132900)
* Adapt internal core imports to use `@kbn-logging`

* remove re-export of logger mocks

* re-export @kbn/logging types from the entrypoint now

* fix missing imports

* update generated doc

* update generated doc
2022-05-30 10:26:47 +02:00
Kaarina Tungseth
ae7bfaca54
[DOCS] Reformats the Configure Kibana settings tables into definition lists (#132531)
* [DOCS] Reformats the Configure Kibana settings tables into definition lists

* Review comments
2022-05-26 10:39:07 -05:00
Kaarina Tungseth
9fcc3588d7
[DOCS] Removes apt-key from Debian install page (#132532)
* [DOCS] Removes apt-key from Debian install page

* Removes chmod

* Fixes broken code block

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-26 10:28:50 -05:00
Avinash Upadhyaya K R
aac3420e40
docs: fix link to distributed tracing origins (#132912) 2022-05-26 12:44:01 +01:00
Jeramy Soucy
cb403a6fa0
Warn & Disallow Creating Role with Existing Name (#132218)
* Adds inline warning (name focus/onBlur) and toast warning (saveRole) when attempting to create a role with a name that already exists.
Disallows creating a role with a name that already exists.
Event handling efficiency needs review.

* Updated API documentation.
Implemented unit and functional tests.

* Added name compare to throttle GET request from onBlur for efficiency.

* Reorganized functional and unit tests. Improved UI logic and presentation.

* Update x-pack/plugins/security/server/routes/authorization/roles/put.test.ts

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

* Update x-pack/plugins/security/public/management/roles/edit_role/edit_role_page.test.tsx

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2022-05-25 08:34:41 -07:00
Pierre Gayvallet
4043c33be1
Use explicit interface for SavedObjectsClientContract (#132795)
* No explicit interface for `SavedObjectsClientContract`

* fix doc, do not export the client class

* fix doc more

* fix import from plugins

* fix import from plugins bis

* update generated doc
2022-05-25 16:51:16 +02:00
Søren Louv-Jansen
c1b77b93b6
[APM] Remove mentions of apm_user (#132790) 2022-05-25 12:07:00 +02:00
Pierre Gayvallet
3e31e967f3
No longer use PublicMethodOf for core server-side public types (#132783)
* Use explicit interface for ILoggingSystem

* Use explicit interface for SO importer/exporter

* update generated doc

* use import type for Readable

* Accept API Changes again fixes the missing links \o/

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2022-05-25 11:13:37 +02:00
Thomas Watson
ef9e3c4265
[docs] Improve Secure saved objects and kibana-encryption-keys docs (#132828) 2022-05-25 06:27:37 +02:00
Lee Drengenberg
5bfbb59855
update github help link (#132189)
* update github help link

* update github links from help.github.com to docs.github.com

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-24 11:17:43 -05:00
David Kilfoyle
be5e8ad87a
Remove "ESS" indicator for server.publicBaseUrl user setting (#132819)
This removes indication that the `server.publicBaseUrl` setting is supported on Elasticsearch Service. While the setting is technically available in ESS it's not configurable and it's best not documented.
2022-05-24 11:34:12 -04:00
Thomas Watson
dc9f2732a1
Add csp.disableUnsafeEval config option to remove the unsafe-eval CSP (#124484)
Adds a new experimental Kibana setting called `csp.disableUnsafeEval` which will default to `false`. When set to `true`, it will remove `unsafe-eval` from our CSP.

Also introduces a new module called `@kbn/handlebars` which is a replacement for the official `handlebars` module used in the frontend. This new module is necessary in order to avoid calling `eval`/`new Function` from within `handlebars` which is not allowed once `unsafe-eval` is removed from our CSP.

The `@kbn/handlebars` module is simply an extension of the main `handlebars` module which adds a new compile function called `compileAST` (as an alternative to the regular `compile` function). This new function will not use code-generation from strings to compile the template but will instead generate an AST and return a render function with the same API as the function returned by the regular `compile` function.

This is a little bit slower method, but since this is only meant to be used client-side, the slowdown should not be an issue.

The following limitations exists when using `@kbn/handlebars`:

The Inline partials handlebars template feature is not supported.

Only the following compile options will be supported:
- `knownHelpers`
- `knownHelpersOnly`
- `strict`
- `assumeObjects`
- `noEscape`
- `data`

Only the following runtime options will be supported:
- `helpers`
- `blockParams`
- `data`

Closes #36311
2022-05-23 11:01:56 -07:00
Pius
f9b065e228
Cross reference audit log settings (#132359)
* Cross reference audit log settings

* Update docs/user/security/audit-logging.asciidoc

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2022-05-23 10:07:56 -07:00
István Zoltán Szabó
9649307334
[DOCS] Updates alerting authorization docs with info on retaining API keys (#132402)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2022-05-23 10:12:54 +02:00
debadair
791ebfad8c
[DOCS] Remove obsolete license expiration info (#131474)
* [DOCS] Remove obsolete license expiration info

As of https://github.com/elastic/elasticsearch/pull/79671, Elasticsearch does a more stringent license check
rather than operating in a semi-degraded mode.

Closes #127845
Closes #125702

* Update docs/management/managing-licenses.asciidoc

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-20 13:34:04 -07:00
Kaarina Tungseth
cadd7b33b8
Adds example for how to change a field format (#132541) 2022-05-19 18:16:59 -05:00
nastasha-solomon
0c43f86470
[DOCS] Remove note that pre-configured connectors are not supported on cases (#132186) 2022-05-19 17:29:48 -04:00
Lisa Cawley
d12156ec22
[DOCS] Add severity field to case APIs (#132289) 2022-05-19 08:06:32 -07:00
Jeramy Soucy
7d8aae5f8a
Deprecate Anonymous Authentication Credentials (#131636)
* Adds deprecation warnings for apiKey and elasticsearch_anonymous_user credentials of  anonymous authentication providers.
Adds telemetry for usage of anonymous authentication credential type.

* Update x-pack/plugins/security/server/config_deprecations.ts

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

* Update x-pack/plugins/security/server/config_deprecations.ts

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

* Update x-pack/plugins/security/server/config_deprecations.ts

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

* Updated all docs to remove deprecated anon auth features, fixed doc link logic and typos.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2022-05-18 19:27:40 +02:00
Lisa Cawley
5b5f5b3e9b
[DOCS] Refresh screenshot for cases (#132377) 2022-05-18 07:42:11 -07:00
Pierre Gayvallet
31bb2c7fc5
expose retry_on_conflict for SOR.update (#131371)
* expose `retry_on_conflict` for `SOR.update`

* update generated doc

* stop using preflight check for version check for other methods too.

* remove unused ignore
2022-05-18 16:27:10 +02:00
James Garside
956703a71f
Updated trimet.vehicleID from Integer to Keyword (#132425)
* updated tutorial to use Filebeat and Datastreams rather than Logstash and a static index

* Fixed pipeline issue when inCongestion is null the pipeline fails. Now if null its set as false

* Fixed pipeline issue when inCongestion is null the pipeline fails. Now if null its set as false

* Corrected minor mistakes in docs

* Changed trimet.vehicleID from int to keyword

* Update docs/maps/asset-tracking-tutorial.asciidoc

Co-authored-by: Nick Peihl <nick.peihl@elastic.co>

* Update docs/maps/asset-tracking-tutorial.asciidoc

Co-authored-by: Nick Peihl <nick.peihl@elastic.co>

* Update docs/maps/asset-tracking-tutorial.asciidoc

Co-authored-by: Nick Peihl <nick.peihl@elastic.co>

* Update docs/maps/asset-tracking-tutorial.asciidoc

Co-authored-by: Nick Peihl <nick.peihl@elastic.co>

Co-authored-by: Nick Peihl <nick.peihl@elastic.co>
2022-05-18 10:20:57 -04:00
Ersin Erdal
de29010c43
Retain APIKey when disabling/enabling a rule (#131581)
* Retain APIKey when disabling/enabling a rule
2022-05-18 15:13:44 +02:00
István Zoltán Szabó
6a5b31cd4f
[DOCS] Adds Elastic-Cloud-SMTP to the list of preconfigured connectors and removes instructions for email connector configuration in Cloud (#132313)
Co-authored-by: Patrick Mueller <pmuellr@gmail.com>
2022-05-18 10:02:47 +02:00
Brandon Morelli
ea12c46bcf
[APM] docs: add service groups (#132070)
Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-17 09:29:57 -07:00
Ying Mao
226bda5243
[ResponseOps][Docs] Updating ServiceNow docs with OAuth setup instructions (#131344)
* Updating ServiceNow docs. Need screenshots

* Adding screenshots

* Fix nested screenshots and lists

* Tweaks and screenshots

* Updates

* blergh

* Apply suggestions from code review

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

* Apply suggestions from code review

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>

Co-authored-by: lcawl <lcawley@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
2022-05-16 19:25:40 -04:00
Rudolf Meijering
e79ab079fa
Descriptive logs with docLinks for cluster shard limit exceeded (#132072)
* Descriptive logs with docLinks for cluster shard limit exceeded

* Integration test for isClusterShardLimitExceeded

* Fix jest test snapshots

* Apply suggestions from code review

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

* PR feedback

* PR feedback

* Unit tests for isClusterShardLimitExceeded

* Use constast for repeated strings

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2022-05-16 13:26:58 -07:00
Tiago Costa
dea9159c5d
chore(NA): rename @elastic/eslint-config-kibana as @kbn/eslint-config (#132278) 2022-05-16 13:02:02 -07:00
Lisa Cawley
693c0c3445
[DOCS] Add duration to case API examples (#132090) 2022-05-16 11:22:08 -07:00
Lisa Cawley
c4ed812758
[DOCS] Adds prerequisites for create, delete, get connector APIs (#131685) 2022-05-12 12:43:22 -07:00
Lisa Cawley
784fd55780
[DOCS] Fixes data type for fields in find rules API (#132163) 2022-05-12 12:21:16 -07:00
gchaps
e9b1d3834a
[DOCS] Fixes typo in Console doc (#132078)
* [DOCS] Fixes typo in Console doc

This PR fixes a typo in the Console doc.

* Update docs/dev-tools/console/console.asciidoc

* Update docs/dev-tools/console/console.asciidoc
2022-05-12 09:23:30 -07:00
Walter Rafelsberger
6df1b28a82
[ML] Explain log rate spikes: Plugin setup (#131317)
Sets up the boilerplate code for the aiops plugin and adds a demo page within the ML app to demonstrate single API request data streaming from Kibana server to UI client.
2022-05-12 13:36:53 +02:00
James Garside
d38e836ab3
Updated tutorial to use Filebeat and Datastreams rather than Logstash… (#132052)
* updated tutorial to use Filebeat and Datastreams rather than Logstash and a static index

* Fixed pipeline issue when inCongestion is null the pipeline fails. Now if null its set as false

* Fixed pipeline issue when inCongestion is null the pipeline fails. Now if null its set as false

* Corrected minor mistakes in docs

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

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

* Update docs/maps/asset-tracking-tutorial.asciidoc

* Update docs/maps/asset-tracking-tutorial.asciidoc

* Update docs/maps/asset-tracking-tutorial.asciidoc

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2022-05-12 10:02:51 +01:00
Mashhur
716609ef9e
Add a note that if list pipelines exceeds 10k, Kibana faces performan… (#131992)
* Add a note that if list pipelines exceeds 10k, Kibana faces performance issue. #131992
2022-05-11 16:24:16 -07:00
Nathan Reese
72ec630f91
[maps] vector tile inspector (#131565)
* [maps] Vector tile inspector adapter

* empty prompt

* add layer select

* tile request view

* show gridTile es path and body

* show error message

* hits request

* tab with editor

* clean up

* open in console

* do not track same tile multiple times

* remove layer from vector tile inspector when layer is removed

* refactor tile request generation

* show path in inspector

* requests view callout

* remove duplicated server side code

* remove unused files

* fix map_actions test

* open requests view when getting requests from inspector

* only show view when adapter is present

* fix open in console link not matching tile request

* tslint

* fix search sessions functional test

* update trouble shooting docs

* use bold in docs

* fix tiles at zoom level 0

* revert changes to mb_map

* include path when copying to clipboard

* clear inspector when layer type changes

* tslint fix

* clean-up

* update callout copy

* empty prompt copy

* copy updates

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-11 15:04:33 -06:00
Lisa Cawley
d2a8ba7cf1
[DOCS] Adds info about the change in privileges when updating rules (#131993) 2022-05-11 08:05:33 -07:00
Rudolf Meijering
575c5599a9
Retry INIT step when hitting incompatible_cluster_routing_allocation (#131809)
* Add reproducing test case

* Fix and add integration test

* Transient settings should take preference

* Rename unsupported_cluster_routing_allocation error to incompatible_cluster_routing_allocation

* Retry INIT when action fails with [incompatible_cluster_routing_allocation]

* Apply suggestions from code review

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>

* Fix archive with trial licence and re-enable skipped test

* Integration test for incompatible cluster routing allocation

* Fix types after renaming UnsupportedClusterRoutingAllocation

* Attempt to fix open handle tests

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2022-05-11 08:05:01 -07:00