Skip to content

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.

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
%%{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.

  1. Run migrate to 162 before you start the new API. From 0.28.3 or older, this step is required.
  2. Pull the 0.28.4 images and start the stack.
  3. In each browser, clear any pre-154 access and refresh keys from localStorage once.
Terminal window
# Compose / Helm: migrate job first, then the API
docker compose pull
EDGEQUAKE_VERSION=0.28.4 docker compose up -d
# or run migrate by hand, then restart the API:
# edgequake migrate && restart the API
Terminal window
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_token cookie for middleware (Secure on HTTPS). The refresh cookie eq_refresh stays HttpOnly.
  • Security details: docs/security/best-practices.md (SPEC-154).