Skip to content

Commit 002f354

Browse files
committed
Remove rbac ctx from provisionerd
1 parent cc76887 commit 002f354

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

provisionerd/provisionerd.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import (
2222
"golang.org/x/xerrors"
2323

2424
"cdr.dev/slog"
25-
"github.com/coder/coder/coderd/database/dbauthz"
26-
"github.com/coder/coder/coderd/rbac"
2725
"github.com/coder/coder/coderd/tracing"
2826
"github.com/coder/coder/cryptorand"
2927
"github.com/coder/coder/provisionerd/proto"
@@ -95,8 +93,6 @@ func New(clientDialer Dialer, opts *Options) *Server {
9593
opts.Metrics = &mets
9694
}
9795

98-
// TODO: Scope down the permissions of the system context for provisionerd
99-
ctx := dbauthz.WithAuthorizeSystemContext(context.Background(), rbac.RolesAdminSystem())
10096
ctx, ctxCancel := context.WithCancel(ctx)
10197
daemon := &Server{
10298
opts: opts,

0 commit comments

Comments
 (0)