the log and metrics stores ask every request for a credential the gateway supplies
Each store runs with -httpAuth.* and a credential from the secret store, published to the namespace as a Secret by the host. The gateway's locations send it after auth_request has passed, and the collector's scrape and push take the same one, so a process on the node that bypasses the gateway is refused.
This commit is contained in:
parent
11be43a2e9
commit
9b12532fc1
1 changed files with 808 additions and 72 deletions
|
|
@ -718,7 +718,11 @@ let
|
|||
);
|
||||
};
|
||||
|
||||
execWords = splitExec name (toString sc.ExecStart);
|
||||
# A systemd `%d` in an argument is the credential directory, as in the
|
||||
# environment.
|
||||
execWords = map (builtins.replaceStrings [ "%d" ] [ credDir ]) (
|
||||
splitExec name (toString sc.ExecStart)
|
||||
);
|
||||
entrypoint = "${svc.package}/bin/${daemon}";
|
||||
|
||||
# The credentials that are public CA files come from the CA ConfigMap, the
|
||||
|
|
|
|||
Loading…
Reference in a new issue