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
|
|
@ -42,7 +42,7 @@ A service gets manifests on the host whose configuration deploys it:
|
|||
The renderer reads the service's evaluated unit, not a copy of its settings:
|
||||
|
||||
- **Environment:** the unit's `environment`, including what other modules
|
||||
merge into it, minus `PATH`. A systemd `%d` becomes the credential
|
||||
merge into it, minus `PATH`. A systemd `%d`, here and in `ExecStart`'s arguments, becomes the credential
|
||||
directory it stands for. On a host with a hive collector, the OTLP endpoint
|
||||
variables of a hive-tier service point at it ([Pod logs and metrics](telemetry.md))
|
||||
instead; a swarm-tier producer, `swarm-ci-metrics`, keeps its own. The
|
||||
|
|
@ -80,7 +80,8 @@ commit.
|
|||
The YAML lands in the world-readable nix store, so it holds no credential.
|
||||
It names the Secret `<service>-credentials` and the credential ids as keys.
|
||||
It never names the host path the unit loads a credential from, and never its
|
||||
contents. Nothing here creates the Secret.
|
||||
contents. Nothing here creates the Secret: the unit `swarm-bao-store-auth` publishes
|
||||
the stores' ([the log store](runtime.md#the-log-store)).
|
||||
|
||||
A credential that holds a public CA file isn't a secret. `swarm-notify-router`'s
|
||||
`notify-router-bao-server-ca` and `swarm-ci-metrics`'s `bao-ca.pem` come from
|
||||
|
|
|
|||
Loading…
Reference in a new issue