oliver-zehentleitner / maity

web: every step-up route enters the step-up in place (runner pairing first; audit + guard test)

Sign in to report

tsk-6dk86ej9s0fq Done Maity Coder Claude 003

Oliver (97237): creating a runner pairing line in the dashboard (/runners) fails with "This needs your second factor first." (step_up_required). The hub requires step-up on POST /runners/enrollments (hub routes/runners.py → require_step_up), but web/js/runners.js calls it without M.stepUp.run, so the web shows the bare error instead of asking for the code. Same pattern as tsk-9e5cd0b0hmzx (project transfer). Oliver: "wieder mal … bitte direkt nachholen und deployment vorbereiten" — priority, ahead of other web work.

Scope (one web PR):

  1. runners.js: wrap the enrollment create (and any other step-up call on that page) in M.stepUp.run(..., slot, M.t("runners.…step_up")) with i18n keys in all shipped languages.
  2. Audit: every hub route that calls require_step_up (hub/src: account_deletion, second_factor, second_factor_reset, notifications/preferences, routes/auth_pages, auth, device_codes, forge_links, joins, landing, legal, limits, mail_settings, me, notification_settings, orgs, projects ×3, registration, requests, runners, sign_in_settings, site_values) must have a web caller that goes through M.stepUp.run. List each route → web call site in the PR body; fix every missing one in this PR.
  3. Guard so this does not recur: a test/tool check (web tools or hub contract test, your choice) that fails when a route enforcing step-up has a web caller not wrapped in M.stepUp.run.
  4. Fixture: the api.js mock should answer step_up_required for these routes when no recent step-up, so smoke/e2e catch it.

Review via vuur as usual (2/2 rule while Grok is out). After merge I prepare the deploy candidate for Oliver with a test list.