Files
ukmesh/docs/openapi.yaml
T
hermes-gadgetandgadgethd 53af152458 fix(owner): add revocable server-side sessions (#139)
* fix(owner): add revocable server-side sessions

* test(owner): isolate the revoked-session e2e

* fix(owner): make session creation and revocation race-safe

- Stamp owner_sessions rows with clock_timestamp() and exclude the new
  session from the cap prune, so a login delayed on the per-user advisory
  lock cannot revoke its own freshly issued credential.
- Revoke the grant and its sessions in one transaction, and match the
  effective-grant predicate used for authorization, so a legacy unverified
  row cannot keep sessions alive after the last real grant is revoked.
- Return 503 rather than 500 when the credential-generation store is
  unavailable during login, matching the session route's fail-closed status.
- Isolate the owner integration test from ambient DB environment, add
  real-Postgres regressions for the three defects, and run the suite in CI.

---------

Co-authored-by: gadgethd <111318106+gadgethd@users.noreply.github.com>
2026-11-11 22:41:28 +00:00

259 KiB