hive telemetry collector: keep the secret wait for an operator-named file
The previous commit dropped `hive-otel-client-secret` and the collector's `requires`/`after` on it for every hive. Only the store fetch restarts the collector when its file lands; an operator-named `otel.clientSecretFile` has nothing doing that, so a late file failed `LoadCredential` straight into the collector's start limit with no way back. The wait unit and the ordering are back for `senderAuth && !fetches`, and absent only where `swarm-bao-hive-otel-oidc` delivers the file. The module-eval case for a hand-named secret now also pins the wait unit and the collector's `requires`/`after` on it, on both of its fixtures. Refs #5015
This commit is contained in:
parent
7c50568db1
commit
9ef4f55113
3 changed files with 92 additions and 5 deletions
|
|
@ -139,8 +139,8 @@ so a secret rotated later arrives the next time the unit runs. On a hive that
|
|||
runs the store the leaf is already there; elsewhere it's the credential you
|
||||
place — see [secret placement](../swarm/secrets.md).
|
||||
|
||||
To deliver the secret some other way, name the file, and the fetch unit isn't
|
||||
rendered:
|
||||
To deliver the secret some other way, name the file. The fetch unit isn't
|
||||
rendered, and the collector waits up to 120s for the file to appear:
|
||||
|
||||
```nix
|
||||
services.hyperhive.otel.clientSecretFile = "/run/secrets/hive-telemetry.secret";
|
||||
|
|
|
|||
Loading…
Reference in a new issue