[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:
2026-11-08 10:49:31 +01:00
parent 0749119f19
commit e84eb1ba74
36 changed files with 934 additions and 131 deletions
+10
View File
@@ -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")