VULN-176088: Allowlist debug endpoints on the metrics server

## Summary

The metrics server mounted all of `http.DefaultServeMux` under `/debug/` and blocked only `/debug/pprof/cmdline` (TUN-10513). Any imported package can register handlers on the default mux, and `expvar` (pulled in by `prometheus/client_golang`) serves `/debug/vars` with a `cmdline` variable containing `os.Args`, including `--token` / `--credentials-contents` when they are passed on the command line.

This MR replaces the blocklist with an explicit allowlist of debug handlers.
This commit is contained in:
João "Pisco" Fernandes 2026-10-23 10:19:17 +01:00
commit 8cc81c7fcc
3 changed files with 216 additions and 58 deletions