You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SEC: JWT Tokens Not Invalidated on Logout — no revocation mechanism #187
JWT tokens are valid for 7 days with no server-side revocation mechanism. If a session token is exfiltrated, it remains usable for the full 7-day period regardless of password changes or logout attempts. There is no logout endpoint in the API.
Root Cause
# config.pyACCESS_TOKEN_EXPIRE_MINUTES=10080# 7 days (was 30 minutes)
No token blacklist, jti tracking, or refresh token pattern exists. grep for logout|blacklist|revoke|invalidate in routers/auth.py returns no results.
Remediation
Store token jti claims in Redis upon logout; verify against the blacklist on each request
Reduce ACCESS_TOKEN_EXPIRE_MINUTES to 60–480 minutes and implement refresh tokens
Activity
dolho commentedon Jun 30, 2026
/claim
github-actions commentedon Jun 30, 2026
Claimed by @dolho. Label
status-in-progressadded.Next steps:
feature/187-<short-slug>Fixes #187fix(auth): JWT revocation on logout (#187) (#1384)
fix(test): sync dependencies + models stubs in test_login_rate_limit_…
fix(frontend): plumb VITE_BUG_REPORTING_ENABLED / VITE_BUG_INTAKE_URL…
docs(user-docs): sync to dev state 2026-07-03 — v0.7.0 What's New + p…
feat(auth): bulk portal-session revocation primitive + operator clien…
fix(workspace): "Sign out" signs out — end the live credential, not a…
Release: v0.9.0 (#2268)
fix(session): one platform credential, one 401 verdict, one handler (#…
feat(auth): change the admin password in the app, and keep it across …