Skip to content

feat(deployment-status): tunnel TLS probe through HTTP proxy#326

Open
hiephm wants to merge 1 commit into
fabriziosalmi:mainfrom
hiephm:feat/tls-probe-http-proxy
Open

feat(deployment-status): tunnel TLS probe through HTTP proxy#326
hiephm wants to merge 1 commit into
fabriziosalmi:mainfrom
hiephm:feat/tls-probe-http-proxy

Conversation

@hiephm

@hiephm hiephm commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

The dashboard deployment-status probe opened a raw socket to :443, which ignores HTTPS_PROXY. On a host that can only reach the internet via an outbound HTTP proxy this always reported "Backend: Unreachable" even when the target was up (the browser fallback, which uses the system proxy, succeeded).

Honour HTTPS_PROXY/https_proxy and NO_PROXY: when a proxy applies, tunnel the TCP leg with HTTP CONNECT and run the TLS handshake over the tunnel, so the real peer certificate is still compared. Falls back to the original direct connection when no proxy applies. Supports basic proxy auth from the proxy URL. Pure stdlib, no new dependency.

The dashboard deployment-status probe opened a raw socket to <domain>:443,
which ignores HTTPS_PROXY. On a host that can only reach the internet via an
outbound HTTP proxy this always reported "Backend: Unreachable" even when the
target was up (the browser fallback, which uses the system proxy, succeeded).

Honour HTTPS_PROXY/https_proxy and NO_PROXY: when a proxy applies, tunnel the
TCP leg with HTTP CONNECT and run the TLS handshake over the tunnel, so the
real peer certificate is still compared. Falls back to the original direct
connection when no proxy applies. Supports basic proxy auth from the proxy URL.
Pure stdlib, no new dependency.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants