[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:
@@ -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()))
|
||||
|
||||
Reference in New Issue
Block a user