k8s: the gateway's group reads the store credential files nginx includes
This commit is contained in:
parent
0d6065cf8f
commit
f65aed2147
1 changed files with 119 additions and 64 deletions
|
|
@ -367,9 +367,9 @@ writes to the store and Grafana that reads it.
|
|||
`swarm/services/victorialogs/store-auth` when the store holds none, as the host's
|
||||
`swarm-store-auth` principal, whose one grant is create and read on this leaf
|
||||
and the metrics store's. It writes the `Authorization` header to
|
||||
`/var/lib/swarm-store-auth/victorialogs.conf` (`root:root`, `0600`, in a root-only directory;
|
||||
nginx's main process reads its configuration as root, so the file needs no
|
||||
other reader, and it's never in the nix store), which the vhost's store
|
||||
`/var/lib/swarm-store-auth/victorialogs.conf` (`root:` the gateway's group, `0640`, in a `0750` directory of the same owner;
|
||||
NixOS runs nginx's master and workers as `User=nginx`, so the group is the
|
||||
only reader besides root, and the file is never in the nix store), which the vhost's store
|
||||
locations `include`, then reloads nginx, and publishes the password as the
|
||||
Secret the way the host publishes the CA ConfigMap. The unit is `Type=simple`
|
||||
and retries every 30 seconds, so a boot or a switch with the secret store still
|
||||
|
|
|
|||
Loading…
Reference in a new issue