Commit graph

383 commits

Author SHA1 Message Date
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
Tim Sullivan
1095208ace
[Reporting/Docs] Add clarity to reporting concepts (#125175)
* discourage setting enabled:false

* mark xpack.reporting.kibanaServer as experimental

* move kibanaServer section down

* add kibana privileges with reporting options screenshot

* rephrase why reporting.roles is depreccated

* screenshot for how to define a custom role the grants reporting privileges

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Update docs/settings/reporting-settings.asciidoc

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

* Apply suggestions from code review

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

* Update docs/settings/reporting-settings.asciidoc

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2022-02-11 09:40:41 -07:00
gchaps
a13dafc7dd
[DOCS] Updates the Upgrade docs (#125288)
* [DOCS] Adds redirect for Standard Upgrade doc

* [DOCS] Updates Upgrade docs

* [DOCS] Incorporates review comments

* [DOCS] Adds info on saved objects

* [DOCS] Fixes broken link

* [DOCS] Fixes placement of section on unknown saved objects

* [DOCS] Removes duplicate topic
2022-02-10 15:46:58 -08:00
Rudolf Meijering
f3b01b6751
Improve docs for unknown saved object types (#125253)
* Revert "Revert "Docs for preventing migrations failing for unknown saved object types""

This reverts commit 580d61d990.

* Fix links and versions for note to use UA

* Migration docs: remove content related to 6.x versions

* Upgrade docs, remove content for upgrading from v4/v5

* Link to 7.17 upgrade assistant

* Apply suggestions from code review

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>

* Update docs/setup/upgrade/upgrade-migrations.asciidoc

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

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2022-02-10 15:43:05 -05:00
Rudolf Meijering
580d61d990 Revert "Docs for preventing migrations failing for unknown saved object types"
This reverts commit 561d0b798b.

Oops shouldn't have pushed this to main directly
2022-02-10 14:19:12 +01:00
Rudolf Meijering
561d0b798b Docs for preventing migrations failing for unknown saved object types 2022-02-10 14:17:50 +01:00
gchaps
46f679878b
[DOCS] Removes Homebrew docs (#125155) 2022-02-09 13:30:49 -08:00
Kaarina Tungseth
a1a273238e
[DOCS] Updates the 8.0.0 upgrade docs (#125128)
* [DOCS] Updates the 8.0.0 upgrade docs

* Update docs/setup/upgrade/upgrade-migrations.asciidoc

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

* Update docs/setup/upgrade/upgrade-migrations.asciidoc

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

* Update docs/setup/upgrade/upgrade-migrations.asciidoc

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

* Update docs/setup/upgrade/upgrade-migrations.asciidoc

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

* Update docs/setup/upgrade/upgrade-migrations.asciidoc

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

* Update docs/setup/upgrade/upgrade-migrations.asciidoc

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

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2022-02-09 14:39:17 -06:00
gchaps
5fde0a07e3
[DOCS] Edits to upgrade docs (#125019)
* [DOCS] Edits to upgrade docs

* Apply suggestions from code review

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

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-09 09:02:48 -08:00
Kaarina Tungseth
f2e9efe457
[DOCS] Adds 8.0.0 release notes (#124399)
* [DOCS] Adds 8.0.0 release notes

* Update docs/CHANGELOG.asciidoc

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

* Update docs/CHANGELOG.asciidoc

Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>
2022-02-09 10:15:07 -06:00
gchaps
ca10263ed6
[DOCS] Fixes links in Update docs (#124892)
* [DOCS] Fixes links in Update docs

* [DOCS] Fixes another formatting error
2022-02-07 14:26:51 -08:00
James Rodewig
fd1c63a2c7
[DOCS] Fix typo (#124872)
Fixes a minor typo in the 8.x upgrade docs.
2022-02-07 14:53:19 -05:00