diff --git a/swarm-metrics-auth/src/main.rs b/swarm-metrics-auth/src/main.rs index eef2514c6..e7e40ff4b 100644 --- a/swarm-metrics-auth/src/main.rs +++ b/swarm-metrics-auth/src/main.rs @@ -10,18 +10,16 @@ //! below), which the gateway hands on. //! //! It reads the store under its own identity, whose policy reaches that one -//! path. It serves the TCP address `--listen` names, which is not authenticated: -//! whoever reaches it is the gateway, so the pod's `NetworkPolicy` admits only the -//! node. +//! path. The TCP address `--listen` names is not authenticated: whoever reaches +//! it is the gateway, so the pod's `NetworkPolicy` admits only the node. //! //! The stored value is kept for `--cache-ttl` seconds, and no request reaches //! the store within that window: a replaced bearer is refused, and the one it //! replaced still accepted, for up to that long. The same holds when the store //! answers that it holds no bearer: that answer is kept for the TTL too, so a //! bearer created after it is refused until the TTL has passed. Lookups are -//! serialised, and a failed or timed-out one is remembered for -//! `LOOKUP_FAILURE_WINDOW`, so a burst of requests against an expired copy -//! costs one lookup, success or failure. +//! serialised, and a failed one is remembered for `LOOKUP_FAILURE_WINDOW`, so a +//! burst of requests against an expired copy costs one lookup. //! //! When the store does not answer, requests are checked against the last //! value it did return, up to `MAX_KEPT_AGE` after that read; a wrong bearer