Files
floci/docs/services
Priamo GermosenandJonathan Morley 3a0cce0188 fix(elbv2): route shared HTTPS to ALBs by server name (#9767)
With TLS on, Floci's TLS proxy holds floci.tls.aws-https-port (443 by
default) for AWS API calls and cfn-response callbacks, so an ALB HTTPS
listener on that port could not bind it and received no traffic, where
AWS serves it.

- an HTTPS listener on the proxy's port is served on loopback, and the
  proxy reads the ClientHello's SNI without terminating TLS and hands the
  connection to the listener that claims the name; Floci's own endpoint
  names, no SNI and unclaimed names stay with Floci
- the proxy waits for a whole ClientHello only while such a listener is
  served behind it, from one deadline armed by the first bytes, and sends
  anything else to Floci on its first bytes as before
- each proxied connection is pinned to the listener its ClientHello
  selected, and carries the client the proxy accepted it from, so targets
  see the client in X-Forwarded-For and X-Forwarded-Port names the
  listener's port
- the proxy and the embedded DNS server share one list of Floci's DNS
  suffixes
- a failing route lookup is logged at warn, and the connection goes to
  Floci

Refs #8613

Co-authored-by: Jonathan Morley <jonathanmorley@users.noreply.github.com>
2026-11-29 15:12:09 -04:00
..