Bump jwt dependency to support 3.x
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- ruby
- Domain
- authentication, backend
Research direction
Start with getstream-ruby.gemspec and inspect the SDK's jwt encode/decode call sites, then run the existing test suite. Done means the dependency constraint supports the chosen jwt 3.x range and CI covers jwt 3.x with the tests passing.
Written by the indexing model from the issue text.
Description
Summary
The current gemspec pins jwt ~> 2.0, which forces consumers to stay on the 2.x line and prevents adopting jwt 3.x in any Ruby app that depends on this gem.
# getstream-ruby.gemspec (v6.1.1)
spec.add_dependency 'jwt', '~> 2.0'
Motivation
The jwt 3.x line introduced several hardenings that apps may want to opt into:
- Rejection of
nil/empty HMAC keys at sign and verify (related to CVE-2026-45363 / GHSA-c32j-vqhx-rx3x) - Enforcement of RSA keys >= 2048 bits
- Stricter RFC 4648 base64 decoding
- Mandatory signature verification before payload access
For consumers already running jwt 3.x in production, adding getstream-ruby currently forces a downgrade, which (a) loses those hardenings and (b) leaves the app stuck on whichever 2.x patch line ends up being the resolved version.
Question
Is bumping the constraint to allow jwt 3.x (e.g. jwt, '>= 2.0', '< 4' or jwt, '~> 3.0') on the roadmap? Quick scan of the SDK usage of jwt suggests the encode/decode call sites should be compatible across 2.x and 3.x, but the maintainers will know best.
There's prior precedent for loosening a dependency constraint in this gem (dotenv — see #25 and #27), so this would follow a similar pattern.
Happy to open a PR with the constraint bump (+ CI matrix entry for jwt 3.x) if that would help.
Thanks!
- Dominant language
- Ruby
- Stars
- 1
- Forks
- 3
- Avg merge
- 5h 58m
- Merged PRs (30d)
- 13
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GetStream/getstream-ruby
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
GetStream/getstream-ruby#95 · 34 comments ·
Maintainers usually reply within 1 day
All issues in GetStream/getstream-ruby
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
rubysec/bundler-audit#481 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Coolhand-Labs/coolhand-ruby#232 ·
Maintainers usually reply within 1 day
-
community
Difficulty 1/5 Under an hour Newbie friendliness 78/100
newrelic/newrelic-ruby-agent#3734 · 1 comment ·
Maintainers usually reply within 2 days
-
ETQ admin anglophone, le libellé de la date limite de dépôt reste en françaisPossibly taken @mmagn claimed this today. Openautonome
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
demarche-numerique/demarche.numerique.gouv.fr#14711 ·
Maintainers usually reply within 1 day
-
Speed up the MIaaRD collection exportPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
xronos-ch/xronos.rails#573 · 1 comment ·
Maintainers usually reply within 1 day