From e8b835efbbb001fa4441d1ef237418d5cf3ae49e Mon Sep 17 00:00:00 2001 From: Mahesh Diwan Date: Fri, 9 Jan 2026 23:06:11 +0530 Subject: [PATCH 1/5] Fix outdated alerting authorization documentation link Updated the error message URL from the deprecated /guide/en/kibana/9.2/ format to the current /docs/explore-analyze/ documentation structure. Fixes #244942 --- src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts b/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts index 1363e4cf5c19f..55856db981b60 100644 --- a/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts +++ b/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts @@ -641,7 +641,7 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D apmRulesTransactionDuration: `${ELASTIC_DOCS}solutions/observability/incident-management/create-latency-threshold-rule`, apmRulesTransactionError: `${ELASTIC_DOCS}solutions/observability/incident-management/create-failed-transaction-rate-threshold-rule`, apmRulesAnomaly: `${ELASTIC_DOCS}solutions/observability/incident-management/create-an-apm-anomaly-rule`, - authorization: `${KIBANA_DOCS}alerting-setup.html#alerting-authorization`, + authorization: `${KIBANA_DOCS}explore-analyze/alerts-cases/alerts/alerting-setup#alerting-authorization`, emailAction: `${ELASTIC_DOCS}reference/kibana/connectors-kibana/email-action-type`, emailActionConfig: `${ELASTIC_DOCS}reference/kibana/connectors-kibana/email-action-type`, emailExchangeClientSecretConfig: `${ELASTIC_DOCS}reference/kibana/connectors-kibana/email-action-type#exchange-client-secret`, From bb62f802a8be0f1d7b25e23225bf99ec0be16c03 Mon Sep 17 00:00:00 2001 From: florent-leborgne Date: Fri, 9 Jan 2026 19:01:49 +0100 Subject: [PATCH 2/5] Update src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts --- src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts b/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts index 55856db981b60..933a11e830863 100644 --- a/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts +++ b/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts @@ -641,7 +641,7 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D apmRulesTransactionDuration: `${ELASTIC_DOCS}solutions/observability/incident-management/create-latency-threshold-rule`, apmRulesTransactionError: `${ELASTIC_DOCS}solutions/observability/incident-management/create-failed-transaction-rate-threshold-rule`, apmRulesAnomaly: `${ELASTIC_DOCS}solutions/observability/incident-management/create-an-apm-anomaly-rule`, - authorization: `${KIBANA_DOCS}explore-analyze/alerts-cases/alerts/alerting-setup#alerting-authorization`, + authorization: `${ELASTIC_DOCS}explore-analyze/alerts-cases/alerts/alerting-setup#alerting-authorization`, emailAction: `${ELASTIC_DOCS}reference/kibana/connectors-kibana/email-action-type`, emailActionConfig: `${ELASTIC_DOCS}reference/kibana/connectors-kibana/email-action-type`, emailExchangeClientSecretConfig: `${ELASTIC_DOCS}reference/kibana/connectors-kibana/email-action-type#exchange-client-secret`, From a40458518e03655644a5cadabc85d6e6e2d60e43 Mon Sep 17 00:00:00 2001 From: Florent Le Borgne Date: Tue, 13 Jan 2026 18:38:48 +0100 Subject: [PATCH 3/5] remove no longer used variable definition --- src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts b/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts index 933a11e830863..b6ff4244d0239 100644 --- a/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts +++ b/src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts @@ -29,7 +29,6 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D const ELASTICSEARCH_DOCS = `${ELASTIC_WEBSITE_URL}guide/en/elasticsearch/reference/${DOC_LINK_VERSION}/`; const ELASTICSEARCH_APIS = `${API_DOCS}doc/elasticsearch/`; const ELASTICSEARCH_SERVERLESS_APIS = `${API_DOCS}doc/elasticsearch-serverless/`; - const KIBANA_DOCS = `${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/`; const KIBANA_APIS = `${API_DOCS}doc/kibana/`; const KIBANA_SERVERLESS_APIS = `${API_DOCS}doc/serverless/`; const SECURITY_SOLUTION_DOCS = `${ELASTIC_WEBSITE_URL}guide/en/security/${DOC_LINK_VERSION}/`; From b8281d03e7b95fdc3a2c008d6483cf522213e6b8 Mon Sep 17 00:00:00 2001 From: Florent Le Borgne Date: Wed, 14 Jan 2026 12:48:48 +0100 Subject: [PATCH 4/5] update test to match updated URL --- .../actions/trial_license_complete_tier/check_privileges.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts b/x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts index a6c4ddc12916e..8ed8ebf1edf5f 100644 --- a/x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts +++ b/x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts @@ -89,7 +89,7 @@ export default ({ getService }: FtrProviderContext) => { `This rule's API key is unable to access all indices that match the ["${index[0]}"] pattern. To learn how to update and manage API keys, refer to https://www.elastic.co/guide/en/kibana/` ); expect(body?.execution_summary?.last_execution.message).to.contain( - '/alerting-setup.html#alerting-authorization.' + '/explore-analyze/alerts-cases/alerts/alerting-setup#alerting-authorization' ); await deleteUserAndRole(getService, ROLES.detections_admin); @@ -173,7 +173,7 @@ export default ({ getService }: FtrProviderContext) => { `This rule's API key is unable to access all indices that match the ["${index[0]}"] pattern. To learn how to update and manage API keys, refer to https://www.elastic.co/guide/en/kibana/` ); expect(body?.execution_summary?.last_execution.message).to.contain( - '/alerting-setup.html#alerting-authorization.' + '/explore-analyze/alerts-cases/alerts/alerting-setup#alerting-authorization' ); await deleteUserAndRole(getService, ROLES.detections_admin); From d58b041bc6908d515b628b1a363c520d4edbc887 Mon Sep 17 00:00:00 2001 From: Florent Le Borgne Date: Thu, 15 Jan 2026 09:32:26 +0100 Subject: [PATCH 5/5] Fix test to match updated URL --- .../trial_license_complete_tier/check_privileges.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts b/x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts index 8ed8ebf1edf5f..68a1b3b28bb20 100644 --- a/x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts +++ b/x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/detection_engine/actions/trial_license_complete_tier/check_privileges.ts @@ -86,10 +86,7 @@ export default ({ getService }: FtrProviderContext) => { // TODO: https://github.com/elastic/kibana/pull/121644 clean up, make type-safe expect(body?.execution_summary?.last_execution.message).to.contain( - `This rule's API key is unable to access all indices that match the ["${index[0]}"] pattern. To learn how to update and manage API keys, refer to https://www.elastic.co/guide/en/kibana/` - ); - expect(body?.execution_summary?.last_execution.message).to.contain( - '/explore-analyze/alerts-cases/alerts/alerting-setup#alerting-authorization' + `This rule's API key is unable to access all indices that match the ["${index[0]}"] pattern. To learn how to update and manage API keys, refer to https://www.elastic.co/docs/explore-analyze/alerts-cases/alerts/alerting-setup#alerting-authorization` ); await deleteUserAndRole(getService, ROLES.detections_admin); @@ -170,10 +167,7 @@ export default ({ getService }: FtrProviderContext) => { // TODO: https://github.com/elastic/kibana/pull/121644 clean up, make type-safe expect(body?.execution_summary?.last_execution.message).to.contain( - `This rule's API key is unable to access all indices that match the ["${index[0]}"] pattern. To learn how to update and manage API keys, refer to https://www.elastic.co/guide/en/kibana/` - ); - expect(body?.execution_summary?.last_execution.message).to.contain( - '/explore-analyze/alerts-cases/alerts/alerting-setup#alerting-authorization' + `This rule's API key is unable to access all indices that match the ["${index[0]}"] pattern. To learn how to update and manage API keys, refer to https://www.elastic.co/docs/explore-analyze/alerts-cases/alerts/alerting-setup#alerting-authorization` ); await deleteUserAndRole(getService, ROLES.detections_admin);