Skip to content

Typed-code rendezvous: re-check revocation for an admitted host, and no per-second alarms in grace #3307

Closed

Description

@devswha

Follow-up from the review of #3303 (a typed code's rendezvous bound to the PC's key and relay pass) at head a3d5a20. Both reproduced in memory; they matter once the relay enforces passes.

  1. An admitted pairing host outlives a relay-pass revocation or signing-key removal (relay/pair-room.ts:165). The socket attachment keeps only the pass expiry, so lapsed() cannot see the current revoked-PC list or trusted keys: after revoking the PC and removing its signing key, the host and a new guest stayed open and a frame reached the host until the host's 11-minute deadline or pass expiry. Device authentication on the PC is unaffected. Keep the server id and key id on the attachment and re-check them in lapsed().
  2. An expired pass can fire Worker alarms every second during grace (relay/pair-room.ts:173). passDue() keeps returning the past expiry while grace lets the host stay, so the next alarm is scheduled one second later until enforcement or the host deadline. While in grace, schedule the enforcement transition instead.

Activity

  1. added 2 commits that reference this issue on Nov 8, 2026
    97784d2
    1c081e4
  2. added a commit that references this issue on Nov 8, 2026
    9942798
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions