CLI: logout never revokes the server session, and no session commands exist #114

Closed
opened 2026-08-18 10:45:21 +00:00 by nalum · 0 comments
Owner

From the surface parity report (2026-08-18), defect 2.

eagraiclainne logout deletes the local token file only. The server session survives until expiry or a JWT secret rotation. The CLI also has no ListSessions / RevokeSession commands (no client wrappers are called from cmd/). So the CLI can mint sessions it can never end.

Where: cmd/eagraiclainne/commands/logout.go.

Fix:

  1. Make logout call UserService/Logout (revoke) before it deletes the token file.
  2. Add session list and session revoke commands — session management is a natural maintenance-tier verb.

Related: #112 (session behavior oddities on web).

From the surface parity report (2026-08-18), defect 2. `eagraiclainne logout` deletes the local token file only. The server session survives until expiry or a JWT secret rotation. The CLI also has no `ListSessions` / `RevokeSession` commands (no client wrappers are called from `cmd/`). So the CLI can mint sessions it can never end. Where: `cmd/eagraiclainne/commands/logout.go`. Fix: 1. Make `logout` call `UserService/Logout` (revoke) before it deletes the token file. 2. Add `session list` and `session revoke` commands — session management is a natural maintenance-tier verb. Related: #112 (session behavior oddities on web).
nalum closed this issue 2026-08-18 16:43:16 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
eagraiclainne/app#114
No description provided.