Skip to content

Revoke a paired phone, and log who connected #1166

Closed

Description

@nedtwigg

Two of the remote-control gaps on dormouse.sh/security are the ones a user of a paired phone feels first: nothing revokes a paired phone, and nothing records who connected. Both are about a user being able to see and control access to their own computer.

Revocation

Today BurrowAcl.revokeClient / revokePasskey have no callers and no relay frame carries a revocation, so revoking a phone means hand-editing Burrow state and restarting the Burrow (docs/specs/remote-security-model.md -> "Revocation propagation"). A lost or sold phone stays paired until the presence window lapses and, after that, until someone edits the ACL.

  • A Settings → Remote control list of paired phones (name, paired date, last seen), each with Revoke, on both Burrows (Standalone and VS Code).
  • Revoking takes effect on running sessions, not only on the next Burrow start: BurrowService currently hands BurrowRuntime one ACL snapshot for its whole lifetime.
  • A matching dor verb, so an agent or a script can list and revoke.
  • Whether the Relay pushing a revocation to a Burrow (from Pocket on another device, or from the Hosted account page) is in scope or a follow-up. The Burrow stays the only writer of its ACL.

Access log

The Burrow records approvals, and some rejections go to owner-local logs. Nothing answers "did anyone connect to my laptop last night" (docs/specs/security.md -> "Known gaps").

  • An owner-local, append-only, bounded log of connects, attaches, denials (with the specific ACL miss, which stays off the wire), pairings, revocations, and one-time sessions: which phone, when, the path (direct or relayed), and how long.
  • Visible beside the paired-phone list, and through dor.
  • No terminal content, ever. It sits under the same persisted-state boundary as the ACL (docs/specs/security-local.md -> "Persisted state").

Done means

Both Known gaps entries are gone from docs/specs/security.md, the guarantees table gains rows for revocation and the access log with their pins, and the audited rules land in docs/specs/security-remote.md.

Activity

  1. added
    enhancement
    on Oct 18, 2026
  2. dormouse-bot commented on Oct 18, 2026

    @dormouse-bot
    Collaborator

    This is a maintainer-scoped design issue with an open scope question (Relay-pushed revocation), so triage is leaving it for a maintainer rather than opening a PR. Here's where each piece would slot in, based on the current code:

    • The ACL snapshot is a seeded array, not a store read. BurrowService awaits loadAcl once and passes loadAcl: () => records into BurrowRuntime, which builds its BurrowAcl from it at construction. Live revocation needs a runtime entry point that calls revokeClient, persists through the existing saveAcl, and closes any established session whose Client static matches. Without that last step, a revoked phone keeps its open session until the socket drops.
    • The Settings panel only has a count today. RemoteStatus.pairedClients is a number (service-protocol.ts), filled from activeRecords.length. A list would carry each record's label and approvedAt instead. Neither BurrowAclRecord nor the status store tracks "last seen", so that field is new state, and it is probably best kept in the access log rather than the ACL record.
    • One revoke target to choose: the Client static or the passkey. The ACL has both revokeClient and revokePasskey. A phone has one Client static per browser identity (Safari tab vs Home Screen install, from remote: no account-wide device list — pairing, revocation, and push targets are all per-Host #331), so "revoke this phone" from a per-record list maps naturally to revokeClient. revokePasskey would cut off every browser that uses that passkey.

    On the Relay-push question: #331 already tracks the account-wide device list that a Relay- or Hosted-initiated revocation would need, and the spec stages it as Revocation propagation under remote-trust-followups in docs/specs/remote-security-model.md. Keeping this issue Burrow-local, with revocation from the Burrow's own Settings and dor, would leave that design where it is filed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions