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

Đang mở
#2,063 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Wikid82 đang làm issue này rồi.

Từ ngày 26/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
Go
Star
17
Fork
2
Merge trung bình
1 giờ 42 phút
Pull request đã merge (30 ngày)
173

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Wikid82/Charon

Tất cả issue của Wikid82/Charon

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.