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

pomerium / pomerium / 24800708842
45%

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

22 Apr 2026 08:22PM UTC coverage: 45.753% (+0.07%) from 45.684%
24800708842

push

github

web-flow
pomerium/authorize: disable redirect when session passed in header or query string (#6289)

## Summary
During authorization an invalid session (expired, invalid or doesn't
exist) will result in a redirect to the authenticate service. However
sometimes this redirect should not happen: for gRPC/gRPC-web calls, json
requests, MCP requests, etc...

Add two more cases for when we should prevent the redirect:

- If the pomerium session/service account is found as an HTTP header
- If the pomerium session/service account is found as an HTTP request
URL query string parameter

In these cases initiating an interactive login doesn't make sense
because headers/query string parameters indicates that the user isn't
using cookies for authentication.

## Related issues
-
[ENG-3156](https://linear.app/pomerium/issue/ENG-3156/core-invalid-or-missing-service-accounts-should-result-in-forbidden)


## Checklist

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

31 of 33 new or added lines in 2 files covered. (93.94%)

49 existing lines in 8 files now uncovered.

35644 of 77906 relevant lines covered (45.75%)

115.54 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
87.89
0.73% authorize/check_response.go

Coverage Regressions

Lines Coverage ∆ File
10
85.78
-4.9% config/config_source.go
10
75.99
-2.64% pkg/storage/postgres/backend.go
9
80.34
0.0% pkg/ssh/manager.go
8
88.06
0.0% pkg/storage/blob/schema.go
4
72.31
0.09% pkg/storage/blob/chunk.go
4
74.63
-0.37% pkg/storage/blob/util.go
2
89.53
0.72% config/envoyconfig/routes.go
2
88.08
-0.44% pkg/storage/postgres/postgres.go
Jobs
ID Job ID Ran Files Coverage
1 24800708842.1 22 Apr 2026 08:37PM UTC 697
45.75
GitHub Action Run
Source Files on build 24800708842
  • Tree
  • List 697
  • Changed 15
  • Source Changed 6
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24800708842
  • aee437b1 on github
  • Prev Build on main (#24740199847)
  • Next Build on main (#24848687171)
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