We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89bae7e commit bcdc08cCopy full SHA for bcdc08c
coderd/coderd.go
@@ -413,7 +413,8 @@ func New(options *Options) *API {
413
414
if options.HealthcheckFunc == nil {
415
options.HealthcheckFunc = func(ctx context.Context, apiKey string) *healthcheck.Report {
416
- return healthcheck.Run(ctx, &healthcheck.ReportOptions{
+ authCtx := dbauthz.AsSystemRestricted(ctx) //nolint:gocritic // internal function
417
+ return healthcheck.Run(authCtx, &healthcheck.ReportOptions{
418
Database: healthcheck.DatabaseReportOptions{
419
DB: options.Database,
420
Threshold: options.DeploymentValues.Healthcheck.ThresholdDatabase.Value(),
0 commit comments