oliver-zehentleitner / maity
hub: maintenance window refuses a past start; any remove hold holds; report snapshot hides a private repo URL
tsk-98xq1kme4gd3 Open
Hardening from the security rounds (tsk-v9kheekgq115): admin and moderation edge cases.
To do:
- Maintenance window with a past `from` (
maintenance.pycheck): refuse afrommore than a few minutes in the past for a new or upcoming window. Otherwisesettle/shiftwould move every deadline that expired in between, such as invitations, registrations, takeover windows, leases and KTW deadlines, back into the future. - Moderation holds (
moderation.py):refuse_heldchecks whether any hold with the guarded action exists, not only the newest one, so a laterhidecan't undo an earlierremove. - Report snapshots (
reports.py_project): on the public-page path, copyrepository_urlonly when the repository is public, as the public page does (§16.8). - Tests for each, and a changelog entry under Security.
Notes
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).