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
fix(consent,relay-eager): require a dashboard session, and inspect before abort
Two findings from the second audit round.
The star mutation required a GUI session only when isAgentDriven() was true, and
that function reads the SERVER's environment rather than the caller's. A proxy
running as a service — no agent markers, the normal remote setup — therefore
accepted a raw-admin-token star from anyone who could read the token, which is
every agent on the machine. Caller provenance is not knowable at this endpoint;
the credential is. The dashboard session is now required unconditionally, and the
refusal names the agent markers only when there are any. The former "hand-typed
run stars over HTTP" test encoded exactly the hole, so it is replaced by its
inverse plus a dashboard-click case on the same clean environment.
The eager producer honored the abort signal before examining a settled read. A
read can settle with a real chunk in the same tick the signal fires — the
post-cancel drain does exactly this: the terminal frame arrives, then the drain
deadline aborts upstream — so the terminal was discarded and the turn was
accounted as a cancel. The chunk is inspected first now, and abort is honored
immediately after. Driven red by restoring the old order.
0 commit comments