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

pomerium / pomerium / 22155682528
45%

Build:
DEFAULT BRANCH: main
Ran 18 Feb 2026 08:18PM UTC
Jobs 1
Files 671
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Feb 2026 08:06PM UTC coverage: 44.356% (+0.002%) from 44.354%
22155682528

push

github

web-flow
mcp: pass upstream host via route context metadata and extend HostInfo (#6119)

## Summary

Establish the routing plumbing needed for ext_proc to know the actual
upstream hostname. Envoy rewrites `:authority` to the upstream host
*after* ext_proc processes request headers, so ext_proc must receive the
real upstream host via route context metadata from ext_authz.

- Add `FieldUpstreamHost` constant and pass upstream hostname from
ext_authz → ext_proc via route context metadata
- Extend `ServerHostInfo` with `UpstreamURL` (built from policy `To`
config) and `RouteID` fields for upstream discovery and token storage
keying
- Add tests for `UpstreamURL` construction with and without server paths

## Related issues

-
[ENG-3590](https://linear.app/pomerium/issue/ENG-3590/mcp-pass-upstream-host-metadata-to-ext-proc-and-extend-hostinfo)

## User Explanation

No user-facing changes. Internal routing metadata addition.

## Checklist

- [x] reference any related issues
- [x] updated unit tests
- [x] add appropriate label (`enhancement`, `bug`, `breaking`,
`dependencies`, `ci`)
- [ ] ready for review

25 of 27 new or added lines in 3 files covered. (92.59%)

31 existing lines in 7 files now uncovered.

32640 of 73587 relevant lines covered (44.36%)

116.57 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
62.18
3.48% internal/mcp/host_info.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
58.88
-0.25% internal/controlplane/server.go
1
75.41
0.0% pkg/storage/postgres/registry.go
2
48.82
0.18% internal/databroker/server_clustered_follower.go
4
77.03
-2.7% pkg/grpcutil/client_manager.go
4
88.08
-0.88% pkg/storage/postgres/postgres.go
9
79.91
0.0% pkg/ssh/manager.go
10
75.99
-2.37% pkg/storage/postgres/backend.go
Jobs
ID Job ID Ran Files Coverage
1 22155682528.1 18 Feb 2026 08:18PM UTC 671
44.36
GitHub Action Run
Source Files on build 22155682528
  • Tree
  • List 671
  • Changed 14
  • Source Changed 3
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22155682528
  • 23edaa55 on github
  • Prev Build on main (#22152820881)
  • Next Build on main (#22159884725)
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