default the host's swarmctl to the gateway; login takes a callback port
This commit is contained in:
parent
ef817ed5a0
commit
58236e1b7f
1 changed files with 183 additions and 67 deletions
|
|
@ -165,9 +165,10 @@ host so blast radius is unchanged."_
|
|||
|
||||
What keeps that safe is that the directory is `0750`, owned by the
|
||||
`swarm-controller-clients` group, and holds **one** socket. nginx is in that
|
||||
group through its unit's `SupplementaryGroups`; root bypasses mode bits, so
|
||||
`swarmctl` needs no membership. Every other local user gets `EACCES` at the
|
||||
directory. The group is not `swarm-controller`'s own, which also owns the
|
||||
group through its unit's `SupplementaryGroups`; root bypasses mode bits. The host's `swarmctl` reaches the controller
|
||||
through the gateway by default (`SWARMCTL_SWARM`), so nginx is the only routine client;
|
||||
root opens the socket only for a verb run with `SWARMCTL_SWARM` empty. Every other local
|
||||
user gets `EACCES` at the directory. The group is not `swarm-controller`'s own, which also owns the
|
||||
state directory. So:
|
||||
|
||||
> **Never point `socketPath` at a directory that carries anything else.**
|
||||
|
|
|
|||
Loading…
Reference in a new issue