From 26ef09b0d75cf33fd46a92fd17ab5c5a05fad99c Mon Sep 17 00:00:00 2001 From: atlas Date: Fri, 27 Nov 2026 22:51:00 +0100 Subject: [PATCH] name the grafana pod's sidecar where the controller's token errors point The controller's missing-token error and the two crates' docs named a host unit that no longer runs. --- swarm-controller/src/observability/alerts.rs | 10 +++++----- swarm-secret-client/src/grafana.rs | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/swarm-controller/src/observability/alerts.rs b/swarm-controller/src/observability/alerts.rs index f345dbe70..99fead965 100644 --- a/swarm-controller/src/observability/alerts.rs +++ b/swarm-controller/src/observability/alerts.rs @@ -5,9 +5,9 @@ //! (`SWARM_CONTROLLER_GRAFANA_URL`). The token is a Viewer service account's, //! read from the swarm's secret store at //! `swarm_secret_client::grafana::controller_token_path` under this daemon's -//! own certificate. `swarm-bao-grafana-controller-token`, on Grafana's host, -//! mints it and replaces it whenever Grafana refuses the stored one, so a 401 -//! here re-reads the store once before giving up. +//! own certificate. The `controller-token` container of Grafana's pod mints it +//! and replaces it whenever Grafana refuses the stored one, so a 401 here +//! re-reads the store once before giving up. use std::collections::BTreeMap; use std::future::Future; @@ -177,8 +177,8 @@ async fn token_from_store() -> Result { match stored { Some(t) if !t.value.trim().is_empty() => Ok(t.value.trim().to_owned()), _ => anyhow::bail!( - "nothing at {path}: swarm-bao-grafana-controller-token, on the host that runs \ - Grafana, has not stored this daemon's Grafana token" + "nothing at {path}: the controller-token container of Grafana's pod \ + has not stored this daemon's Grafana token" ), } } diff --git a/swarm-secret-client/src/grafana.rs b/swarm-secret-client/src/grafana.rs index b1775e2c3..0ef8c34b2 100644 --- a/swarm-secret-client/src/grafana.rs +++ b/swarm-secret-client/src/grafana.rs @@ -1,10 +1,10 @@ //! The Grafana agreement: where `swarm-controller`'s token for Grafana's API //! lives, and what the object at that path holds. //! -//! `swarm-bao-grafana-controller-token`, on the host that runs Grafana, mints -//! the token for a Viewer service account and writes it here under Grafana's -//! own certificate; `swarm-controller` reads it under its own. Those two -//! principals' stanzas are the only ones in the store that cover this path. +//! The `controller-token` container of Grafana's pod mints the token for a +//! Viewer service account and writes it here under the pod's own login; +//! `swarm-controller` reads it under its own. Those two principals' stanzas +//! are the only ones in the store that cover this path. use serde::{Deserialize, Serialize};