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

pomerium / pomerium / 22001581795
45%

Build:
DEFAULT BRANCH: main
Ran 13 Feb 2026 08:34PM UTC
Jobs 1
Files 670
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

13 Feb 2026 08:23PM UTC coverage: 44.385% (+0.04%) from 44.342%
22001581795

push

github

web-flow
mcp: add upstream MCP token storage (#6100)

## Summary

Add persistent databroker storage for OAuth tokens acquired from remote
MCP server authorization servers. Tokens are bound to `(user_id,
route_id, upstream_server)` and support basic CRUD operations.

- New `UpstreamMCPToken` protobuf message with composite key fields,
token fields, timestamps, and metadata
- `PutUpstreamMCPToken`, `GetUpstreamMCPToken`, `DeleteUpstreamMCPToken`
on `handlerStorage` interface
- Input validation rejects empty key components
- Indexed `user_id` and `route_id` for future bulk queries
- Fix pre-existing panic in `fieldToValue` for repeated proto fields

## Related issues

- ENG-3556

## User Explanation

No user-facing changes. This adds internal storage infrastructure for
upcoming MCP upstream token management.

## Checklist

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

69 of 83 new or added lines in 3 files covered. (83.13%)

26 existing lines in 5 files now uncovered.

32464 of 73142 relevant lines covered (44.38%)

117.06 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
70.62
0.06% internal/databroker/server_backend.go
2
62.99
0.59% pkg/storage/index.go
10
85.19
0.16% internal/mcp/storage.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.28
-0.36% internal/databroker/server_clustered_follower.go
10
79.7
-0.22% pkg/ssh/manager.go
12
87.75
-5.88% config/config_source.go
Jobs
ID Job ID Ran Files Coverage
1 22001581795.1 13 Feb 2026 08:34PM UTC 670
44.38
GitHub Action Run
Source Files on build 22001581795
  • Tree
  • List 670
  • Changed 15
  • Source Changed 3
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22001581795
  • ec40e8a6 on github
  • Prev Build on main (#22000245677)
  • Next Build on main (#22002134029)
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