-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removes unused and renamed deprecated core settings and deprecated settings from core plugins #113653
Removes unused and renamed deprecated core settings and deprecated settings from core plugins #113653
Conversation
…_frequency_millis
…nd cpuacct.cgroup.path.override
…igs to use server.xsrf.allowlist instead
Pinging @elastic/kibana-core (Team:Core) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KIBANA_PATH_CONF
and kibana-docker changes LGTM
@@ -16,18 +16,22 @@ function collectDeprecations( | |||
) { | |||
const deprecations = provider(configDeprecationFactory); | |||
const deprecationMessages: string[] = []; | |||
const deprecationLevels: string[] = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed to test changing the rewriteCorsSetting
level from critical to warning.
@@ -39,23 +39,4 @@ export type BannersConfigType = TypeOf<typeof configSchema>; | |||
export const config: PluginConfigDescriptor<BannersConfigType> = { | |||
schema: configSchema, | |||
exposeToBrowser: {}, | |||
deprecations: () => [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unit tests only tested deprecations
.
@@ -364,4 +364,34 @@ Configuration management tools and automation will need to be updated to use the | |||
=== `server.xsrf.token` is no longer valid | |||
*Details:* The deprecated `server.xsrf.token` setting in the `kibana.yml` file has been removed. | |||
|
|||
[float] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only added breaking changes for the settings that are documented.
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good for cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Related to #103915
Currently blocked by https://github.com/elastic/cloud/issues/89185 (for settings handled in this PR).To reviewers:
If your team was pinged it means we needed to update one or more files in your domain.
Please filter the files and review changes that needed to be made.
Core team: There will be follow up PRs to handle the remaining core deprecations as these will likely require some further discussion.
During the 7 series, we added deprecations for configuration settings that were going to be removed in 8.0.
This PR removes support for the following configuration settings and adds documentation on breaking changes as needed:
newsfeed.defaultLanguage
xpack.banners.placement
cpu.cgroup.path.override
ops.cGroupOverrides.cpuPath
cpuacct.cgroup.path.override
ops.cGroupOverrides.cpuAcctPath
server.xsrf.whitelist
server.xsrf.allowlist
KIBANA_PATH_CONF
KBN_PATH_CONF
kibana.disableWelcomeScreen
home.disableWelcomeScreen
ui_metric.enabled
usageCollection.uiCounters.enabled
ui_metric.debug
usageCollection.uiCounters.debug
usageCollection.uiMetric.enabled
usageCollection.uiCounters.enabled
usageCollection.uiMetric.debug
usageCollection.uiCounters.debug
xpack.xpack_main.xpack_api_polling_frequency_millis
xpack.licensing.api_polling_frequency
Additional changes:
server.cors
deprecation remains but changed fromlevel:critical
tolevel:warning
on recommendation from @kibana-securityChecklist
(https://github.com/elastic/kibana/blob/master/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
For maintainers
Release note:
The deprecation notice for
server.cors
has changed fromlevel:critical
tolevel:warning
.Support for the following deprecated configuration settings has been removed:
newsfeed.defaultLanguage
is no longer used. Newsfeed items will be retrieved based on the browser locale and default to English.xpack.banners.placement
has changed value from 'header' to 'top'cpu.cgroup.path.override
is no longer valid and has been replaced withops.cGroupOverrides.cpuPath
cpuacct.cgroup.path.override
is no longer valid and has been replaced withops.cGroupOverrides.cpuAcctPath
server.xsrf.whitelist
is no longer valid and has been replaced withserver.xsrf.allowlist
xpack.xpack_main.xpack_api_polling_frequency_millis
is no longer valid and has been replace withxpack.licensing.api_polling_frequency
KIBANA_PATH_CONF
is no longer valid. Going forward, set the path to the Kibana configuration file using theKBN_PATH_CONF
environment variable.