Commit a195261
committed
fix(auth): fail fast on blank JWT key + libargon2-dev in Dockerfile
jwt 3.2.0 rejects nil/empty HMAC keys (CVE-2026-45363) if
JWT_SECRET_KEY and secret_key_base are both absent, the old code
would silently use nil and produce cryptic 401s at request time.
Now raises at boot so Coolify catches it in deploy logs, not in prod.
- jwt_service.rb: tap guard raises on blank SECRET_KEY at class load
- Dockerfile: add libargon2-dev (required native dep for argon2 gem)
- codeql.yml: add pull-requests: write (403 when commenting on PRs1 parent 4340fa7 commit a195261
3 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
0 commit comments