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

pomerium / pomerium / 25144406852
45%

Build:
DEFAULT BRANCH: main
Ran 30 Apr 2026 02:49AM UTC
Jobs 1
Files 696
Run time 1min
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

30 Apr 2026 02:35AM UTC coverage: 45.47% (+0.001%) from 45.469%
25144406852

push

github

web-flow
mcp: strip default ports when comparing PRM resource to upstream URL (#6309)

## Summary

When the ingress controller emits an upstream URL with an explicit
`:443` (its standard form for ExternalName services), the PRM resource
check fails origin equality against a canonical PRM resource that omits
the port. As a result, every Kubernetes-routed MCP server backed by an
HTTPS `ExternalName` service falls through to "no upstream OAuth" and
returns 401.

Strip the scheme's default port (RFC 3986 §6.2.3) before comparing
scheme+host in `checkResourceAllowed`, and apply the same
canonicalization in `originOf` so the resource identifier used as the
OAuth audience is canonical. Path-prefix matching handles the residual
`mcp_server_path` case once the port mismatch is resolved.

## Related issues

-
[ENG-3963](https://linear.app/pomerium/issue/ENG-3963/pomerium-mcp-prm-resource-check-fails-on-default-ports-every-https)

## Checklist

- [x] reference any related issues
- [x] updated unit tests
- [x] add appropriate label (\`bug\`)
- [ ] ready for review

26 of 26 new or added lines in 1 file covered. (100.0%)

27 existing lines in 7 files now uncovered.

35565 of 78216 relevant lines covered (45.47%)

114.33 hits per line

Coverage Regressions

Lines Coverage ∆ File
8
91.72
-1.79% pkg/ssh/policy_index_inmemory.go
7
72.3
-4.73% pkg/grpcutil/client_manager.go
4
74.26
-1.18% internal/databroker/config_source.go
3
87.75
0.0% config/config_source.go
2
49.19
0.36% internal/databroker/server_clustered_follower.go
2
85.67
-0.62% pkg/grpc/databroker/syncer.go
1
62.08
-0.24% internal/controlplane/server.go
Jobs
ID Job ID Ran Files Coverage
1 25144406852.1 30 Apr 2026 02:49AM UTC 696
45.47
GitHub Action Run
Source Files on build 25144406852
  • Tree
  • List 696
  • Changed 12
  • Source Changed 1
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25144406852
  • b6db4391 on github
  • Prev Build on main (#25123230853)
  • Next Build on main (#25169235315)
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