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

pomerium / pomerium / 24363750164
52%

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

13 Apr 2026 07:54PM UTC coverage: 45.463% (+0.004%) from 45.459%
24363750164

push

github

web-flow
fix(identity): exclude AccessTokenAllowedAudiences from provider hash (#6263)

## Summary

- Routes with different `idp_access_token_allowed_audiences` but the
same IdP produced different provider IDs, forcing unnecessary re-logins
when users navigated between them
- `AccessTokenAllowedAudiences` is a per-route post-auth filtering
field, not a session identity field — it should not affect provider
identity
- One-line fix: exclude the field from `Provider.Hash()` alongside the
already-excluded `Id` field

## Test plan

- [x] Unit tests: 4 subtests on `Hash()` covering audience exclusion,
nil-vs-empty, and regression guard (`different ClientId → different
hash`)
- [x] Config integration test:
`TestPoliciesWithDifferentAudiencesShareProviderID` verifies
`GetIdentityProviderForPolicy` returns same provider ID with different
audiences
- [x] System integration test: `TestDifferentAudiencesShareSession` runs
full Pomerium instance with mock IdP, two routes with different
audiences linked via DependsOn, authenticates to route A and verifies
route B is accessible without re-login
- [x] `make build` / `make test` / `make lint` — all green
- [x] CI

AI-assisted: implementation drafted by Claude, reviewed by Go expert +
code reviewer agents, independently verified by Codex.

Fixes ENG-2977

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

27 existing lines in 9 files now uncovered.

35130 of 77272 relevant lines covered (45.46%)

114.17 hits per line

Coverage Regressions

Lines Coverage ∆ File
9
80.34
0.0% pkg/ssh/manager.go
6
75.99
-1.58% pkg/storage/postgres/backend.go
2
90.91
-3.64% pkg/fanout/receive.go
2
85.67
-0.62% pkg/grpc/databroker/syncer.go
2
83.51
-0.43% pkg/ssh/auth.go
2
84.24
-0.64% pkg/ssh/channel.go
2
88.52
-0.44% pkg/storage/postgres/postgres.go
1
92.16
-0.49% config/config_source.go
1
82.24
-0.2% pkg/envoy/resource_monitor_linux.go
Jobs
ID Job ID Ran Files Coverage
1 24363750164.1 13 Apr 2026 08:13PM UTC 691
45.46
GitHub Action Run
Source Files on build 24363750164
  • Tree
  • List 691
  • Changed 15
  • Source Changed 1
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24363750164
  • 42fc95df on github
  • Prev Build on main (#24363732410)
  • Next Build on main (#24369764509)
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