Watch
0
0
Fork
You've already forked hyperhive
0

swarmctl and the authelia bridge serialise users.yml writes with a shared flock

This commit is contained in:
atlas 2026-10-17 14:03:57 +02:00 • committed by mara
commit be744d45b9
7 changed files with 436 additions and 5 deletions

View file

@ -31,6 +31,8 @@ controller can queue (see below). Nothing here becomes reachable by that.
`swarmctl` reads and writes `users.yml` — authelia's own users database —
directly. `swarm-authelia-bridge` writes agent subjects into the same file.
Every verb that writes holds an exclusive `flock` on `users.yml.lock` from
before the load until the rename, as the bridge does.
⚠️ The file is round-tripped, so **comments and hand-formatting do not
survive a write**. Values do, and so do keys this binary does not model.