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

go-pkgz / auth / 32195636696
86%

Build:
DEFAULT BRANCH: master
Ran 18 Aug 2026 11:07PM UTC
Jobs 1
Files 25
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

18 Aug 2026 11:05PM UTC coverage: 86.031% (+0.3%) from 85.777%
32195636696

push

github

web-flow
fix: cache Apple public keys and close response bodies promptly (#306)

* Cache Apple public keys and close response bodies promptly

Previously, every Apple login fetched the JWK set from Apple's key service,
so a slow or unavailable endpoint turned each login into a 500 even when the
key had already been fetched. The key set is now cached per handler, refreshed
when an id_token names an unknown kid, and kept in use for a bounded window
while the key service is down.

Response bodies in the JWK fetch and the token exchange were closed only after
the read or decode returned, leaking the body on every failure; the close is
now deferred right after the request completes.

The example configured ResponseMode "query", which Apple rejects together with
the non-empty scope the provider sets, so its Apple login returned 500.

* Add coverage for Apple key verification paths

* Reject failed and empty Apple key responses

Apple answers a failing key request with a JSON object, which parses into a
key set holding no keys, so the cache accepted it as a successful refresh and
rejected every login until the entry expired. The fetch now requires a 2xx
response and at least one key, which keeps the previously cached set in use.

51 of 52 new or added lines in 2 files covered. (98.08%)

1 existing line in 1 file now uncovered.

3184 of 3701 relevant lines covered (86.03%)

8.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
80.11
0.8% v2/provider/apple.go

Coverage Regressions

Lines Coverage ∆ File
1
80.11
0.8% v2/provider/apple.go
Jobs
ID Job ID Ran Files Coverage
1 32195636696.1 18 Aug 2026 11:07PM UTC 25
86.03
GitHub Action Run
Source Files on build 32195636696
  • Tree
  • List 25
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 19dacc59 on github
  • Prev Build on master (#32195418168)
  • Next Build on master (#32195636685)
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