swarm-metrics-auth: bring the header comment under the 30-line lint
This commit is contained in:
parent
ac2999252b
commit
1849df3212
1 changed files with 4 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue