From da5e4c9fc9b3682f220d8d2dd32474bb8ead4c9f Mon Sep 17 00:00:00 2001 From: Valentin Crettaz Date: Fri, 27 Dec 2024 11:33:25 +0100 Subject: [PATCH] Make monitoring collection API public again --- .../server/routes/api/v1/dynamic_route/get_metrics_by_type.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 95e1770826d6f..2d94f526ecb4c 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 @@ -37,7 +37,7 @@ export function registerDynamicRoute({ { path: `${MONITORING_COLLECTION_BASE_PATH}/{type}`, options: { - access: 'internal', + access: 'public', authRequired: true, tags: ['api'], // ensures that unauthenticated calls receive a 401 rather than a 302 redirect to login page },