From 59b85d7937050d0d11b948ad5185577302f80a0d Mon Sep 17 00:00:00 2001 From: Ioannis Kakavas Date: Wed, 5 May 2021 16:20:54 +0300 Subject: [PATCH] Address feedback --- docs/reference/migration/migrate_7_14.asciidoc | 6 +++++- .../xpack/deprecation/NodeDeprecationChecks.java | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/reference/migration/migrate_7_14.asciidoc b/docs/reference/migration/migrate_7_14.asciidoc index de6a398e0c392..034b6b9fe376b 100644 --- a/docs/reference/migration/migrate_7_14.asciidoc +++ b/docs/reference/migration/migrate_7_14.asciidoc @@ -38,9 +38,13 @@ enable <>. ==== Security deprecations [[implicitly-disabled-security]] +.The default behavior of disabling security on basic and trial licenses is deprecated +[%collapsible] +==== +*Details* + Currently, security features are disabled when operating on a basic or trial license when `xpack.security.enabled` has not been explicitly set to `true`. - This behavior is now deprecated. In version 8.0.0, security features will be enabled by default for all licenses, unless explicitly disabled (by setting `xpack.security.enabled` to `false`). +==== diff --git a/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/NodeDeprecationChecks.java b/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/NodeDeprecationChecks.java index f37c8e88b745b..38ebaeebd06fa 100644 --- a/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/NodeDeprecationChecks.java +++ b/x-pack/plugin/deprecation/src/main/java/org/elasticsearch/xpack/deprecation/NodeDeprecationChecks.java @@ -134,11 +134,11 @@ static DeprecationIssue checkImplicitlyDisabledSecurityOnBasicAndTrial(final Set + "for all licenses and enable security by default." + "See https://www.elastic.co/guide/en/elasticsearch/reference/" + Version.CURRENT.major + "." + Version.CURRENT.minor + "/security-minimal-setup.html to enable security, or explicitly disable security by " - + "setting [xpack.security.enabled] to false in elasticsearch.yml"; + + "setting [xpack.security.enabled] to "\false\" in elasticsearch.yml"; return new DeprecationIssue( DeprecationIssue.Level.CRITICAL, "Security is enabled by default for all licenses in the next major version.", - "https://www.elastic.co/guide/en/elasticsearch/reference/7.14/deprecated-7.14.html#implicitly-disabled-security", + "https://www.elastic.co/guide/en/elasticsearch/reference/7.14/migrating-7.14.html#implicitly-disabled-security", details); } return null;