From 2cb9b9b7d9864c1467a4c7cd5187b99f2a3da355 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Sat, 2 Nov 2024 03:05:24 +1100 Subject: [PATCH] [8.x] Unauthorized route migration for routes owned by security-threat-hunting-explore (#198339) (#198687) # Backport This will backport the following commits from `main` to `8.x`: - [Unauthorized route migration for routes owned by security-threat-hunting-explore (#198339)](https://github.com/elastic/kibana/pull/198339) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) --- .../server/routes/get_unallowed_field_values.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_unallowed_field_values.ts b/x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_unallowed_field_values.ts index 76f0827caaad2..9fb743d207d08 100644 --- a/x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_unallowed_field_values.ts +++ b/x-pack/plugins/ecs_data_quality_dashboard/server/routes/get_unallowed_field_values.ts @@ -19,6 +19,11 @@ export const getUnallowedFieldValuesRoute = (router: IRouter, logger: Logger) => .post({ path: GET_UNALLOWED_FIELD_VALUES, access: 'internal', + security: { + authz: { + requiredPrivileges: ['securitySolution'], + }, + }, }) .addVersion( {