Repository navigation
Commit ef45fe1
authored
fix(transport): disable DNS rebinding protection + bump to 1.0.107 (#123)
The 1.0.106 canary on mcp2 returned HTTP 421 Invalid Host header for all
proxied traffic. mcp 1.23.0 auto-enables transport_security with a
port-wildcard allowlist (127.0.0.1:*, localhost:*, [::1]:*). The
internal nginx upstream uses proxy_set_header Host with the bare host
variable, which strips the port — so the forwarded Host (127.0.0.1)
does not match the allowlist patterns and every request is rejected.
The protection is irrelevant for a loopback-only service that external
clients cannot reach. Disable it explicitly via
transport_security.enable_dns_rebinding_protection=False so the
allowlist constraint stops blocking proxied traffic.
Direct curl on mcp2 confirms: with the disable applied locally,
Host: 127.0.0.1 (no port) returns 200; without it, 421.1 parent 893ba7b commit ef45fe1
4 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
344 | 353 | | |
345 | 354 | | |
346 | 355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments