feat(healthcheck): add SNI support for target healthchecks #565

Closed
opened 2026-04-05 17:20:43 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @water-sucks on 12/4/2025

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.

Screenshot 2025-12-03 at 23 27 49

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.

*Originally created by @water-sucks on 12/4/2025* ## 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. <img width="642" height="870" alt="Screenshot 2025-12-03 at 23 27 49" src="https://github.com/user-attachments/assets/258777c9-3769-47c8-bb16-12a15482c13f" /> 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.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#565