Skip to content

Commit bcdc08c

Browse files
committed
dbauthz
1 parent 89bae7e commit bcdc08c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/coderd.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,8 @@ func New(options *Options) *API {
413413

414414
if options.HealthcheckFunc == nil {
415415
options.HealthcheckFunc = func(ctx context.Context, apiKey string) *healthcheck.Report {
416-
return healthcheck.Run(ctx, &healthcheck.ReportOptions{
416+
authCtx := dbauthz.AsSystemRestricted(ctx) //nolint:gocritic // internal function
417+
return healthcheck.Run(authCtx, &healthcheck.ReportOptions{
417418
Database: healthcheck.DatabaseReportOptions{
418419
DB: options.Database,
419420
Threshold: options.DeploymentValues.Healthcheck.ThresholdDatabase.Value(),

0 commit comments

Comments
 (0)