Watch
0
0
Fork
You've already forked hyperhive
0

swarm-metrics-auth: bring the module comment back to 30 lines

This commit is contained in:
maia 2026-11-30 17:12:08 +01:00 • committed by mara
commit 66b384cd07

View file

@ -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 _;