Hosts with an https forward scheme are proxied to the upstream over plain HTTP

オープン
#2,063 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Wikid82 がすでに取り組んでいます。

2026年11月26日 から。

評価

この issue はまだ評価されていません。

説明

backend bug caddy

What: A proxy host whose forward_scheme is https (for example one created by an import) appears to be proxied to its upstream over plain HTTP, because the Caddy config generator never reads the field.

Where: backend/internal/caddy/types.go (ReverseProxyHandler, ~line 164) and backend/internal/caddy/config.go (~lines 647 and 735) build the upstream dial address without using forward_scheme.

Evidence: found by code reading while planning the next proxy hardening PR; not yet reproduced with a running upstream. A repro would be an HTTPS-only backend on an imported host.

Severity: medium (functional; traffic the user expects to be encrypted to the backend is not).

Suggested approach: reproduce first, then set the transport TLS options for hosts with forward_scheme: https and add a golden test.

Found while planning follow-up work on the proxy forward target checks.

主要言語
Go
スター
17
フォーク
2
平均マージ
1時間 42分
マージ済み PR(30日)
173

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Wikid82/Charon のほかの issue

Wikid82/Charon の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。