mirror of
https://github.com/gadgethd/ukmesh.git
synced 2026-12-06 19:24:41 +00:00
* 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>
259 KiB
259 KiB