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

pomerium / pomerium / 22503580043
45%

Build:
DEFAULT BRANCH: main
Ran 27 Feb 2026 09:15PM UTC
Jobs 1
Files 683
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

27 Feb 2026 08:59PM UTC coverage: 44.837% (+0.03%) from 44.808%
22503580043

push

github

web-flow
mcp: add PRM path-prefix validation and DCR fallback option (#6153)

## Summary

- Replace strict `normalizeResourceURL()` exact matching with
`checkResourceAllowed()` path-prefix validation, ported from the [MCP
TypeScript SDK](https://github.com/modelcontextprotocol/typescript-sdk).
Same origin (scheme+host+port, case-insensitive per RFC 3986) required,
plus PRM resource path must be a prefix of the upstream server URL path.
Paths are cleaned (`path.Clean`) to prevent traversal bypasses.
- Add `WithAllowDCRFallback(true)` option: when the upstream AS does not
support `client_id_metadata_document`, allows `runUpstreamOAuthSetup` to
return an empty `ClientID` with `RegistrationEndpoint` populated, so
callers can fall back to RFC 7591 DCR.
- Propagate `RegistrationEndpoint` from AS metadata through
`discoveryResult`.

## Related issues

- ENG-3592

## User Explanation

<!-- No user-facing changes -->

## Checklist

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

62 of 78 new or added lines in 1 file covered. (79.49%)

24 existing lines in 7 files now uncovered.

33770 of 75317 relevant lines covered (44.84%)

116.49 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
16
85.16
-2.05% internal/mcp/upstream_oauth_setup.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
92.78
-1.11% internal/fileutil/watcher.go
2
90.91
0.0% pkg/fanout/receive.go
2
71.7
-0.75% pkg/ssh/channel.go
2
88.08
-0.44% pkg/storage/postgres/postgres.go
4
74.26
-0.89% internal/databroker/config_source.go
4
77.03
-2.7% pkg/grpcutil/client_manager.go
8
91.72
-1.79% pkg/ssh/policy_index_inmemory.go
Jobs
ID Job ID Ran Files Coverage
1 22503580043.1 27 Feb 2026 09:15PM UTC 683
44.84
GitHub Action Run
Source Files on build 22503580043
  • Tree
  • List 683
  • Changed 15
  • Source Changed 1
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22503580043
  • 3e41784f on github
  • Prev Build on main (#22503440032)
  • Next Build on main (#22505829558)
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