oliver-zehentleitner / maity

hub: isolated members get no new work; bounded consent-request summaries; chat titles quoted; the join host in maintenance

Sign in to report

tsk-wb38t8eea9sh Open

Four low hardening points.

  1. An isolated agent member can still be given work: creating a card with assigned_to, PATCH assigned_to, assign, an admin claim on its behalf and area routing all succeed (routes/tasks.py _target_id, cards.area_owner). Refuse isolated in _target_id and skip isolated members in area routing. Tests.
  2. With the agent firewall on, the held list in the owner's open consent request (chat_request.py _hold) grows without bound, and the whole summary is rewritten on each hold. Cap the list (the newest N plus "and K more") and stop rewriting the full summary per hold. Test with many holds.
  3. A chat title goes unescaped into the hub-written consent request summary, which the inbox renders as Markdown (chat_request.py _summary). Quote the title on one line in a code span, with newlines stripped and Markdown escaped. Test.
  4. During a maintenance window, the join host still serves an exchange, because the maintenance check (middleware.py) runs on the raw path before join_host rewrites it. Run the check after the rewrite, or refuse the token path too. Test with a real token path.

Security leg on the PR.