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

karanshukla / totalwarhammer-tournament-app / 32610079490
97%

Build:
DEFAULT BRANCH: main
Ran 23 Aug 2026 01:20AM UTC
Jobs 2
Files 165
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

23 Aug 2026 01:19AM UTC coverage: 96.688% (-0.01%) from 96.698%
32610079490

push

github

karanshukla
fix(server): stop binding sessions to the User-Agent

Toggling "request desktop site" on a phone logged you out. Desktop mode
rewrites both halves of the fingerprint at once — Mobile Chrome/Android
becomes Chrome/Linux, Mobile Safari/iOS becomes Safari/macOS — and
fingerprintMatches required both to match, so a browser menu item was
enough to invalidate a live session. This is what evicted the last
session still working through the cookie outage fixed in 48e5d1b.

The check bought little in return. It only defeats an attacker replaying
a stolen cookie *without* copying the User-Agent, which sits in the same
request the cookie was stolen from. Session theft is already constrained
by httpOnly + Secure + SameSite=Strict, and the control that does real
work — evicting sessions issued before the most recent password change
(issue #101) — is untouched here.

It also carried a fleet-wide risk. ua-parser-js was ranged as ^2.0.10
and the Docker build has a no-lockfile install path, so a minor release
renaming a browser family ("Mobile Chrome" -> "Chrome Mobile", exactly
the churn that library sees) would have invalidated every stored
fingerprint at once and logged out every user on deploy, with nothing in
the diff to explain it.

Removing the check drops ua-parser-js entirely — it had no other caller.

Tests covering the old rejections now assert the opposite, including the
desktop-mode case, so the behaviour is pinned rather than merely
deleted. Sessions minted before this change still carry a `fingerprint`
property; it is ignored, and one test covers that.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

2776 of 2927 branches covered (94.84%)

Branch coverage included in aggregate %.

6 of 8 new or added lines in 2 files covered. (75.0%)

5 existing lines in 2 files now uncovered.

8637 of 8877 relevant lines covered (97.3%)

23.79 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
97.56
0.0% server-app/src/interfaces/http/middleware/auth-middleware.js

Coverage Regressions

Lines Coverage ∆ File
4
98.11
-0.08% server-app/src/infrastructure/services/auth-state-service.js
1
97.56
0.0% server-app/src/interfaces/http/middleware/auth-middleware.js
Jobs
ID Job ID Ran Files Coverage
1 client - 32610079490.1 23 Aug 2026 01:23AM UTC 117
97.33
GitHub Action Run
2 server - 32610079490.2 23 Aug 2026 01:20AM UTC 48
96.36
GitHub Action Run
Source Files on build 32610079490
  • Tree
  • List 165
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #32610079490
  • 6d9886d7 on github
  • Prev Build on main (#32607678637)
  • Next Build on main (#32611658235)
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