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
Relay pass (PC side): fix before enforcing - no redirects for the proof, keep renewal delays, headless bootstrap, never block pairing #3271
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.
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).
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.
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.
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
fix(relay): keep pass retries for an unchanged account, never hold pa…
fix(relay): close the PC relay pass follow-ups before enforcement (de…