k8s: the gateway's group reads the store credential files nginx includes
This commit is contained in:
parent
132d876668
commit
e0b3c0a644
1 changed files with 119 additions and 64 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Reference in a new issue