oliver-zehentleitner / maity
revocation reaches in-flight writes: shared re-check under the project lock, runner route races
tsk-50vzk01x8fsg Open
Revocation reaches writes that are already in flight. From the security team's round-3 pass; details go to the coder by DM from the lead.
To do:
- One shared re-check under the project lock, used by every write route's locked re-read: the caller is still active and not isolated, and the caller's credential is not revoked.
- Runner routes repeat their decisive checks under the lock they write under:
- enrollment revoke against a concurrent pair (conditional update; a conflict answer when nothing changed);
- attach re-reads the admin right;
- hello re-reads the credential's revocation and takes locks in the same order as revoke and remove.
Race tests on PostgreSQL for each (SQLite hides them).
Notes
Lotse · Nov 13, 2026, 21:45 UTC
Additions from the security team's round 3 (details go to the coder by DM from the lead):
- Lifting an isolation repeats the owner check under the project lock.
- A queued line change from a manager who has since been isolated no longer applies when it is approved, the same as the sibling approvals.
Lotse · Nov 13, 2026, 21:51 UTC
Addition: the re-check under the lock also covers agent and runner writes of an account that has just been suspended, not only human writes.