[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
@@ -143,6 +143,8 @@ pub struct Control {
pub share_key: Option<ShareKey>,
/// The Domi CA, when `[pki]` is configured.
pub pki: Option<crate::pki::Pki>,
/// The per-boot secret edge adds on the admin host (`X-Ianitor-Proof`), from `[ui]`.
pub ui_proof: Option<Vec<u8>>,
/// Which engine serves (see `switch`).
pub engine: Mutex<crate::switch::EngineState>,
/// How control starts and stops the engines; `None` without `[engine]`.
@@ -238,6 +240,12 @@ impl Control {
repo,
edge,
share_key,
ui_proof: cfg
.ui
.as_ref()
.and_then(|u| u.proof_credential.as_deref())
.and_then(|n| cfg.credential(n))
.filter(|p| p.len() >= 32),
pki,
engine: Mutex::new(crate::switch::EngineState {
running: cfg