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

safe-global / safe-client-gateway / 45182326878
92%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2026 01:18PM UTC
Jobs 4
Files 1141
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 Nov 2026 01:16PM UTC coverage: 92.368% (+0.02%) from 92.35%
45182326878

push

github

web-flow
fix(auth): return 401, not 500, for SiWE messages within clock skew (#3817)

* fix(auth): return 401, not 500, for SiWE messages within clock skew

The SiWE message check tolerates clock skew on notBefore and
expirationTime, but the issued token is verified without any. A message
expired within the tolerance now gets 401 before a token is issued, and
a notBefore within the tolerance makes the token active from now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(auth): require SiWE expiry two whole seconds ahead

A token whose exp is only one second ahead gets a zero cookie Max-Age
and can expire before the controller decodes it. Pins that boundary in
the unit tests and notes the clock-skew handling in AUTH.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(auth): measure the SiWE token floor in real time and name it

The previous check compared whole seconds, so a sign-in late in a second
could leave about one second of real time and still get a zero cookie
Max-Age. The floor is now MIN_TOKEN_LIFETIME_SECONDS of real time, checked
in token-expiration.utils next to the max-validity check, and it answers
with the same 401 Invalid message as an expired message rejected by the
SiWE schema.

Tests: pin the boundary with a sub-second clock at unit and integration
level, cover a past notBefore, and keep the existing integration draws
past the floor so they cannot flake. AUTH.md now describes nbf and the
floor as implemented.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(auth): give the unit of the minimum SiWE token lifetime

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(auth): recheck SiWE token lifetime after the wallet lookup and reject empty windows

A slow wallet lookup could use up the minimum token lifetime checked before
it, so the check now runs again right before signing.

A message whose expirationTime is at or before its notBefore has no valid
window. The SiWE schema checks eac... (continued)

5634 of 6306 branches covered (89.34%)

Branch coverage included in aggregate %.

12 of 12 new or added lines in 2 files covered. (100.0%)

13839 of 14776 relevant lines covered (93.66%)

374.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-integration-tests-2 - 45182326878.1 23 Nov 2026 01:18PM UTC 1141
46.58
GitHub Action Run
2 run-integration-tests-1 - 45182326878.2 23 Nov 2026 01:18PM UTC 1141
40.72
GitHub Action Run
3 run-integration-tests-3 - 45182326878.3 23 Nov 2026 01:19PM UTC 1141
47.14
GitHub Action Run
4 run-unit-tests - 45182326878.4 23 Nov 2026 01:18PM UTC 1141
70.39
GitHub Action Run
Source Files on build 45182326878
  • Tree
  • List 1141
  • Changed 12
  • Source Changed 4
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #45182326878
  • a082b829 on github
  • Prev Build on main (#44774907534)
  • Next Build on main (#45182698523)
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