• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 21396017644

27 Jan 2026 11:49AM UTC coverage: 60.135% (-0.04%) from 60.175%
21396017644

push

github

web-flow
Add CLI flags for header forward configuration (#3452)

Add --remote-forward-headers and --remote-forward-headers-secret flags
to both thv proxy and thv run commands for configuring header injection
to remote MCP servers.

Changes:
- header_flags.go: Shared parsing logic for header flags and secrets
- proxy.go: Add flags and wire middleware into proxy command
- run_flags.go: Add flags to RunFlags struct and builder options
- header_forward.go: Add HeaderForwardMiddlewareName constant

The --remote-forward-headers-secret option resolves values from the
ToolHive secrets manager, keeping sensitive data out of process listings
and RunConfig persistence.

Related: #3316

63 of 160 new or added lines in 3 files covered. (39.38%)

10 existing lines in 5 files now uncovered.

38326 of 63733 relevant lines covered (60.14%)

77.87 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.81
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc