swarm-metrics-auth: bring the module comment back to 30 lines
This commit is contained in:
parent
5ae00f8c3e
commit
66b384cd07
1 changed files with 5 additions and 7 deletions
|
|
@ -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 _;
|
||||
|
|
|
|||
Loading…
Reference in a new issue