caddy/modules/caddyhttp
Matthew Holt fe69f5da2d caddyhttp: enforce bounded host metric labels on HTTPS
With per_host metrics, HTTPS servers automatically observed catch-all
hosts, and port/case variants of configured hosts produced distinct
labels. Require explicit observe_catchall_hosts for unconfigured hosts,
normalize the host label, and also collect hosts from subroutes, error
routes and named routes (scanned after handlers are provisioned).

Behavior change: unconfigured hosts on HTTPS servers are now labeled
"_other" unless observe_catchall_hosts is enabled.

Addresses scan report 457dcf090b421495.

Code written by GitHub Copilot (GPT-6.1 Sol, Claude Opus 5.5); reviewed by mholt.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-11 11:06:40 -07:00
..
caddyauth caddyauth: cache only successful password comparisons 2026-11-11 11:06:40 -07:00
encode
…
fileserver fileserver: hide the config directory when it is relative (#8398) 2026-11-10 14:56:52 +00:00
headers headers: compile dynamic replacement regexes once per operation 2026-11-11 11:06:40 -07:00
intercept
…
logging
…
map
…
proxyprotocol
…
push
…
requestbody
…
reverseproxy fastcgi: rewrite to index.php only if it exists (#8372) 2026-11-08 22:04:20 +00:00
rewrite caddyhttp: presize buffers in hot paths to reduce allocations (#7842) 2026-11-04 20:26:53 +00:00
standard
…
templates
…
timeouts
…
tracing
…
app.go caddyhttp: enforce bounded host metric labels on HTTPS 2026-11-11 11:06:40 -07:00
app_test.go
…
autohttps.go
…
autohttps_test.go
…
caddyhttp.go caddyhttp: presize buffers in hot paths to reduce allocations (#7842) 2026-11-04 20:26:53 +00:00
caddyhttp_bench_test.go caddyhttp: presize buffers in hot paths to reduce allocations (#7842) 2026-11-04 20:26:53 +00:00
caddyhttp_test.go
…
celmatcher.go
…
celmatcher_test.go
…
errors.go
…
errors_randstring_test.go
…
http2listener.go
…
httpredirectlistener.go
…
idletimeout.go caddyhttp: fix min_rate credit overflow on transfers over 9.2 GB (#8396) 2026-11-10 14:57:57 +00:00
idletimeout_test.go caddyhttp: fix min_rate credit overflow on transfers over 9.2 GB (#8396) 2026-11-10 14:57:57 +00:00
incremental.go
…
incremental_test.go
…
invoke.go
…
ip_matchers.go
…
ip_range.go
…
logging.go
…
logging_test.go
…
marshalers.go
…
matchers.go caddyhttp: presize buffers in hot paths to reduce allocations (#7842) 2026-11-04 20:26:53 +00:00
matchers_test.go fastcgi: reject Win 8.3 aliases and alt data streams paths (#8356) 2026-11-04 14:34:04 -05:00
metrics.go caddyhttp: enforce bounded host metric labels on HTTPS 2026-11-11 11:06:40 -07:00
metrics_test.go caddyhttp: enforce bounded host metric labels on HTTPS 2026-11-11 11:06:40 -07:00
replacer.go
…
replacer_test.go
…
responsematchers.go
…
responsematchers_test.go
…
responsewriter.go caddyhttp: detach streams at the server writer boundary (#8346) 2026-11-04 17:36:00 +10:00
responsewriter_test.go caddyhttp: detach streams at the server writer boundary (#8346) 2026-11-04 17:36:00 +10:00
routes.go
…
server.go caddyhttp: detach streams at the server writer boundary (#8346) 2026-11-04 17:36:00 +10:00
server_bench_test.go
…
server_test.go
…
staticerror.go
…
staticresp.go
…
staticresp_test.go
…
subroute.go
…
urlpatternmatcher.go
…
urlpatternmatcher_test.go
…
vars.go
…
vars_test.go
…