Skip to content

Commit

Permalink
updating security.authz for SessionView and Kubernetes Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
opauloh committed Nov 14, 2024
1 parent 03b837c commit 4ab648c
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 13 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
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ export const registerAlertStatusRoute = (
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 @@ -25,7 +25,7 @@ export const registerGetTotalIOBytesRoute = (router: IRouter, logger: Logger) =>
security: {
authz: {
enabled: false,
reason: 'This route is opted out from authorization',
reason: `This route delegates authorization to Elasticsearch and it's not tied to a Kibana privilege.`,
},
},
validate: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const registerIOEventsRoute = (router: IRouter, logger: Logger) => {
security: {
authz: {
enabled: false,
reason: 'This route is opted out from authorization',
reason: `This route delegates authorization to Elasticsearch and it's not tied to a Kibana privilege.`,
},
},
validate: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const registerProcessEventsRoute = (
security: {
authz: {
enabled: false,
reason: 'This route is opted out from authorization',
reason: `This route delegates authorization to Elasticsearch and it's not tied to a Kibana privilege.`,
},
},
validate: {
Expand Down

0 comments on commit 4ab648c

Please sign in to comment.