[control] Fix round 1: changes apply while Caddy serves (admin socket, watch through Caddy), revocations that fail are errors and catch up, proof only on the forward-auth UI host, root keys found by content, intermediates checked before install, stale SNI cleared before each handshake
This commit is contained in:
@@ -175,6 +175,16 @@ impl ProxyHttp for EdgeProxy {
|
||||
}
|
||||
}
|
||||
|
||||
if host.sends_proof {
|
||||
// Control trusts Remote-* only next to its proof; a client never supplies either.
|
||||
let req = session.req_header_mut();
|
||||
for name in ianitor_core::AUTHELIA_COPY_HEADERS
|
||||
.iter()
|
||||
.chain(&["X-Ianitor-Proof"])
|
||||
{
|
||||
req.remove_header(*name);
|
||||
}
|
||||
}
|
||||
if host.cfg.forward_auth {
|
||||
let fa = rt.forward_auth.as_ref().ok_or_else(|| {
|
||||
Error::explain(ErrorType::HTTPStatus(500), "forward-auth is not configured")
|
||||
|
||||
Reference in New Issue
Block a user