Commit graph

394 commits

Author SHA1 Message Date
Peter Pisljar
b6ea07ac24
removing enableInVisualize references (#156490) 2023-05-03 15:57:07 +02:00
Lisa Cawley
7efe3d53c6
[DOCS] Edits Kibana alerting settings (#155318) 2023-04-27 07:26:19 -07:00
Lisa Cawley
5120d692c8
[DOCS] Remove or move book-scoped attributes (#155210) 2023-04-20 09:12:09 -07:00
Jonathan Buttner
f111d93d08
[Cases] Adding cases settings docs (#154672)
This PR adds the new configuration settings to the docs. The
configurations were added in this PR:
https://github.com/elastic/kibana/pull/154013

---------

Co-authored-by: lcawl <lcawley@elastic.co>
2023-04-11 22:15:26 -04:00
Jon
67fab79f4c
Update on rpm.asciidoc (#150269) (#153333)
Forward port of https://github.com/elastic/kibana/pull/150269 from 7.17.
Thanks to the author of the original PR.

Fixes the checksum filename used to verify the Kibana rpm.

Closes https://github.com/elastic/kibana/issues/153013

---------

Co-authored-by: koso3ht4y <thantzin1802@gmail.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2023-03-22 00:45:10 +00:00
Thomas Watson
50444bbd59
Change default value of csp.disableUnsafeEval to 'true' (#150157)
This change ensures that the `unsafe-eval` source expression isn't included in
the Kibana Content Security Policy (CSP) by default.

Users can set `csp.disableUnsafeEval: false` to reintroduce `unsafe-eval`.
However, since this config option is deprecated as of this commit, it's
recommended to instead set `csp.script_src: ['unsafe-eval']`.

Closes #150156
2023-02-07 07:07:13 -05:00
Thomas Watson
2b82cb7fa2
[@kbn/handlebars] Add support for partials (#150151)
Add support for [partials](https://handlebarsjs.com/guide/partials.html)
to our own implementation of the [handlebars](https://handlebarsjs.com)
template engine.

Closes #139068
2023-02-02 12:59:09 -07:00
gchaps
803c8df070
[DOCS] Updates telemetry settings (#149651)
## Summary

This docs updates the content for the telemetry settings.
2023-01-27 07:06:16 -08:00
Jorge Sanz
6453c6ebd2
[Docs] Confirm Kibana checksum with the command line (#148117)
## Summary

Following this
[recommendation](https://discuss.elastic.co/t/checksum-confirmation-during-kibana-installation-for-rpm/320425)
from a community member, this PR aligns the instructions to install
Kibana from RPM with [Elasticsearch
documentation](b7060bad9a/docs/reference/setup/install/rpm.asciidoc (L114-L117))
to also download the checksum file and use `shasum` to run the test and
confirm the file is correct.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-25 11:46:30 +01:00
Lisa Cawley
e6f57ba2c0
[DOCS] Adds email notifications setting (#147660) 2023-01-10 17:24:15 -05:00
gchaps
996faf435c
[DOCS] Update macOS install instructions (#148484)
## Summary

This PR addresses #148454

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-01-09 10:00:34 -08:00
Thom Heymann
b184f0615e
Include Cross-Origin-Opener-Policy in default response headers (#147874)
Part of #141780 

## Release notes

Include Cross-Origin-Opener-Policy in default response headers

## Testing

Load Kibana; you should see Kibana respond with
`Cross-Origin-Opener-Policy: same-origin` header for page loads and API
requests.
2022-12-21 15:27:15 +00:00
Toby Sutor
53e42eb633
[docs] Fix wrong example and highlight Kibana API (#124347)
The current example contains invalid characters and does not work. Furthermore does it incorrectly point towards the Elasticsearch API instead of the Kibana API. Both is addressed in this change.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-12-20 10:42:15 -05:00
Christiane (Tina) Heiligers
049d8021eb
Updates upgrade assistant doclinks to point to current rather than hard-coded 7.17 (#147585)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Fix https://github.com/elastic/kibana/issues/145092
2022-12-19 09:19:26 -07:00
Lisa Cawley
d68b016953
[DOCS] Fix link in Kibana Add Data (#145480) 2022-11-16 17:02:29 -08:00
Tim Rühsen
8b0145c3a1
Support brotli compression on the server side (#142334)
* Use brotli compression

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

* Add integration test for brotli support

* Use import instead of require()

* Suppress build error on importing brok

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* add brok as explicit package dep

* add `server.compression.brotli` config settings

* update documentation

* fix test utils

* fix more test configs

* add tests for endpoints too

* remove against endpoint for now

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: pgayvallet <pierre.gayvallet@elastic.co>
2022-10-24 15:33:21 +02:00
Kurt
ba61ce4a2d
Add steps to docs to fix Corrupt Saved Objects (#143479)
* upgrade mocha to 10.1
2022-10-18 09:47:10 -04:00
Rudolf Meijering
441469262a
Add maxIdleSockets and idleSocketTimeout to Elasticsearch config (#142019)
* Add maxIdleSockets and idleSocketTimeout to Elasticsearch config

* Simplify agent manager

* Fix types

* Fix types

* Reduce idleSocketTimeout default to 60s

* Fix tests

* Update docs/setup/settings.asciidoc

* Address review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-10-10 03:34:00 -07:00
Abdon Pijpelink
4bc0cb7cae
[DOCS] Update link to common cluster issues page (#136965) 2022-07-22 13:03:39 -04:00
Abdon Pijpelink
da4c898b67
Removed anchor from link to common cluster issues page (#136378)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-07-18 17:08:21 +02:00
Brandon Kobel
8655730a69
Marking the node.roles kibana.yml setting as technical preview (#135932) 2022-07-07 13:55:09 -07:00
Rudolf Meijering
d3756a10c1
Update failed migration roll back instructions (#135006) 2022-06-29 08:47:33 -04:00
Luke Elmers
cf6ae210ef
Adds node.roles configuration & exposes via PluginInitializerContext (#135272) 2022-06-28 15:22:43 -07:00
Alejandro Fernández Haro
2410b879a3
[Telemetry] Make telemetry plugin non-disableable (#133205)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-27 16:21:37 +02:00
Paul Power
bee025b3c0
Changed a minor error - "to to" to "to" (#126760)
A minor change, not urgent/important

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-23 07:21:30 -04:00
Tim Sullivan
1c08fb4cfb
improve text on reporting setup and dependencies (#134406) 2022-06-15 09:21:30 -07:00
Gerard Soldevila
df5d2c913b
Add migrations.discardCorruptObjects flag (#132984)
* 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

* Add migrations.discardCorruptObjects flag

* Add migrations.discardCorruptObjects flag

* Fix imports that change with new packages

* Fix imports that change with new packages

* Fix tests

* Update Jest snapshot

* Fix snapshots

* Update ascii docs, revert unwanted mapping update

* Revert to default log output type

* Fix typo [Prebot => Preboot]

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-14 09:28:23 +02: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
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
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
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
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
Christiane (Tina) Heiligers
4b19c72dde
Improve saved objects migrations failure errors and logs (#131359) 2022-05-03 18:03:48 -07:00
Luca Belluccini
9a34c20ace
[DOC] Server UUID Setting (#128399)
The `server.uuid` setting MUST be a valid UUIDv4.
Also, the setting was added in the middle of other SSL settings and it was misleading (due to a banner related to SSL settings).
2022-04-28 13:15:32 -05:00
Toby Sutor
ef6a4e4498
Add information on how to make Kibana listening on all available IPS (#128485)
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-28 13:12:36 -04:00
Nodir Latipov
7c01257055
[Unified Search] Move autocomplete logic to unified search plugin (#129977)
* feat: move autocomplete logic from data plugin to unified search

* minor fix after comments

* updated Documentation: data.autocomplete -> unifiedSearch.autocomplete

* changed renameFromRoot order for autocomplete

* removed extra renameFromRoot in config deprecations, updated test

* added configPath for unified search plugin

* Update kibana.json

* updated path to autocomplete

* fix conflict

* fix conflict

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

* fix Linting

* fix functional_with_es_ssl test
2022-04-22 11:02:56 +05:00
Christiane (Tina) Heiligers
fb33187270
Adds documentation and improves migrations failing on timeouts while waiting for index yellow status (#130352)
* reapply docs and doclink changes

* Updates wait_for_index_yellow_status response type on response timeout, updates create_index action and model to account for the changes

* Refactors clone_index action to account for new return type of waitForIndexYellow, updates model

* Updates README

* Updates snapshot

* Updates docs

* Fix import violations

* imports

* Extends the retry log message with an actionable item linking to the docs on every retryable migration action

* Refactor retry_state and model to allow linking to specific subsections in the docs

* Updates resolving saved objects migration failures docs

* Calls waitForIndexStatusYellow directly in actions integration tests

* Deletes comment

* Update src/core/server/saved_objects/migrations/model/retry_state.test.ts

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Rudolf Meijering <skaapgif@gmail.com>
2022-04-21 08:11:39 -07:00
Nathan Reese
38d5202f55
[docs] fix table in Settings documentation (#129933)
* [docs] fix table in Settings documenation

* try passthrough

* triple pass through

* make code block
2022-04-11 14:03:07 -06:00
gchaps
9b7cde9e6c
[DOCS] Fixes formatting of settings (#129400)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-11 09:43:06 -07:00
Kaarina Tungseth
e046687d11
Adds the Lens 8.2.0 docs (#128986)
* Adds the Lens 8.2.0 docs

* Review comments

* Update Discover setting

* Update Discover setting

* Update Discover setting

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-06 12:50:44 -05:00
Andrew Tate
e7eea48a6c
[Lens] Update show underlying data strings (#128923) 2022-03-30 19:17:20 -05:00
Joe Portner
506648c917
Mark elasticsearch.serviceAccountToken setting as GA (#128420) 2022-03-23 15:41:33 -04:00
Gerard Soldevila
bbddc4233b
Allow customizing ES client maxSockets (#126937)
* Allow customizing ES client maxSockets

* Make maxSockets required (schema defaults to Infinity)

* Fix UTs

* Misc tweaks + extra UTs

* Update asciidoc

* Code cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-16 11:16:22 -07:00
Tim Sullivan
719ccb6d87
[Reporting] Document steps to grant users reporting access under Basic (#127513)
* [Reporting] Document steps to grant users reporting access under Basic license

* Apply suggestions from code review

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* corrections to api calls

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-14 10:50:40 -07:00
Tobias Stadler
fc6897c17b
Fixed some typos (#125802)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2022-03-02 16:40:34 -06:00
gchaps
2fc7ad44a8
[DOCS] Add settings for Enterprise Search (#126711)
* [DOCS] Add settings for Enterprise Search

* Update docs/settings/enterprise-search-settings.asciidoc

Co-authored-by: Rich Kuzsma <62522248+richkuz@users.noreply.github.com>

Co-authored-by: Rich Kuzsma <62522248+richkuz@users.noreply.github.com>
2022-03-02 12:58:15 -08:00
Tim Sullivan
7a19d89645
[Reporting/Screenshotting] Add libnss3 to the list of package dependencies (#126384)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-02 15:34:41 +01:00
gchaps
93cb99db5d
[DOCS] Minor tweaks to upgrade docs (#125538) 2022-02-14 09:31:40 -08:00