From 34c58606fc9eda4167059b7f76c4922aabf1da87 Mon Sep 17 00:00:00 2001 From: consulthys Date: Fri, 27 Dec 2024 11:21:52 +0100 Subject: [PATCH] Added specific reasons why authorization is disabled. --- .../server/routes/api/v1/dynamic_route/get_metrics_by_type.ts | 2 +- .../server/routes/api/v1/prometheus/get_metrics.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/platform/plugins/private/monitoring_collection/server/routes/api/v1/dynamic_route/get_metrics_by_type.ts b/x-pack/platform/plugins/private/monitoring_collection/server/routes/api/v1/dynamic_route/get_metrics_by_type.ts index 0bc0bc5ed0803..0c424ec3ce319 100644 --- a/x-pack/platform/plugins/private/monitoring_collection/server/routes/api/v1/dynamic_route/get_metrics_by_type.ts +++ b/x-pack/platform/plugins/private/monitoring_collection/server/routes/api/v1/dynamic_route/get_metrics_by_type.ts @@ -39,7 +39,7 @@ export function registerDynamicRoute({ security: { authz: { enabled: false, - reason: 'This route is opted out from authorization', + reason: 'This route is opted out from authorization because it is only retrieving the ES cluster UUID', }, }, options: { diff --git a/x-pack/platform/plugins/private/monitoring_collection/server/routes/api/v1/prometheus/get_metrics.ts b/x-pack/platform/plugins/private/monitoring_collection/server/routes/api/v1/prometheus/get_metrics.ts index a783e6096b52b..bf71dc1e2f31a 100644 --- a/x-pack/platform/plugins/private/monitoring_collection/server/routes/api/v1/prometheus/get_metrics.ts +++ b/x-pack/platform/plugins/private/monitoring_collection/server/routes/api/v1/prometheus/get_metrics.ts @@ -23,7 +23,7 @@ export function registerV1PrometheusRoute({ security: { authz: { enabled: false, - reason: 'This route is opted out from authorization', + reason: 'This route is opted out from authorization because it is not interacting with ES at all', }, }, options: {