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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
main← Head:#3105📝 Commits (1)
a6469e6Fix 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
hcHealthis stored asunknown.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 + unknownbecomedegraded.This change ignores
unknowntarget 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->healthyhealthy + unhealthy + unknown->degradedunhealthy + unhealthy + unknown->unhealthyunknown + unknown->unknown🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.