[E05-S02-T02] Only lookup hash stored #237

Open
opened 2026-08-27 00:17:18 +00:00 by kpcto · 0 comments
Owner

Parent story: [E05-S02] Opaque DB-backed session (#73)

Intent

Store only a lookup hash of the session token, never the raw token.

Acceptance criteria

  • Only a lookup hash of the token is stored, never the raw token
  • Raw token is returned to the client once and discarded server-side

Explicitly out of scope

  • Token generation (E05-S02-T01)
  • Secure/HttpOnly/SameSite attributes (E05-S02-T03)
  • Logout revocation and expiration (E05-S02-T04/T05)
  • Admin API 401 to anonymous caller (E05-S02-T06)

Test plan

  • Automated test inspects session storage and asserts no raw token

Rollback note

  • Revert hashing change; invalidate existing sessions and re-login

Owning stream

platform

Risk quadrant

agent-full

> Parent story: [E05-S02] Opaque DB-backed session (#73) ## Intent Store only a lookup hash of the session token, never the raw token. ## Acceptance criteria - Only a lookup hash of the token is stored, never the raw token - Raw token is returned to the client once and discarded server-side ## Explicitly out of scope - Token generation (E05-S02-T01) - Secure/HttpOnly/SameSite attributes (E05-S02-T03) - Logout revocation and expiration (E05-S02-T04/T05) - Admin API 401 to anonymous caller (E05-S02-T06) ## Test plan - Automated test inspects session storage and asserts no raw token ## Rollback note - Revert hashing change; invalidate existing sessions and re-login ### Owning stream platform ### Risk quadrant agent-full
kpcto added this to the Sprint 1 milestone 2026-08-27 00:17:18 +00:00
kpcto added the
kind
task
status
proposed
labels 2026-08-27 00:17:18 +00:00
Sign in to join this conversation.