mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-15 21:31:24 -05:00
[GH-ISSUE #3314] Health-check target silently dropped (stuck unhealthy) when hcHostname is null — no validation error #39158
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @davedavedavenm on GitHub (Jun 21, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/3314
Version: Pangolin 1.19.2 (
fosrl/pangolin:ee-latest), newt 1.13.0Summary: A target created with
hcEnabled: truebut withouthcHostnameis accepted by the API with no error, but the server then filters it out ofhealthCheckTargets(so newt never health-checks it) and the target staysunhealthyindefinitely. There is no signal to the operator that the target is mis-configured.Source (
server.mjs, healthCheckTargets build):Repro: create a target via the API with
hcEnabled: true, validhcPath/hcPort/hcInterval, but nohcHostname. The target reportsunhealthyforever; newt'snewt/wg/connectmessage showshealthCheckTargets: []. SettinghcHostname(e.g. to the target IP) immediately fixes it and the target goes healthy.Expected: when
hcEnabled: true, either reject the create/update with a clear400ifhcHostnameis missing, or defaulthcHostnameto the target IP. Currently it fails silently and is very hard to diagnose.