Skip to content

Commit

Permalink
Ensure deprecation documentationUrl's point to correct doc branch (#1…
Browse files Browse the repository at this point in the history
…14264)

This was made possible via PR #113600.
  • Loading branch information
watson authored Oct 7, 2021
1 parent 213c342 commit 2eff6d0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x-pack/plugins/security/server/config_deprecations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const securityConfigDeprecationProvider: ConfigDeprecationProvider = ({
unused('authorization.legacyFallback.enabled'),
unused('authc.saml.maxRedirectURLSize'),
// Deprecation warning for the legacy audit logger.
(settings, fromPath, addDeprecation) => {
(settings, fromPath, addDeprecation, { branch }) => {
const auditLoggingEnabled = settings?.xpack?.security?.audit?.enabled ?? false;
const legacyAuditLoggerEnabled = !settings?.xpack?.security?.audit?.appender;
if (auditLoggingEnabled && legacyAuditLoggerEnabled) {
Expand All @@ -36,8 +36,7 @@ export const securityConfigDeprecationProvider: ConfigDeprecationProvider = ({
defaultMessage:
'The legacy audit logger is deprecated in favor of the new ECS-compliant audit logger.',
}),
documentationUrl:
'https://www.elastic.co/guide/en/kibana/current/security-settings-kb.html#audit-logging-settings',
documentationUrl: `https://www.elastic.co/guide/en/kibana/${branch}/security-settings-kb.html#audit-logging-settings`,
correctiveActions: {
manualSteps: [
i18n.translate('xpack.security.deprecations.auditLogger.manualStepOneMessage', {
Expand Down

0 comments on commit 2eff6d0

Please sign in to comment.