diff --git a/swarm-metrics-auth/src/main.rs b/swarm-metrics-auth/src/main.rs index 611e04145..9c8b3c96c 100644 --- a/swarm-metrics-auth/src/main.rs +++ b/swarm-metrics-auth/src/main.rs @@ -10,8 +10,7 @@ //! that does not answer is a 401 only until a value has been read; see below. //! //! It reads the store under its own certificate, whose policy reaches that one -//! path. It serves a unix socket whose directory only the gateway's nginx may -//! enter. +//! path, and serves a unix socket whose directory only nginx may enter. //! //! 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 @@ -25,11 +24,10 @@ //! When the store does not answer, requests are checked against the last //! value it did return, up to `MAX_KEPT_AGE` after that read, and a wrong //! bearer is still refused. The first such request of each failure streak logs -//! it. A revoked or rotated bearer therefore stays accepted for as long as the -//! store cannot be reached, for at most `MAX_KEPT_AGE`; the first answer -//! replaces the value, or drops it when the store holds none. Past that age the -//! value is dropped, and a process that has not yet read the store has none: -//! both deny. +//! it. A revoked or rotated bearer therefore stays accepted while the store +//! cannot be reached, for at most `MAX_KEPT_AGE`; the first answer replaces the +//! value, or drops it when the store holds none. Past that age the value is +//! dropped, and a process that has not yet read the store has none: both deny. use std::future::Future; use std::os::unix::fs::PermissionsExt as _;