Upgrade to EdgeQuake v0.28.4
Upgrade to EdgeQuake v0.28.4
Section titled “Upgrade to EdgeQuake v0.28.4”From: v0.28.3 · To: v0.28.4 · CD: GHCR (
edgequake,edgequake-frontend,edgequake-postgres)
This patch hardens authentication (SPEC-154): refresh-token families, a durable JWT denylist, WebSocket JWT auth and scoped API keys. The schema moves from 160 to 162. Run migrate before you rely on token revocation or family rotation.
Highlights
Section titled “Highlights”| Area | What changed |
|---|---|
| Schema | 162: jwt_jti_denylist table and refresh family_id and status columns (161 adds OAuth refresh grants) |
| Auth | Access-token TTL defaults to 900 s; the SPA refreshes with a cookie; WebSocket clients send the JWT in the Sec-WebSocket-Protocol header |
| API keys | EDGEQUAKE_API_KEYS grant read and query; master_api_key is the break-glass key |
| Startup | Auth off with a non-local database is fatal |
Auth flow after the upgrade
Section titled “Auth flow after the upgrade”%%{init: {"theme":"base","themeVariables":{"primaryColor":"#E0E7FF","primaryBorderColor":"#6366F1","primaryTextColor":"#1E1B4B","secondaryColor":"#D1FAE5","secondaryBorderColor":"#10B981","secondaryTextColor":"#064E3B","tertiaryColor":"#FEF3C7","tertiaryBorderColor":"#F59E0B","tertiaryTextColor":"#6B7A90","lineColor":"#7A889C","clusterBkg":"rgba(99,102,241,0.07)","clusterBorder":"#A5B4FC","noteBkgColor":"#FEF9C3","noteTextColor":"#422006","textColor":"#6B7A90","titleColor":"#6B7A90","signalColor":"#7A889C","signalTextColor":"#6B7A90","loopTextColor":"#6B7A90","edgeLabelBackground":"#F1F5F9","actorLineColor":"#94A3B8"}}}%%
%% eq-theme:v1
sequenceDiagram
participant UI as WebUI
participant API as REST API
participant DB as PostgreSQL
UI->>API: login, receives a 900 s access token
API-->>UI: refresh token in the HttpOnly eq_refresh cookie
UI->>API: refresh request (cookie sent automatically)
API->>DB: rotate the token inside its family
API->>DB: deny revoked JWT IDs via jwt_jti_denylist
Notice that refresh tokens sit in an HttpOnly cookie that page scripts cannot read.
Upgrade steps
Section titled “Upgrade steps”- Run migrate to 162 before you start the new API. From 0.28.3 or older, this step is required.
- Pull the 0.28.4 images and start the stack.
- In each browser, clear any pre-154
accessandrefreshkeys fromlocalStorageonce.
# Compose / Helm: migrate job first, then the APIdocker compose pullEDGEQUAKE_VERSION=0.28.4 docker compose up -d# or run migrate by hand, then restart the API:# edgequake migrate && restart the APIVerify
Section titled “Verify”curl -sf localhost:8080/health | jq '{version, schema}'# expect version "0.28.4", schema.latest_version 162, pending_count 0- Residual: Next.js may set a non-HttpOnly
edgequake_access_tokencookie for middleware (Secure on HTTPS). The refresh cookieeq_refreshstays HttpOnly. - Security details: docs/security/best-practices.md (SPEC-154).