Task · TSO-0007

Make the default Prometheus listener safe and scrapeable

Description

Enabling Prometheus currently retains the wildcard :2112 listener. Tokenless requests then validate with a warning but return HTTP 403, so the smallest apparent opt-in starts successfully and cannot be scraped. Make the minimal local opt-in safe and useful without weakening network-reachable authentication.

Acceptance Criteria

Definition of Done

Implementation Plan

Implement the frozen loopback listener default and auth matrix test-first; regenerate config and Helm references; verify focused and repository Go gates.

Implementation Notes

Implemented and locally validated in bundled pause snapshot 2cf46446d5c6a7a30ea6f7d0c54d61ec9889d522. Emergency stop occurred before the final clean SECURITY verdict, exact-head CI, and live scrape proof. Resume by rerunning the read-only security review on this exact tree, then exact-head CI and live verification.

Final evidence: SECURITY CLEAN on the accumulated source diff; integrated GATE passed at 538761804dba35e1f513cfc9848668b594aaa131; exact-head CI run 33047209645 succeeded. The exact image ran on the live deployment host with a loopback-only listener, authenticated GET /metrics returned 200, and the sentinel was present.

Final Summary

Safe loopback defaults, fail-closed remote exposure, effective-token Helm validation, and auth tests are committed in 2cf46446d5c6a7a30ea6f7d0c54d61ec9889d522; parked pending final security, CI, and live proof.

Completion: verified by clean security review, full gate, exact-head CI, and live authenticated scrape.

References

View the source file on GitHub