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

pomerium / pomerium / 34297129288
53%

Build:
DEFAULT BRANCH: main
Ran 09 Sep 2026 01:14AM UTC
Jobs 1
Files 715
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

09 Sep 2026 12:56AM UTC coverage: 52.732% (+0.08%) from 52.648%
34297129288

push

github

web-flow
mcp: keep ext_proc databroker access working across outbound connection reloads (#6740)

## Summary

The MCP ext_proc handler captured a databroker connection from the
controlplane's shared outbound connection cache once at startup. Any
later reload of that cache, triggered by the first stored
identity-manager error after the config gained databroker-delivered
settings, closed the captured connection and every upstream-token lookup
failed with `Canceled`, so the handler answered 502 until restart.

The handler now owns its outbound connection and rebuilds its databroker
client from every config change, and its storage resolves the client on
each use. `mcp.New` and the ext_proc constructor take a client getter;
proxy and authorize supply one backed by their current state, and the
ext_proc handler is built through a single constructor.

## Related issues

- #6730

## User Explanation

MCP routes no longer return 502 permanently after an outbound gRPC
connection reload. Restarting Pomerium is no longer required to recover.

## AI disclosure

Claude Code. The maintainer directed the refactor; Claude Code
implemented it and wrote the tests.

## Checklist

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

71 of 90 new or added lines in 6 files covered. (78.89%)

13 existing lines in 6 files now uncovered.

33658 of 63829 relevant lines covered (52.73%)

351.7 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
75.85
6.67% internal/mcp/upstream_auth.go
8
79.41
-2.22% proxy/proxy.go
1
61.32
-0.1% internal/controlplane/server.go

Coverage Regressions

Lines Coverage ∆ File
4
91.71
-0.55% config/config_source.go
3
91.3
0.0% pkg/fanout/receive.go
2
47.17
0.45% internal/databroker/server_clustered_follower.go
2
85.19
-0.67% pkg/databrokerutil/syncer.go
1
61.32
-0.1% internal/controlplane/server.go
1
75.85
6.67% internal/mcp/upstream_auth.go
Jobs
ID Job ID Ran Files Coverage
1 34297129288.1 09 Sep 2026 01:14AM UTC 715
52.73
GitHub Action Run
Source Files on build 34297129288
  • Tree
  • List 715
  • Changed 17
  • Source Changed 7
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34297129288
  • 2bc86321 on github
  • Prev Build on main (#34292384051)
  • Next Build on main (#34383428224)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc