From ed2630941f3daf262b76426ffd5752056ecfe321 Mon Sep 17 00:00:00 2001 From: Aleh Zasypkin Date: Tue, 19 Oct 2021 16:04:10 +0200 Subject: [PATCH] Update deprecation message to mention 8 hours instead of 1. --- x-pack/plugins/security/server/config_deprecations.test.ts | 4 ++-- x-pack/plugins/security/server/config_deprecations.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/security/server/config_deprecations.test.ts b/x-pack/plugins/security/server/config_deprecations.test.ts index 180b51a536167..2c916e475a495 100644 --- a/x-pack/plugins/security/server/config_deprecations.test.ts +++ b/x-pack/plugins/security/server/config_deprecations.test.ts @@ -54,7 +54,7 @@ describe('Config Deprecations', () => { Array [ Object { "level": "warning", - "message": "User sessions will automatically time out after 1 hour of inactivity starting in 8.0. Override this value to change the timeout.", + "message": "User sessions will automatically time out after 8 hours of inactivity starting in 8.0. Override this value to change the timeout.", }, Object { "level": "warning", @@ -72,7 +72,7 @@ describe('Config Deprecations', () => { Array [ Object { "level": "warning", - "message": "User sessions will automatically time out after 1 hour of inactivity starting in 8.0. Override this value to change the timeout.", + "message": "User sessions will automatically time out after 8 hours of inactivity starting in 8.0. Override this value to change the timeout.", }, ] `); diff --git a/x-pack/plugins/security/server/config_deprecations.ts b/x-pack/plugins/security/server/config_deprecations.ts index 65586a6a0b35b..b867c50f589e0 100644 --- a/x-pack/plugins/security/server/config_deprecations.ts +++ b/x-pack/plugins/security/server/config_deprecations.ts @@ -231,11 +231,11 @@ export const securityConfigDeprecationProvider: ConfigDeprecationProvider = ({ configPath: 'xpack.security.session.idleTimeout', level: 'warning', title: i18n.translate('xpack.security.deprecations.idleTimeoutTitle', { - defaultMessage: '"xpack.security.session.idleTimeout" is now 1 hour', + defaultMessage: '"xpack.security.session.idleTimeout" is now 8 hours', }), message: i18n.translate('xpack.security.deprecations.idleTimeoutMessage', { defaultMessage: - 'User sessions will automatically time out after 1 hour of inactivity starting in 8.0. Override this value to change the timeout.', + 'User sessions will automatically time out after 8 hours of inactivity starting in 8.0. Override this value to change the timeout.', }), correctiveActions: { manualSteps: [