Watch
0
0
Fork
You've already forked hyperhive
0

swarm-controller: get its otlp pushes past the collector, log failures

The collector's oidc/swarm authenticator verifies the bearer offline as a
JWT. The controller's authelia client was registered without
accessTokenSignedResponseAlg, so authelia mints it an opaque
authelia_at_ handle, which that authenticator cannot verify: by config,
no push from the vcs or jobq exporter can be accepted. Register it with
RS256 like every other client whose token lands on an oidc/* receiver.

The SDK logs a failed export at debug only, so a refused push never
reached the journal. AuthenticatedHttpClient now warns on a failed token
mint, a transport error, or a non-2xx answer (status plus a body
snippet), once per kind of failure and again every 10 minutes with a
count, and logs once when a push succeeds after failing.

Refs #5393
This commit is contained in:
atlas 2026-10-16 20:53:59 +02:00 • committed by mara
commit 1e8c398132
4 changed files with 381 additions and 21 deletions

View file

@ -42,6 +42,10 @@ in
# same id; either half without the other is a 401 several layers from
# this line.
audience = [ queueClientId ];
# `oidc/swarm` verifies the token offline against `/jwks.json`, which
# authelia's default opaque handle fails. The queue and the authelia
# bridge introspect, which reads a JWT just as well.
accessTokenSignedResponseAlg = "RS256";
}
];
};