mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-08 21:59:09 -05:00
[PR #1971] [MERGED] feat(healthcheck): add SNI support for target healthchecks #4732
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?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/1971
Author: @water-sucks
Created: 12/4/2025
Status: ✅ Merged
Merged: 12/4/2025
Merged by: @oschwartz10612
Base:
dev← Head:add-tls-server-name-to-health-check-fields📝 Commits (2)
f33be14feat(schema): add TLS server name column to target healthcheck tablesca9273cfeat(healthcheck): add SNI input field to target healthcheck config📊 Changes
11 files changed (+72 additions, -15 deletions)
View changed files
📝
messages/en-US.json(+2 -0)📝
server/db/pg/schema/schema.ts(+2 -1)📝
server/db/sqlite/schema/schema.ts(+2 -1)📝
server/routers/newt/handleNewtRegisterMessage.ts(+4 -2)📝
server/routers/newt/targets.ts(+2 -1)📝
server/routers/target/createTarget.ts(+3 -1)📝
server/routers/target/listTargets.ts(+1 -0)📝
server/routers/target/updateTarget.ts(+3 -1)📝
src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx(+8 -3)📝
src/app/[orgId]/settings/resources/create/page.tsx(+9 -3)📝
src/components/HealthCheckDialog.tsx(+36 -2)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
While an SNI proxy already exists for configured targets themselves, this is not the case for sending periodic requests to targets' healthcheck endpoints.
This PR adds a field to the target healthcheck settings to specify an explicit SNI header for target healthcheck requests.
Merging this PR requires https://github.com/fosrl/newt/pull/185 to be merged alongside it; as such, I'm not sure how the process goes for coordinating new behavior between Pangolin and Newt, but I believe that older versions of Newt would simply not support this field and silently ignore it since it won't get parsed out of the JSON response.
How to test?
Fill in the SNI field for a given target healthcheck and make sure that the downstream provider receives/proxies the client hello correctly as specified by the configured target healthcheck settings.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.