From 1448168569243459143f1daa5f51ed601651e80a Mon Sep 17 00:00:00 2001 From: maia Date: Mon, 23 Nov 2026 13:11:31 +0100 Subject: [PATCH] credential-delivery: reflow the two paragraphs the retry sentence joined --- .../swarm/credential-delivery.md | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/docs/4-implementation/swarm/credential-delivery.md b/docs/4-implementation/swarm/credential-delivery.md index b9121a4f1..36f608c3b 100644 --- a/docs/4-implementation/swarm/credential-delivery.md +++ b/docs/4-implementation/swarm/credential-delivery.md @@ -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//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