From d6bed9afe251201625a681b617de2b3019540fbe Mon Sep 17 00:00:00 2001 From: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 30 Oct 2024 13:08:23 +0000 Subject: [PATCH] [Authz] Migrated unauthorized routes owned by obs-ai-assistant,security-solution --- .../data_usage/server/routes/internal/data_streams.ts | 6 ++++++ .../data_usage/server/routes/internal/usage_metrics.ts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/x-pack/plugins/data_usage/server/routes/internal/data_streams.ts b/x-pack/plugins/data_usage/server/routes/internal/data_streams.ts index 5b972f57984f..31765ffe39c9 100644 --- a/x-pack/plugins/data_usage/server/routes/internal/data_streams.ts +++ b/x-pack/plugins/data_usage/server/routes/internal/data_streams.ts @@ -23,6 +23,12 @@ export const registerDataStreamsRoute = ( .addVersion( { version: '1', + security: { + authz: { + enabled: false, + reason: 'This route is opted out from authorization', + }, + }, validate: { request: {}, response: { diff --git a/x-pack/plugins/data_usage/server/routes/internal/usage_metrics.ts b/x-pack/plugins/data_usage/server/routes/internal/usage_metrics.ts index eeb7b4441364..cce70197fb01 100644 --- a/x-pack/plugins/data_usage/server/routes/internal/usage_metrics.ts +++ b/x-pack/plugins/data_usage/server/routes/internal/usage_metrics.ts @@ -24,6 +24,12 @@ export const registerUsageMetricsRoute = ( .addVersion( { version: '1', + security: { + authz: { + enabled: false, + reason: 'This route is opted out from authorization', + }, + }, validate: { request: { body: UsageMetricsRequestSchema,