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

go-pkgz / auth / 45456930264
89%

Build:
DEFAULT BRANCH: master
Ran 24 Nov 2026 06:14PM 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

24 Nov 2026 06:12PM UTC coverage: 87.873% (+0.009%) from 87.864%
45456930264

push

github

umputun
Key verify confirmations on the signed part of the token

The confirmation store keyed a redeemed token on the SHA-256 of its whole
text. Signature checking pins the header and payload byte for byte, but
the base64 decoder skips line breaks and ignores the spare bits of the
last character, so one signature has several spellings that all verify.
A redeemed link with a line break inserted into its signature, or with
its last character changed, got a new key and signed in again until the
token expired.

confirmationKey now hashes the header.payload part only, in both modules.
Tokens still need no id claim and the wire format is unchanged. Keys of
tokens already in a shared store change form, so a link redeemed just
before the upgrade can be redeemed once more within its remaining
lifetime; the in-memory store starts empty after the restart anyway.

TestVerifyHandler_LoginAcceptConfirm_RejectsReencodedReplay replays a
redeemed token with a line break in the signature, a trailing line break
and a flipped spare bit; each signed in again before the change.

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

3471 of 3950 relevant lines covered (87.87%)

13.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45456930264.1 24 Nov 2026 06:14PM UTC 25
87.87
GitHub Action Run
Source Files on build 45456930264
  • Tree
  • List 25
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8ee283f2 on github
  • Prev Build on master (#45454217962)
  • Next Build on master (#45456930178)
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