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

pomerium / pomerium / 24413175781
46%

Build:
DEFAULT BRANCH: main
Ran 14 Apr 2026 05:47PM 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

14 Apr 2026 05:23PM UTC coverage: 45.451%. Remained the same
24413175781

push

github

web-flow
fix: validate GCS metadata identity response before using as token (#6266)

## Summary

- reject non-200 responses from the GCP metadata identity endpoint
instead of using the response body as a bearer token
- reject empty metadata tokens after trimming whitespace
- include the audience and a truncated response body in errors to
improve diagnostics
- add regression coverage around unexpected metadata responses and
header generation

## Context

While investigating an environment-specific failure mode, we found that
unexpected responses from the metadata identity endpoint could flow into
the authorization-header path. This PR hardens that code path so bad
metadata responses are treated as errors instead of token material.

This is a correctness and defense-in-depth fix. It should not be read as
a claim that this PR alone explains every aspect of the incident being
investigated.

## Test plan

- [x] success path still returns a token
- [x] non-200 metadata responses return an error
- [x] empty metadata responses return an error
- [x] header-generation path does not emit headers when token retrieval
fails
- [x] existing evaluator coverage still passes
- [x] `make build`
- [x] `make test`
- [x] `make lint`

## AI Assistance

AI helped draft the initial diagnosis and test coverage. I manually
reviewed the change, validated the behavior against a live environment,
and reran the repository validation commands.

17 of 19 new or added lines in 1 file covered. (89.47%)

33 existing lines in 7 files now uncovered.

35142 of 77319 relevant lines covered (45.45%)

114.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
66.39
7.97% authorize/evaluator/google_cloud_serverless.go

Coverage Regressions

Lines Coverage ∆ File
11
72.3
-7.43% pkg/grpcutil/client_manager.go
10
75.73
-2.64% pkg/storage/postgres/backend.go
5
48.64
-0.9% internal/databroker/server_clustered_follower.go
2
96.88
-1.04% pkg/identity/manager/schedulers.go
2
85.88
1.18% pkg/storage/postgres/iterate.go
2
88.52
0.0% pkg/storage/postgres/postgres.go
1
82.24
-0.2% pkg/envoy/resource_monitor_linux.go
Jobs
ID Job ID Ran Files Coverage
1 24413175781.1 14 Apr 2026 05:47PM UTC 691
45.45
GitHub Action Run
Source Files on build 24413175781
  • Tree
  • List 691
  • Changed 13
  • Source Changed 1
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24413175781
  • 615baaba on github
  • Prev Build on main (#24369764509)
  • Next Build on main (#24430887217)
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