You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Typed-code rendezvous: re-check revocation for an admitted host, and no per-second alarms in grace #3307
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.
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().
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
fix(relay): end a pairing host on revocation or key removal, and stop…
fix(relay): close a legacy pairing host on any revocation
fix(relay): end a pairing host on revocation or key removal, and stop…