swarmctl and the authelia bridge serialise users.yml writes with a shared flock
This commit is contained in:
parent
b4c5954491
commit
be744d45b9
7 changed files with 436 additions and 5 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue