From ea6f0221120be4c4a03870f1bf98ff06cac744ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Untersch=C3=BCtz?= Date: Sun, 22 Nov 2026 00:18:02 +0100 Subject: [PATCH] fix(config): reject an empty checker region UPTIME_CHECKER_REGION= passed the required check and started a checker that no monitor could ever be assigned to. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3 --- internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index 3705616..a01ceb2 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -72,7 +72,7 @@ func (a API) Validate() error { type Checker struct { Common - Region string `env:"UPTIME_CHECKER_REGION,required"` + Region string `env:"UPTIME_CHECKER_REGION,required,notEmpty"` HealthListen string `env:"UPTIME_CHECKER_HEALTH_LISTEN" envDefault:":8081"` }