bridge waits out a slow authelia; controller retries a bridge 503
This commit is contained in:
parent
bcd698eb43
commit
2de07c4575
1 changed files with 279 additions and 22 deletions
|
|
@ -284,8 +284,10 @@ impl Refusal {
|
|||
/// 503 rather than 500 because the overwhelmingly common cause is
|
||||
/// transient by construction: this bridge's own secret is minted on
|
||||
/// authelia's first boot and delivered by a separate unit, so the
|
||||
/// window where it is absent closes on its own. A client retrying is
|
||||
/// doing the right thing.
|
||||
/// window where it is absent closes on its own; an authelia that
|
||||
/// answers slower than [`introspect::INTROSPECTION_TIMEOUT`] is
|
||||
/// transient too. A client retrying is doing the right thing, and
|
||||
/// `swarm-controller` does.
|
||||
fn status(self) -> StatusCode {
|
||||
match self {
|
||||
Refusal::Caller => StatusCode::UNAUTHORIZED,
|
||||
|
|
|
|||
Loading…
Reference in a new issue