Watch
0
0
Fork
You've already forked hyperhive
0

bridge waits out a slow authelia; controller retries a bridge 503

This commit is contained in:
atlas 2026-11-10 22:32:32 +01:00 • committed by mara
commit 2de07c4575

View file

@ -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,