Skip to content

Commit

Permalink
Eliminate documentation link and make a manual fix more detailed.
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Oct 14, 2021
1 parent 4308398 commit 82d62f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions x-pack/plugins/security/server/config_deprecations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const securityConfigDeprecationProvider: ConfigDeprecationProvider = ({
}
},
// Default values for session expiration timeouts.
(settings, fromPath, addDeprecation, { branch }) => {
(settings, fromPath, addDeprecation) => {
if (settings?.xpack?.security?.session?.idleTimeout === undefined) {
addDeprecation({
level: 'warning',
Expand All @@ -177,11 +177,11 @@ export const securityConfigDeprecationProvider: ConfigDeprecationProvider = ({
defaultMessage:
'User sessions will automatically time out after 1 hour of inactivity starting in 8.0. Override this value to change the timeout.',
}),
documentationUrl: `https://www.elastic.co/guide/en/kibana/${branch}/xpack-security-session-management.html#session-idle-timeout`,
correctiveActions: {
manualSteps: [
i18n.translate('xpack.security.deprecations.idleTimeout.manualStepOneMessage', {
defaultMessage: `To configure a custom timeout, set "xpack.security.session.idleTimeout". A value of 0 disables the timeout.`,
defaultMessage:
'To configure a custom timeout, set "xpack.security.session.idleTimeout". Use the format <count>[ms|s|m|h|d|w|M|Y], for example, 20m, 24h, 7d, 1w. A value of 0 disables the timeout.',
}),
],
},
Expand All @@ -198,11 +198,11 @@ export const securityConfigDeprecationProvider: ConfigDeprecationProvider = ({
defaultMessage:
'Users are automatically required to log in again after 30 days starting in 8.0. Override this value to change the timeout.',
}),
documentationUrl: `https://www.elastic.co/guide/en/kibana/${branch}/xpack-security-session-management.html#session-lifespan`,
correctiveActions: {
manualSteps: [
i18n.translate('xpack.security.deprecations.lifespan.manualStepOneMessage', {
defaultMessage: `To configure a custom timeout, set "xpack.security.session.lifespan". A value of 0 disables the timeout.`,
defaultMessage:
'To configure a custom timeout, set "xpack.security.session.lifespan". Use the format <count>[ms|s|m|h|d|w|M|Y], for example, 20m, 24h, 7d, 1w. A value of 0 disables the timeout.',
}),
],
},
Expand Down

0 comments on commit 82d62f4

Please sign in to comment.