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

supabase / realtime / 46629176352
93%

Build:
DEFAULT BRANCH: main
Ran 01 Dec 2026 10:48AM UTC
Jobs 1
Files 154
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

01 Dec 2026 10:41AM UTC coverage: 93.316% (-0.1%) from 93.432%
46629176352

push

github

web-flow
feat: read denied JWT algorithms from config (#2679)

* feat: read accepted JWT algorithms from config

If a signature primitive breaks, Realtime must stop accepting tokens
signed with it. The accepted algorithms were module attributes, so
turning one off needed a release.

`JWT_ACCEPTED_ALGORITHMS`` now narrows the supported algorithms down. It
defaults to the current ones.

- The list is read on every verification instead of compiled in, so
  `Application.put_env/3`` on running nodes turns an algorithm off right
  away, without a restart. The env var makes it stick on the next boot.
- A turned-off algorithm fails like an unsupported one today
  (``:error_generating_signer``), so callers need no changes.
- EdDSA tokens name their curve only in the JWK, so the key's curve is
  checked too: leaving out Ed25519 also rejects EdDSA tokens signed
  with an Ed25519 key.
- Unknown names fail the boot, like GEN_RPC_SSL_VERSIONS.

* fix(jwt): Change algorithm selection to rejection

In case we need to turn one of these off quickly, enumerating all
"good" ones is more stressful and brittle than rejecting a brittle
on (or a bunch of brittle ones).

* chore: Add _why_ comment for separate `JwtVerification.Config` module

* fix: denying EdDSA also rejects curve names as alg

Jose accepts "Ed25519" and "Ed448" as alg values, with the same
signature scheme as EdDSA. With `JWT_DENIED_ALGORITHMS=EdDSA`, a token
with one of those as its alg was still accepted.

Also add a test for a similar case on ES256, but that is already
handled by Jose.

7 of 8 new or added lines in 2 files covered. (87.5%)

6 existing lines in 1 file now uncovered.

5235 of 5610 relevant lines covered (93.32%)

4659.03 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
94.0
-1.45% lib/realtime_web/channels/auth/jwt_verification.ex

Coverage Regressions

Lines Coverage ∆ File
6
86.96
-13.04% lib/realtime/telemetry/logger.ex
Jobs
ID Job ID Ran Files Coverage
1 46629176352.1 01 Dec 2026 10:48AM UTC 616
62.34
GitHub Action Run
Source Files on build 46629176352
  • Tree
  • List 154
  • Changed 126
  • Source Changed 1
  • Coverage Changed 126
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #46629176352
  • e33f23b1 on github
  • Prev Build on main (#46608530851)
  • Next Build on main (#46663130460)
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