diff --git a/x-pack/plugins/kubernetes_security/server/routes/aggregate.ts b/x-pack/plugins/kubernetes_security/server/routes/aggregate.ts index e8a5b616cd6a8..4ddb828b68976 100644 --- a/x-pack/plugins/kubernetes_security/server/routes/aggregate.ts +++ b/x-pack/plugins/kubernetes_security/server/routes/aggregate.ts @@ -40,8 +40,7 @@ export const registerAggregateRoute = (router: IRouter, logger: Logger) => { version: '1', security: { authz: { - enabled: false, - reason: 'This route is opted out from authorization', + requiredPrivileges: ['securitySolution'], }, }, validate: { diff --git a/x-pack/plugins/kubernetes_security/server/routes/count.ts b/x-pack/plugins/kubernetes_security/server/routes/count.ts index 788c3ce4adb98..b73452e8e45fc 100644 --- a/x-pack/plugins/kubernetes_security/server/routes/count.ts +++ b/x-pack/plugins/kubernetes_security/server/routes/count.ts @@ -30,8 +30,7 @@ export const registerCountRoute = (router: IRouter, logger: Logger) => { version: '1', security: { authz: { - enabled: false, - reason: 'This route is opted out from authorization', + requiredPrivileges: ['securitySolution'], }, }, validate: { diff --git a/x-pack/plugins/kubernetes_security/server/routes/multi_terms_aggregate.ts b/x-pack/plugins/kubernetes_security/server/routes/multi_terms_aggregate.ts index 6eda8b3c9af2f..b4a0271b63edc 100644 --- a/x-pack/plugins/kubernetes_security/server/routes/multi_terms_aggregate.ts +++ b/x-pack/plugins/kubernetes_security/server/routes/multi_terms_aggregate.ts @@ -37,8 +37,7 @@ export const registerMultiTermsAggregateRoute = (router: IRouter, logger: Logger version: '1', security: { authz: { - enabled: false, - reason: 'This route is opted out from authorization', + requiredPrivileges: ['securitySolution'], }, }, validate: { diff --git a/x-pack/plugins/session_view/server/routes/alerts_route.ts b/x-pack/plugins/session_view/server/routes/alerts_route.ts index 8e6817c80d787..c875236989efe 100644 --- a/x-pack/plugins/session_view/server/routes/alerts_route.ts +++ b/x-pack/plugins/session_view/server/routes/alerts_route.ts @@ -38,8 +38,7 @@ export const registerAlertsRoute = ( version: '1', security: { authz: { - enabled: false, - reason: 'This route is opted out from authorization', + requiredPrivileges: ['securitySolution'], }, }, validate: { diff --git a/x-pack/plugins/session_view/server/routes/get_total_io_bytes_route.ts b/x-pack/plugins/session_view/server/routes/get_total_io_bytes_route.ts index bb9972804ed18..e2dcf34813cc5 100644 --- a/x-pack/plugins/session_view/server/routes/get_total_io_bytes_route.ts +++ b/x-pack/plugins/session_view/server/routes/get_total_io_bytes_route.ts @@ -24,8 +24,7 @@ export const registerGetTotalIOBytesRoute = (router: IRouter, logger: Logger) => version: '1', security: { authz: { - enabled: false, - reason: 'This route is opted out from authorization', + requiredPrivileges: ['securitySolution'], }, }, validate: { diff --git a/x-pack/plugins/session_view/server/routes/io_events_route.ts b/x-pack/plugins/session_view/server/routes/io_events_route.ts index 0f982cd1903ad..3956e5c3575b8 100644 --- a/x-pack/plugins/session_view/server/routes/io_events_route.ts +++ b/x-pack/plugins/session_view/server/routes/io_events_route.ts @@ -31,8 +31,7 @@ export const registerIOEventsRoute = (router: IRouter, logger: Logger) => { version: '1', security: { authz: { - enabled: false, - reason: 'This route is opted out from authorization', + requiredPrivileges: ['securitySolution'], }, }, validate: { diff --git a/x-pack/plugins/session_view/server/routes/process_events_route.ts b/x-pack/plugins/session_view/server/routes/process_events_route.ts index a9a491cd4c0da..df707b5a96a93 100644 --- a/x-pack/plugins/session_view/server/routes/process_events_route.ts +++ b/x-pack/plugins/session_view/server/routes/process_events_route.ts @@ -45,8 +45,7 @@ export const registerProcessEventsRoute = ( version: '1', security: { authz: { - enabled: false, - reason: 'This route is opted out from authorization', + requiredPrivileges: ['securitySolution'], }, }, validate: {