mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: remove rbac psuedo resources, add custom verbs (#13276)
Removes our pseudo rbac resources like `WorkspaceApplicationConnect` in favor of additional verbs like `ssh`. This is to make more intuitive permissions for building custom roles. The source of truth is now `policy.go`
This commit is contained in:
@ -221,7 +221,7 @@ func NewOptions(t testing.TB, options *Options) (func(http.Handler), context.Can
|
||||
}
|
||||
|
||||
if options.Authorizer == nil {
|
||||
defAuth := rbac.NewCachingAuthorizer(prometheus.NewRegistry())
|
||||
defAuth := rbac.NewStrictCachingAuthorizer(prometheus.NewRegistry())
|
||||
if _, ok := t.(*testing.T); ok {
|
||||
options.Authorizer = &RecordingAuthorizer{
|
||||
Wrapped: defAuth,
|
||||
|
Reference in New Issue
Block a user