Task · TSO-0002.01

Harden ingress and local HTTP boundaries

Description

Remediate the six scan findings in webhook, streaming, Prometheus, and pprof request handling while preserving documented tokenless loopback and authenticated modes.

Acceptance Criteria

Definition of Done

Implementation Plan

Independently trace the six findings against current source, then use TDD per finding at the narrowest shared request-handling boundary. Preserve authenticated and supported tokenless loopback behavior. Run focused package checks before the integrated gate.

Resume only to clear the shared full-suite workflow-contract gate; no ingress implementation changes.

Implementation Notes

All ingress/local HTTP regression tests pass. Final go test -race ./… is blocked only by unchanged internal/ci workflow-contract assertions outside this lane; all packages except internal/ci pass.

Shared workflow-contract blocker cleared: full build, vet, race suite, lint, and actionlint passed on 2026-08-25.

Final Summary

Hardened tokenless webhook and Prometheus request identity, bounded Prometheus gathers, webhook batches, compressed wire input, and pprof requests; focused and repository-wide affected-package race tests pass.

The complete repository gate now passes.

View the source file on GitHub