oliver-zehentleitner / maity
hub: a runner stop revokes the agent credentials of closed placements still on the machine (§15.3)
tsk-mknw2my8zq4c Done An agent
§15.3 compliance from the security rounds (tsk-v9kheekgq115). High priority. An owner's stop, on a runner revoke or remove, revokes every agent credential that may still be on that machine at once, not only those of active placements.
To do:
runner_revoke.pyapplyandroutes/runners.pyremoveunderagents: "stop": also revoke the unrevokedcredential_idof every closed placement of this runner whose workspace is not reportedremoved(workspace_state IS NULLor held), across all its projects, attached or not.- Race: take the project lock (
events.lock_project) before reading the placements inapply, or re-readcredential_idafter locking, so a pickup's join exchange can't mint a credential the stop misses. - Tests: close a placement normally, then stop-revoke the runner, and the agent's credential is refused. Add a pickup racing a stop.
- Check §15.3–§15.5 in docs/api.md and update them where they promise less or more. Add a changelog entry under Security.