Skip to content

Commit bcfacec

Browse files
committed
sni-router: clarify fronting-loop trigger is DNS, not name equality
1 parent 88a0e2c commit bcfacec

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

contrib/sni-router/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ In this setup that hostname resolves back to **this** server, so mtg's
6767
fronting dial would hit HAProxy on `:443`, HAProxy would see the SNI
6868
matching the secret and route the connection back to mtg → loop.
6969

70+
The trigger is DNS, not name equality: the loop reproduces whenever
71+
the secret's hostname resolves to this host, regardless of how it
72+
relates to the domain Caddy serves (same name, subdomain, parent, or
73+
unrelated). In an SNI-router deployment the secret's hostname has to
74+
point here for clients to reach mtg in the first place, so the loop
75+
is the default state unless mtg is steered away from HAProxy.
76+
7077
To break the loop, `mtg-config.toml` pins the fronting target to
7178
Caddy's container address directly:
7279

0 commit comments

Comments
 (0)