[control] Domi CA and UI sign-in: intermediate renewal by CSR with manual offline signing, domi host certificates, device requests approved by code, one-time PKCS#12 installs, revocation; Remote-User trusted only with edge's per-boot proof

This commit is contained in:
2026-11-07 23:21:49 +01:00
parent 211b851c3e
commit c18ae154ad
17 changed files with 1300 additions and 54 deletions
+8
View File
@@ -22,6 +22,9 @@
//!
//! The systemd calls go through [`Units`], so tests use a fake.
// A refusal is built once per request; boxing it buys nothing.
#![allow(clippy::result_large_err)]
use std::collections::HashSet;
use std::path::{Path, PathBuf};
use std::sync::{Arc, Mutex};
@@ -382,6 +385,11 @@ impl Control {
Ok(())
}
/// Any reason changes wait now: Caddy serving, or a pause.
pub fn effective_pause(&self) -> Option<Reason> {
self.engine_pause().or_else(|| self.paused())
}
/// Changes wait while Caddy serves.
pub fn engine_pause(&self) -> Option<Reason> {
(self.engine_running() == "caddy").then(|| reason("engine.caddy", Params::new()))