mirror of
https://github.com/coder/coder.git
synced 2025-07-10 23:53:15 +00:00
chore: add x-authz-checks debug header when running in dev mode (#16873)
This commit is contained in:
@ -71,6 +71,9 @@ func New(ctx context.Context, options *Options) (_ *API, err error) {
|
||||
}
|
||||
if options.Options.Authorizer == nil {
|
||||
options.Options.Authorizer = rbac.NewCachingAuthorizer(options.PrometheusRegistry)
|
||||
if buildinfo.IsDev() {
|
||||
options.Authorizer = rbac.Recorder(options.Authorizer)
|
||||
}
|
||||
}
|
||||
if options.ReplicaErrorGracePeriod == 0 {
|
||||
// This will prevent the error from being shown for a minute
|
||||
|
Reference in New Issue
Block a user