mirror of
https://github.com/fosrl/newt.git
synced 2026-05-06 16:09:02 -05:00
[GH-ISSUE #308] Newt keeps performing healthchecks after Public resource is deleted #850
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 @mprokopiev on GitHub (Mar 13, 2026).
Original GitHub issue: https://github.com/fosrl/newt/issues/308
Describe the Bug
Not sure if this one is Newt or Pangolin though likely Pangolin should instruct Newt not to ping the public resource. Anyways, I noticed Newt keeps performing healthchecks for the resource, which was already deleted hours ago. Newt stops healthchecks after the restart.
Environment
To Reproduce
Expected Behavior
Healthcheck must stop after deleting the public resource
@github-actions[bot] commented on GitHub (Mar 28, 2026):
This issue has been automatically marked as stale due to 14 days of inactivity. It will be closed in 14 days if no further activity occurs.
@LaurenceJJones commented on GitHub (Apr 10, 2026):
Moved to Newt repo, as Newt should get the call to remove the proxied resource, so need to check if it also taps into the healthcheck
@LaurenceJJones commented on GitHub (Apr 10, 2026):
Investigated both Newt + Pangolin sides for
#308(healthchecks continue after resource delete).Findings
newt/synchad reconciliation logic commented out (e68b656: “Temp lets ignore the sync messages”), including:healthMonitor.SyncTargets(syncData.HealthCheckTargets)server/routers/resource/deleteResource.ts(remove flow commented)server/routers/target/deleteTarget.ts(remove flow commented)removeTargets()that already sends:newt/{tcp|udp}/removenewt/healthcheck/remove(with healthcheck target IDs)but those delete routes are not calling it right now.
proxyTargetstargetsPotential actions
removeTargets(...)calls in Pangolin delete handlers forsite.type === "newt"(using current signature withnewt.version).targetsvsproxyTargets) so reconciliation works.@oschwartz10612
@gravis commented on GitHub (Apr 11, 2026):
Can confirm I'm seeing this as well.
Environment