Skip to content

Relay pass (PC side): fix before enforcing - no redirects for the proof, keep renewal delays, headless bootstrap, never block pairing #3271

Closed

Description

@devswha

Follow-up from the review of #3270 (members-only relay, PC side) at head 0420407. No HIGH; these should be fixed before the relay's pass mode is turned on.

  1. The PC's account proof can follow a redirect to another origin (server/relay/pass.ts:183). The /v1/pc/relay-pass request uses the default redirect: "follow", so a 307/308 would forward the POST body (challenge id, proof, account) to the Location origin. Use redirect: "manual" (or "error") as the account sign-in calls do. Traced, not reproduced (no network in review).
  2. Naming the relay account again skips renewal and rate-limit delays (server/relay/service.ts:209). Each relay-account POST calls refresh() even for the same account; the waiting screen repeats it every nine minutes (~160 requests a day instead of renewal every 12 h, the 48/day cap reached in about 7 h), and an immediate second refresh ignores a 429's Retry-After. Reproduced in memory.
  3. Headless link cannot bootstrap once the relay enforces passes (scripts/plugin-link.ts:278): it waits for the relay to come online before signing in and naming the account a pass needs; with enforcement on it exits after 30 s without calling the account service. Reproduced with a mocked relay and fake clock. Related LOW (:238): relisting an old directory entry returns without naming the relay account.
  4. A failure of the new pass setup blocks Add this PC even with enforcement off (src/lib/account/addThisPc.ts:38): any non-404 failure of the new local route (e.g. relay/account.json not writable) rejects listThisPc, so the UI never reaches its pairing wait, where main would proceed. Pass setup should not gate pairing while the relay does not require it.

Activity

  1. added a commit that references this issue on Nov 7, 2026
    befacfa
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