[control] Fix round 3: revocations never wait for an apply (files and edge at once; under Caddy the reload is left to the end of a running trial), confirmed before the deadline is claimed, the guard marks a trial expired only after a verified load and retries, caddy-revert clears a stale deadline when Pingora serves
This commit is contained in:
+7
-3
@@ -328,12 +328,16 @@ While Caddy serves (decisions Q3, Q4; Mark 2026-11-08):
|
||||
Caddy fails with `apply.failed.reload` and nothing changes;
|
||||
- **an unconfirmed trial never outlives control**, as with edge: control arms a deadline
|
||||
(`caddy-trial.json` in its state directory: watch + margin) before loading the trial and claims
|
||||
it before confirming. `ianitor-caddy-guard` (a unit that runs with caddy-fallback,
|
||||
it right after the journal says `confirmed` (a crash in between leaves both, and recovery
|
||||
promotes). A guard revert counts only once Caddy is verified on caddy.json; a failed load is
|
||||
retried with a growing pause. With Pingora serving, caddy-revert only clears a stale deadline. `ianitor-caddy-guard` (a unit that runs with caddy-fallback,
|
||||
`ianitor-control caddy-guard`) reverts a trial past its deadline, which covers a hung control;
|
||||
ianitor-control's `ExecStopPost=ianitor-control caddy-revert` reverts at once after any stop or
|
||||
crash. Whoever renames the deadline file first wins, so a trial is either kept or reverted;
|
||||
- device issues and revocations wait for a running apply, then reload Caddy and check that it
|
||||
serves the certificate on disk for a Domi host (else `devices_problem`, retried);
|
||||
- device issues and revocations never wait for an apply: the files are written and edge is told
|
||||
at once. Under Caddy, Caddy is reloaded at once and checked to serve the certificate on disk
|
||||
for a Domi host (else `devices_problem`, retried), except while a trial is out: then the end
|
||||
of that apply (promote or revert, both load caddy.json) brings the new files in;
|
||||
- **share links are off**: minting is `409 share.engine_caddy`, and a visitor with a link gets the
|
||||
normal sign-in (fails closed). Caddy cannot check a share token and control never serves
|
||||
visitors; a validator Caddy calls through `forward_auth` is planned before v1.1;
|
||||
|
||||
Reference in New Issue
Block a user