Scope Security Center device revocation to the signed-in Gitea identity #1454

Closed
opened 2026-08-27 03:03:43 +00:00 by timmy · 0 comments
Owner

Problem

Security Center currently enumerates active sessions across principals, and single-device revocation can delete another Gitea identity’s session/passkey. “Sign out all” scopes access records but globally deletes push subscriptions. Identity rotation must not expose or destroy another principal’s devices.

Acceptance criteria

  • Active device listing requires the signed-in immutable Gitea principal ID and excludes other/legacy principals.
  • Single-device revocation enforces principal ownership inside the deletion transaction and returns not found for foreign devices.
  • Sign out all returns the affected management IDs and removes push state only for those IDs.
  • Own-device revocation remains atomic across session, grants, passkey, and bounded push cleanup.
  • Focused behavioral tests and full suite pass.
## Problem Security Center currently enumerates active sessions across principals, and single-device revocation can delete another Gitea identity’s session/passkey. “Sign out all” scopes access records but globally deletes push subscriptions. Identity rotation must not expose or destroy another principal’s devices. ## Acceptance criteria - Active device listing requires the signed-in immutable Gitea principal ID and excludes other/legacy principals. - Single-device revocation enforces principal ownership inside the deletion transaction and returns not found for foreign devices. - Sign out all returns the affected management IDs and removes push state only for those IDs. - Own-device revocation remains atomic across session, grants, passkey, and bounded push cleanup. - Focused behavioral tests and full suite pass.
timmy self-assigned this 2026-08-27 03:03:43 +00:00
timmy closed this issue 2026-08-27 03:21:58 +00:00
Sign in to join this conversation.
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#1454
No description provided.