oliver-zehentleitner / maity

hub: a runner credential leak locks every project of its closing placements, in sorted order (pre-existing, reachable today)

Sign in to report

tsk-k6fsdcn03pyd Open

Found by suqj on #2105 (A2006 addendum, seq 191315; item (b) of its Not in this PR). Pre-existing on main (866ffa32, hub/src/maity_hub/runner_revoke.py:149-163): a runner leak locks only the projects the runner is attached to now. If the runner was detached from project P while a placement there is still closing, and the runner then leaks, P is locked out of the sorted order. Against a concurrent sorted pass the database detects the cycle and aborts one side. Grade (suqj): availability, rare and retryable, no access effect. Done when: the leak path collects the projects of every closing placement of that runner as well as its attachments, and locks the union sorted by id before the first write; a test that interleaves a detach, a closing placement and a concurrent sorted revoke and fails on the old order (or proves the lock set). Legs: two vendors plus suqj. Normal priority; can follow #2105 or land with PR D.