Make access revocation atomic across passkeys and sessions #502

Merged
timmy merged 1 commits from timmy/501-atomic-access-revocation into main 2026-08-10 17:27:01 +00:00
Owner

Closes #501

What changed

  • revoke a managed device session, grants, and linked passkey in one SQLite transaction
  • revoke all sessions, grants, passkeys, and challenges in one SQLite transaction
  • preserve all access state when any deletion fails

Verification

  • RED: rollback API tests proved the old routes removed passkeys before session deletion failed
  • GREEN: python3 -m pytest tests/ -q — 1009 passed
Closes #501 ## What changed - revoke a managed device session, grants, and linked passkey in one SQLite transaction - revoke all sessions, grants, passkeys, and challenges in one SQLite transaction - preserve all access state when any deletion fails ## Verification - RED: rollback API tests proved the old routes removed passkeys before session deletion failed - GREEN: `python3 -m pytest tests/ -q` — 1009 passed
timmy added 1 commit 2026-08-10 17:25:16 +00:00
fix: make access revocation atomic (Closes #501)
All checks were successful
CI / lint (pull_request) Successful in 1m5s
CI / build-release (pull_request) Successful in 6s
CI / release-candidate (pull_request) Has been skipped
91c59a2953
timmy merged commit 4f0e6544b3 into main 2026-08-10 17:27:01 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
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: stackchain/stackchain-dashboard#502
No description provided.