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

Abierto
#2,063 0 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@Wikid82 ya está trabajando en esto.

Desde el 26/11/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.

Lenguaje dominante
Go
Estrellas
17
Forks
2
Merge medio
1 h 42 min
PR fusionados (30 d)
173

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Wikid82/Charon

Todos los issues de Wikid82/Charon

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.