Skip to content

Commit

Permalink
Include documentation links in the session timeout deprecation warnin…
Browse files Browse the repository at this point in the history
…gs. (#115892)
  • Loading branch information
azasypkin authored Oct 21, 2021
1 parent daef3f1 commit 9199b32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/plugins/security/server/config_deprecations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export const securityConfigDeprecationProvider: ConfigDeprecationProvider = ({
}
},
// Default values for session expiration timeouts.
(settings, fromPath, addDeprecation) => {
(settings, fromPath, addDeprecation, { branch }) => {
if (settings?.xpack?.security?.session?.idleTimeout === undefined) {
addDeprecation({
configPath: 'xpack.security.session.idleTimeout',
Expand All @@ -237,6 +237,7 @@ export const securityConfigDeprecationProvider: ConfigDeprecationProvider = ({
defaultMessage:
'User sessions will automatically time out after 8 hours 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', {
Expand All @@ -261,6 +262,7 @@ 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', {
Expand Down

0 comments on commit 9199b32

Please sign in to comment.