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
commit f65aed2147

View file

@ -19,8 +19,9 @@ rec {
# `victorialogs` or `victoriametrics`.
leaf = store: "swarm/services/${store}/store-auth";
# On the host, a directory only root reads: the password the Secret is made from,
# and the nginx file the gateway's locations include.
# On the host, a directory for root and the gateway's group (`0750`): the nginx
# file the gateway's locations include, which the group reads (`0640`), and the
# password the Secret is made from, which only root reads.
dir = "/var/lib/swarm-store-auth";
passwordFile = store: "${dir}/${store}.password";
nginxFile = store: "${dir}/${store}.conf";