Skip to content

Commit

Permalink
privilege requirement for session_view and kubernetes dashboard routes
Browse files Browse the repository at this point in the history
  • Loading branch information
opauloh committed Nov 13, 2024
1 parent 234681b commit ded55a7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
3 changes: 1 addition & 2 deletions x-pack/plugins/kubernetes_security/server/routes/count.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
3 changes: 1 addition & 2 deletions x-pack/plugins/session_view/server/routes/alerts_route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ export const registerAlertsRoute = (
version: '1',
security: {
authz: {
enabled: false,
reason: 'This route is opted out from authorization',
requiredPrivileges: ['securitySolution'],
},
},
validate: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
3 changes: 1 addition & 2 deletions x-pack/plugins/session_view/server/routes/io_events_route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ export const registerProcessEventsRoute = (
version: '1',
security: {
authz: {
enabled: false,
reason: 'This route is opted out from authorization',
requiredPrivileges: ['securitySolution'],
},
},
validate: {
Expand Down

0 comments on commit ded55a7

Please sign in to comment.