refactor(#3393): stop restarting authelia from swarmctl
authelia now watches the users file, so the restart is redundant -- and it was the wrong shape twice over. It could fail: a login was refused for a user whose record was already correct on disk, with nothing in either log implicating the reload. And it only ever worked for this writer -- swarm-authelia-bridge writes the same file and cannot restart anything, since running unprivileged inside the container is the whole reason it may write it at all. A reload that depends on which process did the writing is not a reload. --machine/--unit and their two env vars existed solely to name a systemctl -M target, so they go with it. That drops two required settings from the operator surface. The three objections previously recorded against watch are all answered now, and are kept next to the decision rather than deleted: the key is verified against the pinned build (validate-config accepts it and rejects a misspelling), the watch is on the directory so a rename is observed, and partial reads are structurally impossible because every writer of this file goes through write_atomic.
This commit is contained in:
parent
154ab6c4ae
commit
63fc54edc5
4 changed files with 32 additions and 44 deletions
|
|
@ -26,8 +26,6 @@ swarm-level operator CLI
|
|||
|
||||
* `--authelia-bin <PATH>` — authelia binary used to hash passwords. The argon2 parameters must match the verifier's, so this has to be the *configured* package rather than whatever is on `PATH`
|
||||
* `--users-file <PATH>` — Host-side path of authelia's users database — i.e. the path inside the container, prefixed with the container's root
|
||||
* `--machine <NAME>` — Machine name of the authelia container, for `systemctl -M`
|
||||
* `--unit <UNIT>` — authelia's systemd unit inside that container
|
||||
* `--store <PATH>` — Canonical user store
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue