[PR #3118] [MERGED] Fix public resource health with unknown WireGuard targets #20457

Closed
opened 2026-05-21 22:06:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/pangolin/pull/3118
Author: @Adityakk9031
Created: 5/20/2026
Status: Merged
Merged: 5/20/2026
Merged by: @oschwartz10612

Base: mainHead: #3105


📝 Commits (1)

  • a6469e6 Fix public resource health with unknown WireGuard targets

📊 Changes

1 file changed (+11 additions, -3 deletions)

View changed files

📝 server/lib/alerts/events/healthCheckEvents.ts (+11 -3)

📄 Description

Description

Fixes #3105.

Public resources were marked as degraded when a WireGuard target was added alongside healthy Newt targets. WireGuard targets do not report target health checks, so their hcHealth is stored as unknown.

The resource health aggregation previously treated any mixed state that was not all healthy, all unhealthy, or all unknown as degraded. That made healthy + healthy + unknown become degraded.

This change ignores unknown target health when at least one monitored target exists. Unknown targets remain neutral in the overall resource health calculation.

Expected behavior after this change:

  • healthy + healthy + unknown -> healthy
  • healthy + unhealthy + unknown -> degraded
  • unhealthy + unhealthy + unknown -> unhealthy
  • unknown + unknown -> unknown

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fosrl/pangolin/pull/3118 **Author:** [@Adityakk9031](https://github.com/Adityakk9031) **Created:** 5/20/2026 **Status:** ✅ Merged **Merged:** 5/20/2026 **Merged by:** [@oschwartz10612](https://github.com/oschwartz10612) **Base:** `main` ← **Head:** `#3105` --- ### 📝 Commits (1) - [`a6469e6`](https://github.com/fosrl/pangolin/commit/a6469e67a80469e5c779a7ff617759b9bd630a17) Fix public resource health with unknown WireGuard targets ### 📊 Changes **1 file changed** (+11 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `server/lib/alerts/events/healthCheckEvents.ts` (+11 -3) </details> ### 📄 Description ## Description Fixes #3105. Public resources were marked as degraded when a WireGuard target was added alongside healthy Newt targets. WireGuard targets do not report target health checks, so their `hcHealth` is stored as `unknown`. The resource health aggregation previously treated any mixed state that was not all healthy, all unhealthy, or all unknown as degraded. That made `healthy + healthy + unknown` become `degraded`. This change ignores `unknown` target health when at least one monitored target exists. Unknown targets remain neutral in the overall resource health calculation. Expected behavior after this change: - `healthy + healthy + unknown` -> `healthy` - `healthy + unhealthy + unknown` -> `degraded` - `unhealthy + unhealthy + unknown` -> `unhealthy` - `unknown + unknown` -> `unknown` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-21 22:06:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#20457