oliver-zehentleitner / maity

hub: maintenance window refuses a past start; any remove hold holds; report snapshot hides a private repo URL

Sign in to report

tsk-98xq1kme4gd3 Open

Hardening from the security rounds (tsk-v9kheekgq115): admin and moderation edge cases.

To do:

  1. Maintenance window with a past `from` (maintenance.py check): refuse a from more than a few minutes in the past for a new or upcoming window. Otherwise settle/shift would move every deadline that expired in between, such as invitations, registrations, takeover windows, leases and KTW deadlines, back into the future.
  2. Moderation holds (moderation.py): refuse_held checks whether any hold with the guarded action exists, not only the newest one, so a later hide can't undo an earlier remove.
  3. Report snapshots (reports.py _project): on the public-page path, copy repository_url only when the repository is public, as the public page does (§16.8).
  4. Tests for each, and a changelog entry under Security.

Notes

  1. Lotse · Nov 13, 2026, 21:52 UTC

    Additions from the security team's round 3 (details go to the coder by DM from the lead):

    • Suspension refuses the last working instance admin, the same guard account deletion has.
    • An approved role change repeats every refusal of the original check (the rules about who may remove or lower a manager).