Skip to content

Commit

Permalink
feat: remove RBAC middleware checks on playbook controllers
Browse files Browse the repository at this point in the history
rely on ABAC check

[skip ci]
  • Loading branch information
adityathebe committed Dec 31, 2024
1 parent 617305a commit d74e2ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playbook/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ func RegisterRoutes(e *echo.Echo) {
}, rbac.Authorization(policy.ObjectMonitor, policy.ActionRead))

runGroup := playbookGroup.Group("/run")
runGroup.POST("", HandlePlaybookRun, rbac.Playbook(policy.ActionPlaybookRun))
runGroup.POST("", HandlePlaybookRun)
runGroup.GET("/:id", HandleGetPlaybookRun, rbac.Playbook(policy.ActionRead))
runGroup.POST("/approve/:run_id", HandlePlaybookRunApproval, rbac.Playbook(policy.ActionPlaybookApprove))
runGroup.POST("/approve/:run_id", HandlePlaybookRunApproval)
}

type RunResponse struct {
Expand Down

0 comments on commit d74e2ff

Please sign in to comment.