Watch
0
0
Fork
You've already forked hyperhive
0

k8s: the gateway's group reads the store credential files nginx includes

This commit is contained in:
atlas 2026-11-28 05:29:08 +01:00 • committed by maia
commit e0b3c0a644

View file

@ -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