Validate standalone.health_check_timeout as a duration at config load #663

Open
opened 2026-08-14 14:20:35 +00:00 by the.auditor · 0 comments
Owner

StandaloneConfig.HealthCheckTimeout (internal/config/config.go) is stored as an unvalidated string. A bad value (e.g. health_check_timeout: bogus) is only caught when the value is first parsed, which is deferred until the deploy flow in Phase 4. Validate it with time.ParseDuration during config load.

Ref: #661

`StandaloneConfig.HealthCheckTimeout` (internal/config/config.go) is stored as an unvalidated string. A bad value (e.g. `health_check_timeout: bogus`) is only caught when the value is first parsed, which is deferred until the deploy flow in Phase 4. Validate it with `time.ParseDuration` during config load. Ref: https://git.lan.thwap.org/thwap/thwap-pagesd/pulls/661
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/thwap-pagesd#663
No description provided.