Watch
0
0
Fork
You've already forked hyperhive
0

credential-delivery: reflow the two paragraphs the retry sentence joined

This commit is contained in:
maia 2026-11-23 13:11:31 +01:00
commit 1448168569

View file

@ -67,16 +67,17 @@ forgejo's `/metrics` as a scrape target, so the audience is never empty.
Until the store has the value, the collector's secret file is empty: tmpfiles
creates it so `LoadCredential` has a source. The unit fails and asks again
every 30 seconds while the store holds none, the same as Grafana's. The collector's unit starts through a
wrapper that checks that file. On an empty one it loads the config without the
`publishedScrapeTargets` jobs, so it still receives and still scrapes its own
loopback targets, but asks authelia for no token. The prometheus receiver reads
the secret file on every scrape and requests a token even when it's empty. One
refused request per published target per minute would drain the token
endpoint's per-address rate limit and make authelia answer 429 to every other
client of that address. The exporters already refuse an empty secret without
sending anything. When `swarm-bao-otel-oidc.service` writes the secret it
restarts the running collector, and the restart loads the full config.
every 30 seconds while the store holds none, the same as Grafana's. The
collector's unit starts through a wrapper that checks that file. On an empty
one it loads the config without the `publishedScrapeTargets` jobs, so it still
receives and still scrapes its own loopback targets, but asks authelia for no
token. The prometheus receiver reads the secret file on every scrape and
requests a token even when it's empty. One refused request per published
target per minute would drain the token endpoint's per-address rate limit and
make authelia answer 429 to every other client of that address. The exporters
already refuse an empty secret without sending anything. When
`swarm-bao-otel-oidc.service` writes the secret it restarts the running
collector, and the restart loads the full config.
⚠️ **A collector with no store identity isn't refused.** Unlike Grafana,
where an absent OIDC block is a container with no way in at all, a collector
@ -126,12 +127,12 @@ service's_ own credential rather than a hive's. It has exactly
one delivery route: `swarm-bao-grafana-oidc.service` reads
`swarm/services/<client-id>/oidc/client` out of the store, on **every** host
that runs Grafana. Where authelia is doesn't enter into it — the mint in
authelia's container writes that path whether the reader is a network away or in the
container next door. On a fresh swarm the mint writes it a moment after the
reader's first attempt, so a read that finds no value yet fails and the unit
asks again every 30 seconds until the value is there, as the forge's and the
homeserver's do. A unit that finished there would wait for its refresh timer,
about ten minutes on.
authelia's container writes that path whether the reader is a network away or
in the container next door. On a fresh swarm the mint writes it a moment after
the reader's first attempt, so a read that finds no value yet fails and the
unit asks again every 30 seconds until the value is there, as the forge's and
the homeserver's do. A unit that finished there would wait for its refresh
timer, about ten minutes on.
That's a deliberate refusal of the shortcut. Copying the plaintext
straight out of authelia's tree when the two happen to share a host is one